:root {
    --verde-obscuro: #185326d3;
    --dorado-brillante: #ffcc00;
    --naranja-tierra: #1aa331;
    --verde-selva: #265c2b;
    --azul-mar: #164a74;
    --crema-fondo: #f2e9d2;
    --texto-oscuro: #1a1a1a;
}

/* ============================= */
/* 🔥 TIPOGRAFÍA PROFESIONAL */
/* ============================= */

body {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    letter-spacing: 0.2px;
    background-color: var(--crema-fondo);
    color: var(--texto-oscuro);
    background-image: url("https://www.transparenttextures.com/patterns/paper-fibers.png");
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 1px;
}

p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-link {
    font-weight: 600;
    letter-spacing: 0.5px;
}

h2 {
    font-size: 2.2rem;
}

small,
.small {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* ============================= */
/* NAVBAR */
/* ============================= */

.navbar {
    background-color: var(--verde-obscuro) !important;
    border-bottom: 2px solid var(--dorado-brillante);
    padding: 8px 0;
}

.nav-link {
    color: #fff !important;
    font-size: 0.85rem;
    margin: 0 8px;
}

.nav-link.active {
    border-bottom: 2px solid var(--dorado-brillante);
}

/* ============================= */
/* 🔥 HERO CARRUSEL CORREGIDO */
/* ============================= */

.hero-carousel {
    position: relative;
}

/* 🔥 IMÁGENES ATRÁS */
.carousel-inner {
    position: relative;
    z-index: 1;
}

.carousel-item img {
    height: 80vh;
    object-fit: cover;
}

/* 🔥 OVERLAY CORREGIDO (CLAVE) */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2; /* 🔥 SOLUCIONA TODO */

    display: flex;
    align-items: center;

    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));

    color: white;
}

/* 🔥 TEXTO MÁS PRO */
.hero-overlay h1 {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.1;
    position: relative;
    z-index: 3;
}

/* SUBTEXTO */
.hero-overlay p {
    position: relative;
    z-index: 3;
}

/* COLOR DESTACADO */
.hero-overlay .highlight {
    color: var(--dorado-brillante);
}

/* 🔥 MEJOR VISIBILIDAD */
.hero-overlay h1,
.hero-overlay p {
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7);
}
/* 🔥 BOTÓN CONÓCENOS (MISMO NIVEL PRO) */

.btn-conocenos {
    background: linear-gradient(135deg, #80723c, #e6b800);
    color: #000;
    border: none;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Hover */
.btn-conocenos:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #e6b800, #cc9900);
}

/* ============================= */
/* TARJETAS */
/* ============================= */

.top-cards-section {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.custom-card {
    border-radius: 5px;
    padding: 25px;
    color: white;
    position: relative;
    overflow: hidden;
}

.custom-card::before {
    content: "";
    position: absolute;
    top: 0;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.8) 0px,
        rgba(255, 255, 255, 0.8) 14px,
        transparent 14px,
        transparent 24px
    );
}

.custom-card::after {
    content: "";
    position: absolute;
    top: 8px;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
}

.bg-historia {
    background-color: var(--naranja-tierra);
}
.bg-territorio {
    background-color: var(--verde-selva);
}
.bg-proyectos {
    background-color: var(--azul-mar);
}

.card-icon {
    width: 90px;
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ============================= */
/* QUIENES SOMOS */
/* ============================= */

.quienes-section {
    background: linear-gradient(to right, #f2e9d2 60%, #e6dcc2 100%);
    border-radius: 10px;
    padding: 50px 40px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.quienes-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 40px;
    width: 80px;
    height: 4px;
    background: var(--dorado-brillante);
}

.quienes-title {
    font-size: 2.8rem;
}

.quienes-subtitle {
    color: var(--verde-selva);
    font-weight: bold;
    border-left: 4px solid var(--dorado-brillante);
    padding-left: 10px;
}

.quienes-text {
    font-size: 1.05rem;
}

/* ============================= */
/* IMAGEN */
/* ============================= */

.img-postal {
    border: 10px solid #fff;
    outline: 1px solid #ddd;
    transform: rotate(1deg);
    transition: all 0.3s ease;
    max-width: 120%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.img-postal:hover {
    transform: rotate(0deg) scale(1.03);
}

/* ============================= */
/* TERRITORIO */
/* ============================= */

.territorio-banner {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 10px;
}

.territorio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.territorio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.2)
    );
}

.territorio-content {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    color: white;
}

/* ============================= */
/* ETNO */
/* ============================= */

.etno-icons-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.etno-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.etno-item img {
    width: 45px;
}

.etno-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.etno-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: 0.3s;
}

.etno-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.etno-card-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: white;
}

/* ============================= */
/* 🔥 FOOTER ULTRA COMPACTO */
/* ============================= */

.footer-pro {
    background-color: var(--verde-obscuro);
    color: white;
    padding: 10px 0 5px; /* 🔥 súper reducido */
    border-top: 3px solid var(--dorado-brillante);
}

/* 🔥 TODO EN BLANCO */
.footer-pro * {
    color: white !important;
}

/* Títulos */
.footer-title {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

/* Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 2px;
}

.footer-links a {
    text-decoration: none;
    font-size: 0.75rem;
}

/* Texto */
.footer-text {
    font-size: 0.75rem;
    margin: 0;
}

/* Línea */
.footer-divider {
    margin: 8px 0;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Copy */
.footer-copy {
    font-size: 0.65rem;
    text-align: center;
    opacity: 0.8;
    margin: 0;
}

/* 🔥 TODO EN MONTSERRAT */

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
button {
    font-family: "Montserrat", sans-serif;
}

/* ============================= */
/* 🔥 TERRITORIO PRO */
/* ============================= */

.territorio-img-box img {
    border-radius: 10px;
    width: 100%;
    transition: transform 0.4s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.territorio-img-box img:hover {
    transform: scale(1.05);
}

/* ============================= */
/* 🔥 ETNODESARROLLO PRO */
/* ============================= */

.etno-card-pro {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.etno-card-pro img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.etno-card-pro:hover img {
    transform: scale(1.08);
}

/* Overlay elegante */
.etno-overlay-pro {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: white;
}

/* Texto */
.etno-overlay-pro h6 {
    font-weight: 600;
    margin-bottom: 5px;
}

.etno-overlay-pro p {
    font-size: 0.85rem;
    margin: 0;
}

/* ============================= */
/* 🔥 ETNO ESTILO IMAGEN */
/* ============================= */

.etno-box {
    background: #f2e9d2;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* TÍTULO */
.etno-title {
    font-weight: 700;
}

/* ICONOS */
.etno-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.etno-circle {
    text-align: center;
}

.etno-circle img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.etno-circle p {
    font-size: 0.75rem;
    margin-top: 5px;
}

/* TARJETAS */
/* MISMO COMPORTAMIENTO PARA TODO */
.etno-card-horizontal {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 220px;
}

.etno-card-horizontal img,
.etno-card-horizontal video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* OVERLAY */
.etno-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: white;
}

.etno-overlay h6 {
    font-weight: 600;
    margin-bottom: 5px;
}

.etno-overlay p {
    font-size: 0.8rem;
    margin: 0;
}

.etno-overlay small {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* 🔥 BOTÓN VER PROYECTOS */

.btn-dark-green {
    background: linear-gradient(135deg, #2d7a32, #5ad449);
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Hover */
.btn-dark-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #256b2a, #4cc63f);
}

/* Animación del icono */

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px);
}

/* 🔥 BOTÓN VER TODAS */

.btn-custom-orange {
    background: linear-gradient(135deg, #bf5b1d, #e87a2f);
    color: white;
    border-radius: 6px;
    padding: 10px 25px;
    font-weight: 600;
    border: none;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Hover */
.btn-custom-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #a94f17, #d96a24);
}

/* ============================= */
/* 🔥 HERO CARRUSEL */
/* ============================= */

.hero-carousel {
    position: relative;
}

.carousel-item img {
    height: 80vh;
    object-fit: cover;
}

/* Overlay oscuro */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    color: white;
}

/* Texto */
.hero-overlay h1 {
    font-size: 4rem;
    font-weight: 800;
}

.hero-overlay .highlight {
    color: var(--dorado-brillante);
}

/* 🔥 FONDO MAYA OPACO PROFESIONAL */

body {
    background-color: var(--crema-fondo);

    background-image:
        linear-gradient(rgba(242, 233, 210, 0.92), rgba(242, 233, 210, 0.92)),
        url("../img/image.png"); /* 👈 tu imagen */

    background-repeat: repeat;
    background-size: 300px; /* 🔥 ajusta tamaño */
    background-position: center;
}

.logo-navbar {
    height: 55px;
    width: auto;
    object-fit: contain;
    background: transparent; /* importante */
    padding: 0;
    border-radius: 0;
}
/* CENTRAR BIEN EL MENÚ */
.navbar-nav {
    gap: 15px;
}

/* HOVER ELEGANTE */
.nav-link {
    transition: 0.3s;
}

.nav-link:hover {
    color: #f4a261 !important;
}

/* TARJETAS MISIÓN Y VISIÓN */
.card-mv {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    position: relative;
}

.card-mv:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.icon-mv {
    font-size: 30px;
    margin-bottom: 10px;
}

/* línea superior elegante */
.card-mv::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #0b2e1f;
}

/* IMAGEN JUNTA */
.img-junta {
    width: 100%;
    max-width: 650px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* SECCIÓN COMPLETA */
.mv-section {
    background: #f5ecd7; /* tipo papel */
    position: relative;
    border-top: 8px solid #c58b2a; /* franja superior */
    border-bottom: 8px solid #2f6b3b; /* franja inferior */
}

/* PATRÓN SUAVE (OPCIONAL) */
.mv-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("https://www.transparenttextures.com/patterns/arabesque.png");
    opacity: 0.15;
}

/* CONTENIDO */
.mv-title {
    font-weight: bold;
    color: #2f6b3b;
    margin-bottom: 10px;
}

.mv-text {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
}

/* FONDO TIPO PAPEL */
.junta-section {
    background: #f5ecd7;
    position: relative;
    border-top: 6px solid #c58b2a;
    border-bottom: 6px solid #2f6b3b;
}

/* TEXTURA SUAVE */
.junta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("https://www.transparenttextures.com/patterns/arabesque.png");
    opacity: 0.15;
}

/* TÍTULO */
.junta-title {
    font-weight: bold;
    color: #3b2b1f;
}

/* IMAGEN ENMARCADA */
.junta-img-box {
    background: #fff8e6;
    padding: 10px;
    border: 4px solid #e0c097;
    border-radius: 8px;
    max-width: 600px; /* 🔥 MÁS PEQUEÑA */
    margin: auto;
}

.junta-img-box img {
    width: 100%;
    border-radius: 5px;
}

/* TARJETAS */
.junta-card {
    background: #fff8e6;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0c097;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.junta-card:hover {
    transform: translateY(-3px);
}

.junta-card h6 {
    font-weight: bold;
    margin-bottom: 5px;
}

.junta-card small {
    color: #555;
}

/* TARJETA */
.junta-card {
    background: #fff8e6;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e0c097;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.junta-card:hover {
    transform: translateY(-5px);
}

/* FOTO DE PERSONA */
.junta-persona {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%; /* 🔥 circular */
    margin-bottom: 10px;
    border: 3px solid #c58b2a;
}

#sliderHistoria img {
    height: 350px;
    object-fit: cover;
}
