/* =========================
   LAYOUT GLOBAL
   ========================= */

body {
    margin: 0;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #FFFDF9;
    /* Blanco cálido tipo Mashamba */
    color: #8b694e;
    overflow-x: hidden; /* Importante para breakouts de 100vw */
}

/* =========================
   HEADER ESTILO MASHAMBA
   ========================= */

.main-header {
    background-color: #FFFDF9;
    /* Coincide con el nuevo body */
    border-bottom: 1px solid rgba(40, 40, 40, 0.08);
    padding: 1.4rem 4vw;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* logo izquierda, menú derecha */
    gap: 2rem;
}

/* LOGO SOLO */

.brand-block {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
}

.brand-logo-icon {
    display: block;
    height: auto;
    max-height: 85px;
    /* Ajustable según el logo real */
    width: auto;
}

/* LOGO TEXTOS */
.brand-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-text-main {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.85rem;
    font-weight: 400;
    color: #8b694e;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
}

.brand-text-sub {
    font-family: "Montserrat", sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    color: #8b694e;
    /* Verde característico */
    text-transform: uppercase;
    letter-spacing: 0.35em;
    /* Reducido para dejar espacio a las líneas */
    margin-right: -0.35em;
    margin-top: 0.45rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
}

.brand-text-sub::before,
.brand-text-sub::after {
    content: "";
    height: 1px;
    background-color: rgba(139, 105, 78, 0.4);
    flex-grow: 1;
}

/* NAVEGACIÓN HORIZONTAL */

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.8rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    position: relative;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    letter-spacing: 0;
    text-transform: uppercase;
    text-decoration: none;
    color: #8b694e;
    padding-bottom: 0.25rem;
    white-space: nowrap;
    /* que no se partan en dos líneas */
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 0;
    background-color: #8b694e;
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: #8b694e;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #8b694e;
}

/* IDIOMAS */

.lang-switch {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: "Montserrat", system-ui, sans-serif;
    color: #8b694e;
}

.lang-link {
    text-decoration: none;
    color: inherit;
    padding: 0 0.15rem;
}

.lang-link.active {
    color: #8b694e;
}

.lang-separator {
    padding: 0 0.15rem;
    color: #8b694e;
}

/* BOTÓN MENÚ MÓVIL */

.mobile-menu-toggle {
    display: none;
    /* oculto en escritorio */
    flex-direction: column;
    gap: 0.22rem;
    background: transparent;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    background-color: #333;
}

/* =========================
   RESPONSIVE
   ========================= */



/* MAIN */

.main-content {
    padding: 3rem 4vw 4rem;
    max-width: 1180px;
    margin: 0 auto;
}

/* =============================
   HERO SLIDER
   ============================= */

.hero-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    background: #1a1a1a;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-text {
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    padding: 2rem;
}

.hero-text h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: 3.5rem;
    font-weight: 400;
    margin: 0 0 1rem;
    letter-spacing: 0.05em;
}

.hero-text p {
    font-family: "Montserrat", sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.03em;
    color: #ffffff;
}



/* Quitar espacios entre header y slider */
.main-header {
    margin-bottom: 0;
}

/* Hero a pantalla completa de ancho */
.hero-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    background: #1a1a1a;
}

.main-content {
    padding: 0 4vw 4rem;
    /* sin padding-top para que pegue al header */
    max-width: 1500px;
    margin: 0 auto;
    overflow: visible; /* Permitir breakouts */
}

.section-header {
    text-align: center;
    margin: 3.5rem auto 2.5rem;
    max-width: 720px;
}

.section-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.4rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 0.7rem;
}

.section-subtitle,
.lead {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8b694e;
    margin: 0 0 1rem;
}

.divider {
    width: 70px;
    height: 1px;
    margin: 1rem auto 0;
    background-color: rgba(139, 105, 78, 0.7);
    /* color base */
}

/* HOME INTRO */

.home-intro {
    text-align: center;
    margin: 3rem auto 3.5rem;
    max-width: 780px;
}

.home-intro h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.home-intro-lead {
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8b694e;
    line-height: 1.8;
    max-width: 1000px;
    margin: 0 auto 2rem;
}

.frase-impactante {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.85rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.3;
    color: #8b694e;
    margin: 0 auto 2.5rem;
    max-width: 720px;
}


/* Frase principal con comillas grandes y color base */
.frase-principal {
    position: relative;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.4;
    color: #8b694e;
    /* color base */
    margin: 1.5rem auto 2.5rem;
    padding: 1.2rem 3rem;
}

.frase-principal::before,
.frase-principal::after {
    content: "“";
    position: absolute;
    font-size: 3.5rem;
    color: rgba(139, 105, 78, 0.15);
    line-height: 1;
}

.frase-principal::before {
    left: 0.8rem;
    top: 0.2rem;
}

.frase-principal::after {
    content: "”";
    right: 0.8rem;
    bottom: -0.2rem;
}

/* Sombreado suave debajo de la frase */
.frase-principal {
    box-shadow: 0 20px 40px rgba(139, 105, 78, 0.05);
    /* border-radius:  12px; */
    padding: 1rem 1.5rem;
    background: #f7f4f0;
    /* Tono piedra/champán muy suave */
}

/* Texto secundario */
.frase-secundaria {
    font-family: "Montserrat", sans-serif;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #8b694e;
    max-width: 1000px;
    margin: 0 auto;
}

.servicio-card {
    box-shadow: 0 18px 40px rgba(139, 105, 78, 0.18);
}

/* --- VIVEROS SLIDER (FULL WIDTH) --- */
.viveros-carrusel-section.full-width {
    width: 100%;
    max-width: none;
    position: relative;
    background: #1a1a1a;
    padding: 0 !important;
    margin: 0;
    overflow: hidden !important;
}

.viveros-slider-container {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
}

.viveros-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.viveros-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.viveros-slide.active {
    opacity: 1;
    z-index: 2;
}

.viveros-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 8vw;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    z-index: 3;
    text-align: left;
}

.slide-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: #f7f4f0;
}

.slide-counter {
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.2rem;
    opacity: 0.8;
}

/* Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5) !important; /* Darker for better contrast */
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 100 !important; /* Higher z-index */
    display: flex !important; /* Force display */
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    color: white !important;
}

.slider-nav:hover {
    background: rgba(139, 105, 78, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.slider-nav.prev { left: 3vw; }
.slider-nav.next { right: 3vw; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background: white;
    transform: scale(1.3);
}

.main-footer {
    background: #8b694e;
    /* Color principal Mashamba Design */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem 6vw 0.5rem;
    /* Menos padding vertical */
    margin-top: 4rem;
    width: 100%;
    position: relative;
}

.footer-container {
    width: 100%;
    margin: 0 auto 1.5rem;
    /* Menor gap abajo */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /* Espaciado uniforme */
    gap: 1.5rem;
}

.footer-col {
    flex: 1 1 250px;
}

.footer-col h4 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 0.8rem;
    color: #ffffff;
    /* título en blanco para contrastar con fondo marrón */
}

.footer-col p,
.footer-col .footer-link-email,
.footer-col .footer-schedule,
.footer-col a,
.footer-links li a {
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    color: #ffffff !important;
    line-height: 1.6;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contacto-trabaja-full {
    width: 100%;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(139, 105, 78, 0.15);
}

.contacto-trabaja-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contacto-trabaja-wrapper h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.6rem;
    color: #8b694e;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.trabaja-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.trabaja-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trabaja-form label {
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    color: #8b694e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trabaja-form input[type="text"],
.trabaja-form input[type="file"] {
    padding: 0.8rem;
    border: 1px solid rgba(139, 105, 78, 0.2);
    background-color: #fff;
    font-family: "Montserrat", sans-serif;
    border-radius: 4px;
    color: #8b694e;
}

.trabaja-form input[type="file"] {
    background: #fdfdfd;
    font-size: 0.85rem;
}

.mt-2 {
    margin-top: 1rem;
}

.footer-col a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: #ffffff;
}

/* =============================
   HOME - PROYECTOS
   ============================= */

.home-proyectos {
    margin: 4rem auto 4rem;
}

.proyectos-intro {
    font-family: "Montserrat", sans-serif;
    font-size: 0.98rem;
    line-height: 1.7;
    color: #8b694e;
    max-width: 780px;
    margin: 0.5rem auto 0;
}

/* GRID DE 2 IMÁGENES EN PARALELO */
.proyectos-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4%;
    margin-top: 3rem;
    flex-wrap: wrap;
    /* por si en móvil se apilan */
}

.proyecto-item {
    flex: 0 0 48%;
    /* Más ancha (48%) */
    max-width: 48%;
}

.proyecto-item img {
    width: 100%;
    height: 480px;
    /* Imágenes más altas */
    display: block;
    object-fit: cover;
    box-shadow: 0 18px 40px rgba(139, 105, 78, 0.12);
    /* border-radius:  10px; */
}

/* En móvil se apilan una debajo de otra */

/* SERVICIOS - Estilos movidos a sección "cortina" más abajo */


/* =============================
   HOME - SERVICIOS (cortina)
   ============================= */

.home-servicios {
    margin: 4rem auto 4rem;
}

.servicios-intro {
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    line-height: 1.9;
    font-weight: 300;
    color: #8b694e;
    max-width: 780px;
    margin: 0.5rem auto 0;
}

/* 3 columnas en desktop */
.servicios-grid {
    display: flex;
    justify-content: center;
    gap: 4%;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.servicio-card {
    flex: 0 0 30%;
    max-width: 30%;
}

/* Contenedor de imagen + cortina */
.servicio-media {
    position: relative;
    width: 100%;
    height: 460px;
    /* Imágenes más altas para servicios */
    /* border-radius:  12px; */
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(139, 105, 78, 0.12);
    background: #000;
    cursor: pointer;
}

/* Imagen base */
.servicio-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

/* Ligero zoom al pasar encima */
.servicio-media:hover img {
    transform: scale(1.05);
}

/* CORTINA (overlay) - Título siempre visible, descripción con hover */
.servicio-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.04) 50%, transparent 100%);
    color: #8b694e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 2.5rem 1.6rem;
    transition: background 0.45s ease-out;
}

/* Cuando el ratón está encima, fondo más oscuro */
.servicio-media:hover .servicio-overlay {
    background: radial-gradient(circle at top left, rgba(253, 248, 242, 0.12) 0%, transparent 40%),
        linear-gradient(160deg, #2b2b2b 0%, #111111 55%, #3f4b3a 100%);
}

/* Contenido dentro de la cortina */
.servicio-overlay-content {
    width: 100%;
    max-width: 90%;
    text-align: center;
}

/* Título servicio - Siempre visible */
.servicio-overlay-content h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), margin-bottom 0.4s ease;
}

/* Texto servicio - Oculto por defecto */
.servicio-overlay-content p {
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.9;
    letter-spacing: 0.02em;
    color: #ffffff;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Cuando hay hover, mostrar descripción y ajustar margen del título */
.servicio-media:hover .servicio-overlay-content h3 {
    margin-bottom: 1.2rem;
    transform: translateY(0);
}

.servicio-media:hover .servicio-overlay-content p {
    max-height: 250px;
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */



/* =============================
   HOME - INTRO ORIGEN
   ============================= */

.home-intro {
    max-width: 820px;
    margin: 4rem auto 4.5rem;
    text-align: center;
}

/* Frase principal como cita protagonista */
.frase-principal {
    position: relative;
    font-family: "Cormorant Garamond", serif;
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 1.5;
    letter-spacing: 0.06em;
    color: #8b694e;
    margin: 1.5rem auto 3rem;
    padding: 1.5rem 3.5rem;
    background-color: #fdfaf6;
    /* border-radius:  14px; */
    box-shadow: 0 25px 55px rgba(139, 105, 78, 0.16);
    max-width: 1100px;
}

/* Comillas grandes */
.frase-principal::before,
.frase-principal::after {
    position: absolute;
    font-family: "Cormorant Garamond", serif;
    font-weight: 300;
    font-size: 4rem;
    color: rgba(139, 105, 78, 0.15);
    line-height: 1;
}

.frase-principal::before {
    content: "\201C";
    top: 0.5rem;
    left: 1rem;
}

.frase-principal::after {
    content: "\201D";
    bottom: -0.2rem;
    right: 1rem;
}

/* Frase secundaria */
.frase-secundaria {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 0.98rem;
    line-height: 1.9;
    letter-spacing: 0.02em;
    color: #8b694e;
    max-width: 1000px;
    margin: 0 auto;
}

/* Responsive home-intro */

/* =============================
   PROYECTOS - BANNER
   ============================= */

.banner-proyectos {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 400px;
    overflow: hidden;
    background: #1a1a1a;
}

.banner-proyectos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}

/* =============================
   PROYECTOS - SECCIONES
   ============================= */

.section {
    margin: 4rem auto 4.5rem;
    max-width: 1500px;
    padding: 0 4vw;
}

/* DOS COLUMNAS: layout base */

.dos-columnas {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5%;
    margin-top: 2.5rem;
}

.dos-columnas>div:first-child {
    flex: 0 0 38%;
    max-width: 38%;
}

.dos-columnas>div:last-child {
    flex: 0 0 57%;
    max-width: 57%;
}

/* REVERSE: invertimos el orden visual */

.dos-columnas.reverse {
    flex-direction: row-reverse;
}

/* Texto de proyectos */

.dos-columnas p {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 0.97rem;
    line-height: 1.9;
    color: #8b694e;
    margin: 0 0 1.4rem;
}

/* =============================
   SLIDER DE PROYECTOS
   ============================= */

.slider-proyectos {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* border-radius:  12px; */
    box-shadow: 0 18px 40px rgba(139, 105, 78, 0.18);
    background: #1a1a1a;
}

.slider-proyectos .slide {
    display: none;
    width: 100%;
    height: 520px;
}

.slider-proyectos .slide.active {
    display: block;
}

.slider-proyectos .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Controles del slider */

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 14px;
    pointer-events: none;
    z-index: 10;
}

.slider-controls button {
    pointer-events: all;
    border: none;
    background: rgba(0, 0, 0, 0.4);
    color: #8b694e;
    width: 36px;
    height: 36px;
    /* border-radius:  50%; */
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.slider-controls button:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* PAGINATION DOTS */
.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    /* border-radius:  50%; */
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.slider-dots .dot.active {
    background: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* =============================
   RESPONSIVE
   ============================= */



/* =============================
   PLANOS 3D – RENDER
   ============================= */

.planos3d-section {
    margin-top: 1rem;
    /* ligeramente pegado a proyectos */
}

/* Fila base */
.planos3d-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5%;
    margin-top: 2.5rem;
}

/* BLOQUE 1: imagen 30% izq, texto 65% dcha */
.planos3d-col-img {
    flex: 0 0 55%;
    max-width: 55%;
}

.planos3d-col-img img {
    width: 100%;
    height: auto;
    display: block;
    /* border-radius:  12px; */
    box-shadow: 0 18px 40px rgba(139, 105, 78, 0.18);
}

.planos3d-col-text {
    flex: 0 0 40%;
    max-width: 40%;
}

.planos3d-col-text p {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 0.97rem;
    line-height: 1.9;
    color: #8b694e;
    margin: 0 0 1.3rem;
}

/* BLOQUE 2: texto izq, galería dcha */
.planos3d-row-alt {
    align-items: flex-start;
    margin-top: 3rem;
}

.planos3d-row-alt .planos3d-col-text {
    flex: 0 0 32%;
    max-width: 32%;
}

.planos3d-col-gallery {
    flex: 0 0 63%;
    max-width: 63%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.planos3d-img {
    flex: 0 0 100%;
    /* Stacked vertically, occupy full gallery width */
    max-width: 100%;
}

.planos3d-img img {
    width: 100%;
    height: auto;
    display: block;
    /* border-radius:  12px; */
    box-shadow: 0 18px 40px rgba(139, 105, 78, 0.18);
}

/* RESPONSIVE */



/* =============================
   VIVEROS - BANNER SUPERIOR
   ============================= */

.banner-viveros {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 400px;
    overflow: hidden;
    background: #1a1a1a;
}

.banner-viveros img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Reutilizamos .banner-overlay del banner de proyectos */
.banner-viveros .banner-overlay h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}

/* =============================
   VIVEROS - BLOQUE AYUDA + VIDEO
   ============================= */

.viveros-ayuda-section {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.viveros-ayuda-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.viveros-ayuda-titulo {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: #8b694e;
    margin: 0 0 1.2rem;
}

.viveros-ayuda-descripcion {
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.9;
    color: #8b694e;
    margin: 0;
    max-width: 52ch;
}

.viveros-video {
    border: 1px solid #f0ede9;
    background: #ffffff;
    box-shadow: 0 25px 50px rgba(139, 105, 78, 0.08);
    padding: 1.2rem;
}

.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.viveros-video-nota {
    margin: 1rem 0 0;
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1.6;
    color: #8b694e;
}


/* =============================
   VIVEROS - BANNER Y LAYOUT
   ============================= */

.viveros-hero-full {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 50vh;
    min-height: 400px;
    overflow: hidden;
    margin-bottom: 5rem;
}

.viveros-hero-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.viveros-hero-content {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.viveros-hero-content h1 {
    color: #ffffff;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 300;
}

/* =============================
   VIVEROS - CONTENIDO EDITORIAL
   ============================= */

.viveros-editorial-section {
    padding: 4rem 0 8rem;
    background: #fdf8f2;
    /* Fondo crema muy suave */
}

.viveros-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 4vw;
}

.viveros-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.viveros-subtitle {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #8b694e;
    margin-bottom: 1.5rem;
}

.viveros-main-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.8rem;
    font-weight: 300;
    line-height: 1.2;
    color: #8b694e;
    margin-bottom: 2rem;
}

.viveros-description p {
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    line-height: 1.9;
    color: #8b694e;
    font-weight: 300;
}

/* VÍDEO RESPONSIVE */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid #f0ede9;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-caption {
    margin-top: 1.5rem;
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    font-style: italic;
    color: #8b694e;
    text-align: right;
}

/* RESPONSIVE */

/* =============================
   VIVEROS - TEXTO + IMÁGENES
   ============================= */

.viveros-section {
    max-width: 1500px;
    margin: 4rem auto 4.5rem;
    padding: 0 4vw;
}

.viveros-intro {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.viveros-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6%;
}

.viveros-row-middle {
    align-items: flex-start;
}

.viveros-text {
    flex: 1;
}

.viveros-text p {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 0.97rem;
    line-height: 1.9;
    color: #8b694e;
    margin: 0 0 1.3rem;
}

/* Imágenes intercaladas, ~45% */
.viveros-image {
    flex: 0 0 45%;
    max-width: 45%;
}

.viveros-image img {
    width: 100%;
    height: auto;
    display: block;
    /* border-radius:  12px; */
    box-shadow: 0 18px 40px rgba(139, 105, 78, 0.18);
}

/* =============================
   VIVEROS - BANNER CTA
   ============================= */

.viveros-cta-banner {
    width: 100%;
    position: relative;
    background: linear-gradient(90deg, rgb(139, 105, 78) 0%, #3f4b3a 100%);
    padding: 3.5rem 1.5rem;
    margin-bottom: 4.5rem;
}

.viveros-cta-content {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    color: #ffffff;
}

.viveros-cta-text {
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.9;
    margin: 0;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.9rem;
    /* border-radius:  999px; */
    border: 1px solid #fdf8f2;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffffff;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.btn-cta:hover {
    background: #fdf8f2;
    color: #8b694e;
    transform: translateY(-1px);
}

/* =============================
   VIVEROS - CARRUSEL HORIZONTAL
   ============================= */

.viveros-carrusel-section {
    max-width: 1180px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.viveros-carousel-wrapper {
    overflow: hidden;
    position: relative;
    margin-top: 2rem;
}

/* Carrusel: 4 imágenes visibles, 20 en total */
.viveros-carousel {
    display: flex;
    gap: 1.5rem;
    will-change: transform;
}

.viveros-carousel-item {
    flex: 0 0 calc(25% - 1.125rem);
    /* 4 por fila */
}

.viveros-carousel-item img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    /* border-radius:  10px; */
    box-shadow: 0 12px 26px rgba(139, 105, 78, 0.2);
}

/* =============================
   RESPONSIVE VIVEROS
   ============================= */



/* =============================
   CONTACTO - BANNER SUPERIOR
   ============================= */

.banner-contacto {
    position: relative;
    width: 100%;
    height: 45vh;
    min-height: 360px;
    overflow: hidden;
    margin-top: 0;
    /* Sin margen superior, empieza justo bajo el header */
}

.banner-contacto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 31, 31, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ffffff;
    text-align: center;
}

/* =============================
   CONTACTO - SECCIÓN PRINCIPAL
   ============================= */

.contacto-section {
    max-width: 1500px;
    margin: 5rem auto 4rem;
    padding: 0 4vw;
}

.contacto-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

/* =============================
   CONTACTO - IMAGEN LATERAL
   ============================= */

.contacto-imagen {
    position: relative;
}

.contacto-imagen img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    /* border-radius:  0; */
    box-shadow: 0 25px 50px rgba(139, 105, 78, 0.12);
}

/* =============================
   CONTACTO - INFORMACIÓN
   ============================= */

.contacto-info {
    padding-top: 1rem;
}

.contacto-info h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: #8b694e;
}

.contacto-info p {
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    color: #8b694e;
    margin-bottom: 1.2rem;
}

.contacto-datos {
    margin-top: 2.5rem;
}

.contacto-dato {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #f0ede9;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.contacto-label {
    font-family: "Montserrat", sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8b694e;
    margin-bottom: 0.4rem;
}

.contacto-valor {
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: #8b694e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacto-valor:hover {
    color: #8b694e;
}

.contacto-redes {
    margin-top: 2rem;
}

.contacto-redes-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.8rem;
}

.contacto-redes-links a {
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #8b694e;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.contacto-redes-links a:hover {
    border-bottom: 1px solid #3f4b3a;
}

/* =============================
   CONTACTO - ALERTAS
   ============================= */

.contacto-alert {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    /* border-radius:  4px; */
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
}

.contacto-alert-ok {
    background: #e8f5e9;
    color: #8b694e;
    border-left: 3px solid #2e7d32;
}

.contacto-alert-error {
    background: #ffebee;
    color: #8b694e;
    border-left: 3px solid #c62828;
}

/* =============================
   CONTACTO - FORMULARIO REFINADO
   ============================= */

.contacto-form-wrapper {
    background: #ffffff;
    /* border-radius:  0; */
    padding: 3rem;
    border: 1px solid #f0ede9;
    box-shadow: 0 25px 50px rgba(139, 105, 78, 0.08);
}

.contacto-form-wrapper h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: none;
    margin: 0 0 2.5rem;
    color: #8b694e;
    text-align: center;
}

.contacto-form .form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contacto-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.contacto-form label {
    font-family: "Montserrat", sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8b694e;
    margin-bottom: 0.6rem;
}

/* Inputs con línea inferior minimalista */
.contacto-form input,
.contacto-form textarea {
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: #8b694e;
    padding: 0.8rem 0;
    border: none;
    border-bottom: 1px solid #e0ddd8;
    background: transparent;
    outline: none;
    transition: border-color 0.4s ease;
    /* border-radius:  0; */
}

.contacto-form textarea {
    min-height: 100px;
    line-height: 1.6;
    resize: vertical;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    border-bottom: 1px solid #3f4b3a;
}

/* CAPTCHA */
.form-captcha-row {
    align-items: center;
    margin-top: 1rem;
    background: #f9f8f6;
    padding: 1.5rem;
    /* border-radius:  4px; */
}

.captcha-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    background: #3f4b3a;
    color: #8b694e;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.3rem;
    letter-spacing: 0.3em;
    font-style: italic;
}

/* Botón de envío */
.btn-primary {
    margin-top: 2rem;
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #3f4b3a;
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #8b694e;
    background: #3f4b3a;
    transition: all 0.4s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: transparent;
    color: #8b694e;
    letter-spacing: 0.35em;
}

/* =============================
   CONTACTO - LEGAL RGPD
   ============================= */

.contacto-legal {
    margin-top: 2rem;
}

.legal-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
}

.legal-checkbox input {
    display: none;
}

/* Checkbox personalizado */
.checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid #8b694e;
    position: relative;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.legal-checkbox input:checked+.checkmark::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #3f4b3a;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.legal-text {
    font-family: "Montserrat", sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1.6;
    color: #8b694e;
}

.legal-text a {
    color: #8b694e;
    text-decoration: none;
    border-bottom: 1px solid rgba(63, 75, 58, 0.3);
}

.legal-text a:hover {
    border-bottom-color: #8b694e;
}

.legal-info {
    margin-top: 1rem;
    font-family: "Montserrat", sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    line-height: 1.6;
    color: #8b694e;
}

.legal-info a {
    color: #8b694e;
    text-decoration: underline;
}

/* =============================
   CONTACTO - ICONOS REDES
   ============================= */

.contacto-redes-links.iconos {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.contacto-redes-links.iconos a {
    width: 36px;
    height: 36px;
    border: 1px solid #3f4b3a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contacto-redes-links.iconos svg {
    width: 18px;
    height: 18px;
    fill: #3f4b3a;
    transition: fill 0.3s ease;
}

.contacto-redes-links.iconos a:hover {
    background: #3f4b3a;
}

.contacto-redes-links.iconos a:hover svg {
    fill: #ffffff;
}

/* =============================
   CONTACTO - BANNER INFERIOR
   ============================= */

.contacto-banner-inferior {
    position: relative;
    width: 100%;
    margin-top: 6rem;
    height: 40vh;
    min-height: 320px;
    overflow: hidden;
}

.contacto-banner-inferior img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.contacto-banner-inferior-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 31, 31, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.contacto-banner-inferior-overlay p {
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.05em;
    line-height: 1.5;
    color: #8b694e;
    text-align: center;
    max-width: 800px;
}

/* =============================
   CONTACTO - CARRUSEL
   ============================= */

.contacto-carrusel-section {
    max-width: 1500px;
    margin: 5rem auto;
    padding: 0 4vw;
}

.contacto-carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
}

.contacto-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
}

.contacto-carousel::-webkit-scrollbar {
    height: 6px;
}

.contacto-carousel::-webkit-scrollbar-track {
    background: #f0ede9;
}

.contacto-carousel::-webkit-scrollbar-thumb {
    background: #8b694e;
    /* border-radius:  3px; */
}

.contacto-carousel-item {
    flex: 0 0 320px;
    height: 240px;
}

.contacto-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* border-radius:  0; */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contacto-carousel-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* =============================
   RESPONSIVE
   ============================= */




/* =============================
   EQUIPO - HERO
   ============================= */

.equipo-hero {
    width: 100%;
    position: relative;
    height: 60vh;
    min-height: 500px;
    overflow: hidden;
    background: transparent;
}

.equipo-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.equipo-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8vh;
}

.equipo-hero-overlay h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: 3rem;
    letter-spacing: 0.15em;
    font-weight: 300;
    color: #ffffff;
}

/* =============================
   EQUIPO - CONTENIDO
   ============================= */

.equipo-section {
    max-width: 1500px;
    margin: 5rem auto;
    padding: 0 4vw;
}

.equipo-intro {
    max-width: 640px;
    margin: 0 auto 4rem;
    text-align: center;
}

.equipo-intro p {
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #8b694e;
}

/* =============================
   TRIÁNGULO
   ============================= */

.equipo-triangulo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.equipo-nivel {
    display: flex;
    gap: 4rem;
    justify-content: center;
}

/* CEO */
.equipo-ceo .equipo-card {
    max-width: 330px; /* +3% */
}

/* Afines */
.equipo-afines .equipo-card {
    max-width: 290px; /* +3% */
}

/* Base */
.equipo-base .equipo-card {
    max-width: 270px; /* +3% */
}

/* =============================
   TARJETAS
   ============================= */

.equipo-card {
    text-align: center;
}

.equipo-card img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(10%);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.equipo-card h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin-top: 1.2rem;
    color: #8b694e;
}

.equipo-rol {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8b694e;
    margin: 0.5rem 0 1rem;
}

.equipo-card p {
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #8b694e;
}

/* Hover MUY SUTIL */
.equipo-card:hover img {
    transform: translateY(-4px);
    filter: grayscale(0%);
}

/* =============================
   RESPONSIVE
   ============================= */


/* CONTENEDOR RELATIVO PARA LÍNEAS */
.equipo-triangulo-container {
    position: relative;
    padding: 4rem 0;
}

/* LÍNEAS SVG */
.equipo-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.equipo-lines line {
    stroke: #e0ddd8;
    stroke-width: 0.5;
    stroke-dasharray: 2;
    /* Línea punteada elegante */
}

/* TARJETAS MEJORADAS */
.equipo-card {
    position: relative;
    z-index: 1;
    background: transparent; /* Quitar fondo */
    padding: 0; /* Quitar padding */
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.equipo-card:hover {
    border-color: #8b694e;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.equipo-card .img-wrapper {
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.equipo-card img {
    width: 100%;
    height: 330px; /* +3% */
    object-fit: cover;
    transition: transform 0.8s ease;
}

.equipo-card:hover img {
    transform: scale(1.05);
}

/* BIO EXTENDIDA (OCULTA POR DEFECTO) */
.equipo-bio-full {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    color: #8b694e;
    margin-top: 1rem;
    text-align: left;
}

.equipo-card.active .equipo-bio-full {
    max-height: 200px;
    opacity: 1;
}

/* =============================
   PÁGINA HISTORIA - PREMIUM
   ============================= */

.historia-hero {
    height: 70vh;
    width: 100%;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05)),
        url('../images/historia/justo-familia.jpg') center 10%/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 4vw;
    overflow: hidden;
}

.historia-hero-content h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    color: #ffffff;
}

.historia-hero-content p {
    font-family: "Montserrat", sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #ffffff;
}

.historia-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4vw 100px;
}

.historia-section {
    padding: 80px 0;
}

.historia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.historia-grid--reverse {
    direction: rtl;
}

.historia-grid--reverse .historia-text {
    direction: ltr;
}

.historia-text h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #8b694e;
}

.historia-text p {
    font-size: 1.05rem;
    line-height: 2;
    color: #8b694e;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.historia-date {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: #8b694e;
    margin-bottom: 1rem;
}

.historia-image {
    position: relative;
    overflow: hidden;
}

.historia-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.historia-section--alt {
    background-color: #f7f4f0;
    padding: 120px 0;
    margin: 0 -4vw;
}

.historia-quote-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 4vw;
}

.historia-quote-wrapper h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #8b694e;
}

.historia-section--family {
    padding-top: 100px;
}

.historia-family-banner {
    width: 100%;
    margin-bottom: 60px;
}

.historia-family-banner img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.historia-text.centered {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}


/* --- Redes sociales footer (Fix contrast) --- */
.footer-social a {
    color: rgba(253, 250, 245, 0.9);
}

.footer-social a:hover {
    color: #8b694e;
    opacity: 1;
}

/* =============================
   EQUIPO - CITA MOTIVACIONAL
   ============================= */

.equipo-quote-container {
    max-width: 700px;
    margin: 3rem auto 0;
    padding: 0 2rem;
    text-align: center;
    position: relative;
}

/* Comillas decorativas sutiles */
/* Eliminado el pseudo-elemento antiguo para usar los nuevos en .equipo-quote */
.equipo-quote-container::before {
    display: none;
}

.equipo-quote {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.8rem; /* Slightly larger for better impact without literal quotes */
    font-style: italic;
    font-weight: 300;
    line-height: 1.6;
    color: #8b694e;
    /* Verde oscuro corporativo */
    margin: 0;
    position: relative;
    padding: 2.5rem 0;
}

/* Comillas decorativas */
.equipo-quote::before,
.equipo-quote::after {
    content: "“";
    position: absolute;
    font-size: 6rem;
    color: rgba(139, 105, 78, 0.1);
    font-family: serif;
    line-height: 1;
}

.equipo-quote::before {
    top: 0;
    left: -1rem;
}

.equipo-quote::after {
    content: "”";
    bottom: -2rem;
    right: -1rem;
}

.quote-signature {
    margin-top: 1.5rem;
    font-family: "Montserrat", sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #8b694e;
    /* Tono tierra */
}

/* Ajuste para el triángulo: la cita separa al CEO de los Afines */
.equipo-ceo {
    flex-direction: column;
    align-items: center;
}

/* ===== FIX: menú en móvil horizontal ===== */

/* ===== FIX: evitar hover fantasma en móvil (iOS/Android) ===== */

/* FOOTER BOTTOM */
.footer-bottom {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

/* Ajuste para móviles */

/* --- Footer Refinado --- */
/* Eliminado para no sobreescribir estilos anteriores */

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0 20px;
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: #8b694e;
    /* Color Bronce */
}

/* Quitar decoración de listas y enlaces */
.footer-links {
    list-style: none;
    /* Quita los puntos */
    padding: 0;
    margin: 0 0 20px 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-link-email {
    text-decoration: none;
    /* Quita el subrayado azul */
    color: #8b694e;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-link-email:hover {
    color: #8b694e;
}

.footer-text,
.footer-schedule {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #8b694e;
}

/* Control de tamaño y color de iconos */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social a {
    color: #8b694e;
    /* Color bronce para los iconos */
    display: inline-block;
    line-height: 1;
}

.footer-social svg {
    width: 20px;
    /* Tamaño pequeño y elegante */
    height: 20px;
    display: block;
    text-align: center;
}

.footer-bottom {
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid #f0ede8;
    padding-top: 30px;
    font-size: 0.75rem;
    color: #8b694e;
}

/* Contenedor principal de las 3 columnas */
/* Eliminado para no sobreescribir */

/* Estilo para la última fila (Copyright) */
.footer-bottom {
    grid-column: 1 / -1;
    /* Esto hace que si estuviera dentro del grid, ocupara todo el ancho */
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid #f0ede8;
    text-align: center;
    /* Centrado horizontal */
    width: 100%;
}

.footer-bottom p {
    display: block;
    width: 100%;
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    color: #8b694e;
    text-transform: uppercase;
}

/* =============================
   COOKIE CARD MINIMALISTA
   ============================= */
.cookie-card {
    position: fixed;
    bottom: 20px;
    left: 20px;
    /* Cambia a 'right: 20px' si lo prefieres a la derecha */
    max-width: 350px;
    background: #ffffff;
    color: #8b694e;
    padding: 20px;
    /* border-radius:  16px; */
    /* Bordes muy redondeados */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10000;

    /* Estado inicial (oculto y abajo) */
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(212, 165, 116, 0.2);
}

/* Clase que activa el JS */
.cookie-card.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.cookie-body p {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    font-family: 'Montserrat', sans-serif;
}

.cookie-body a {
    color: #8b694e;
    text-decoration: none;
    font-weight: 600;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    /* Añadido para que los botones se acomoden */
    gap: 10px;
    justify-content: flex-end;
}

/* Botones minimalistas */
.cookie-actions button {
    padding: 8px 18px;
    /* border-radius:  8px; */
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background: #d4a574;
    /* Color Mashamba */
    color: white;
}

.btn-primary:hover {
    background: #bc8f5f;
    transform: translateY(-1px);
}

.btn-minimal {
    background: #f5f1e8;
    color: #8b694e;
}

.btn-minimal:hover {
    background: #ede4d5;
}

/* Ajuste para móviles */

/* Animación del emoji (opcional, toque divertido) */
@keyframes cookieBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.cookie-content h3::before {
    content: '🍪 ';
    display: inline-block;
    animation: cookieBounce 2s ease-in-out infinite;
}

.cookie-card {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 380px;
    /* Un poco más ancho para acomodar textos legales */
    background: #ffffff;
    color: #8b694e;
    padding: 24px;
    /* border-radius:  16px; */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    z-index: 10000;
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(212, 165, 116, 0.15);
}

.cookie-card.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.cookie-body h3 {
    margin: 0 0 12px 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: #8b694e;
}

.cookie-body p {
    margin: 0 0 20px 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #8b694e;
}

/* Estilo para los enlaces dentro del texto traducido */
.cookie-body p a {
    color: #8b694e;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border 0.3s;
}

.cookie-body p a:hover {
    border-bottom: 1px solid #d4a574;
}

/* =============================
   COOKIE MODAL (Preferencias)
   ============================= */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
}

.cookie-modal.is-open {
    display: block;
}

.cookie-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.45);
    backdrop-filter: blur(4px);
}

.cookie-modal__panel {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    margin: 0 auto;
    max-width: 520px;

    background: #fff;
    /* border-radius:  18px; */
    border: 1px solid rgba(212, 165, 116, 0.18);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);

    padding: 18px 18px 14px 18px;
    transform: translateY(14px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.cookie-modal.is-open .cookie-modal__panel {
    transform: translateY(0);
    opacity: 1;
}

.cookie-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    /* border-radius:  10px; */
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #8b694e;
}

.cookie-modal__title {
    margin: 0 36px 6px 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: #8b694e;
}

.cookie-modal__desc {
    margin: 0 0 14px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #8b694e;
}

.cookie-prefs {
    display: grid;
    gap: 10px;
    margin: 10px 0 14px;
}

.cookie-pref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 12px;
    /* border-radius:  14px; */
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(245, 241, 232, 0.35);
}

.cookie-pref__name {
    font-weight: 650;
    color: #8b694e;
    font-size: 0.95rem;
}

.cookie-pref__hint {
    margin-top: 2px;
    color: #8b694e;
    font-size: 0.85rem;
    line-height: 1.35;
}

/* Switch minimal */
.cookie-switch {
    flex: 0 0 auto;
}

.cookie-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cookie-switch label {
    display: inline-block;
    width: 46px;
    height: 28px;
    /* border-radius:  999px; */
    background: #e9e2d6;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cookie-switch label::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    /* border-radius:  50%; */
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease;
}

.cookie-switch input:checked+label {
    background: rgba(212, 165, 116, 0.75);
}

.cookie-switch input:checked+label::after {
    transform: translateX(18px);
}

.cookie-switch input:disabled+label {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Acciones */
.cookie-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.14);
    color: #8b694e;
    /* border-radius:  10px; */
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 650;
}

.btn-primary--alt {
    background: #2c2416;
    color: #8b694e;
}

/* =============================
   SECTION: RESPONSIVE
   ============================= */

@media (max-width: 1100px) {

    /* CONTACTO */
    .contacto-layout {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .contacto-imagen {
        grid-column: 1 / -1;
    }

    .contacto-imagen img {
        min-height: 360px;
    }

    .banner-overlay h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 1024px) {

    /* VIVEROS */
    .viveros-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .viveros-main-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 900px) {

    /* HEADER */
    .brand-logo-icon {
        max-height: 60px;
    }

    .brand-text-main {
        font-size: 2.4rem;
    }

    .brand-text-sub {
        font-size: 0.75rem;
        letter-spacing: 0.15em;
    }

    .nav-link {
        font-size: 0.885rem;
        letter-spacing: 0.18em;
    }

    /* SERVICIOS */
    .servicio-card {
        flex: 0 0 45%;
        max-width: 45%;
        margin-bottom: 2.5rem;
    }

    .servicio-media {
        height: 280px;
    }

    /* EQUIPO */
    .equipo-hero {
        height: 45vh;
        min-height: 350px;
    }

    .equipo-hero img {
        object-position: center 15%;
    }

    .equipo-nivel {
        flex-direction: column;
        gap: 3rem;
    }

    .equipo-card img {
        height: 300px;
    }

    .dos-columnas,
    .dos-columnas.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .dos-columnas>div:first-child,
    .dos-columnas>div:last-child {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .slider-proyectos .slide {
        height: 280px;
    }

    /* PLANOS 3D */
    .planos3d-row,
    .planos3d-row-alt {
        flex-direction: column;
        align-items: stretch;
    }

    .planos3d-col-img,
    .planos3d-col-text,
    .planos3d-col-gallery,
    .planos3d-row-alt .planos3d-col-text {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .planos3d-col-img {
        margin-bottom: 1.8rem;
    }

    .planos3d-col-gallery {
        margin-top: 1.8rem;
    }

    .planos3d-col-text p {
        font-size: 0.95rem;
    }

    /* VIVEROS */
    .viveros-ayuda-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .viveros-ayuda-descripcion {
        max-width: none;
    }

    .viveros-section,
    .viveros-carrusel-section {
        padding: 0 1.5rem;
    }

    .viveros-row,
    .viveros-row-middle {
        flex-direction: column;
        align-items: flex-start;
    }

    .viveros-image {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 1rem;
    }

    .viveros-cta-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .viveros-carousel-item {
        flex: 0 0 calc(50% - 0.75rem);
    }

    /* EQUIPO */
    .equipo-nivel {
        flex-direction: column;
        gap: 3rem;
    }

    .equipo-card img {
        height: 300px;
    }

    /* HISTORIA */
    .historia-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .historia-grid--reverse {
        direction: ltr;
    }

    .historia-hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 850px) {

    /* FOOTER */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {

    /* CONTACTO */
    .contacto-section {
        margin: 4rem auto 3rem;
        padding: 0 1.5rem;
    }

    .contacto-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contacto-imagen img {
        min-height: 300px;
    }

    .contacto-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .contacto-form .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .banner-overlay h1 {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }

    .contacto-banner-inferior-overlay p {
        font-size: 1.5rem;
    }

    .contacto-carousel-item {
        flex: 0 0 260px;
        height: 200px;
    }
}

@media (max-width: 720px) {

    /* HEADER & NAV */
    .header-inner {
        flex-wrap: wrap;
        align-items: center;
    }

    .brand-link {
        gap: 0.8rem;
    }

    .brand-logo-icon {
        max-height: 48px;
    }

    .brand-text-main {
        font-size: 1.8rem;
    }

    .brand-text-sub {
        font-size: 0.65rem;
        letter-spacing: 0.1em;
        margin-top: 0.2rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        width: 100%;
        margin-top: 0.75rem;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .main-nav.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .lang-switch {
        margin-top: 0.5rem;
    }

    /* VIVEROS */
    .banner-viveros {
        height: 35vh;
        min-height: 280px;
    }

    .banner-viveros .banner-overlay h1 {
        font-size: 1.8rem;
    }

    .viveros-carousel-item {
        flex: 0 0 80%;
    }

    .viveros-carousel-item img {
        height: 200px;
    }

    /* HISTORIA */
    .historia-grid {
        gap: 3rem;
    }

    .historia-text h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .historia-section--family {
        padding-top: 40px;
    }

    .historia-family-banner {
        margin-bottom: 30px;
    }

    .historia-family-banner img {
        height: 40vh;
        min-height: 250px;
    }

    .historia-section--alt {
        padding: 60px 0;
    }

    .historia-hero-content h1 {
        font-size: 2.5rem;
    }


    .footer-col {
        flex: 0 0 100%;
        text-align: center;
    }

    .footer-bottom {
        margin-bottom: 0px;
        padding-bottom: 40px;
    }

    /* HERO */
    .hero-slider {
        height: 50vh;
        min-height: 400px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    /* HOME PROYECTOS */
    .proyectos-grid {
        gap: 2rem;
    }

    .proyecto-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* SERVICIOS */
    .servicio-card {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 3.5rem;
    }

    .servicio-media {
        height: 260px;
    }

    .servicio-card.active .servicio-overlay {
        background: radial-gradient(circle at top left, rgba(253, 248, 242, 0.12) 0%, transparent 40%),
            linear-gradient(160deg, #2b2b2b 0%, #111111 55%, #3f4b3a 100%);
    }

    .servicio-card.active .servicio-overlay-content h3 {
        margin-bottom: 1.2rem;
        transform: translateY(0);
    }

    .servicio-card.active .servicio-overlay-content p {
        max-height: 250px;
        opacity: 1;
        transform: translateY(0);
    }

    /* HOME INTRO */
    .home-intro {
        margin: 3rem auto 3.5rem;
        padding: 0 1rem;
    }

    .frase-principal {
        font-size: 1.5rem;
        padding: 1.6rem 1.7rem;
    }

    .frase-principal::before,
    .frase-principal::after {
        font-size: 2.8rem;
    }

    .frase-secundaria {
        font-size: 0.94rem;
    }

    .frase-impactante {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
}

@media (max-width: 600px) {

    /* PROYECTOS / SLIDER */
    .slider-proyectos .slide {
        height: 240px;
    }

    /* PLANOS 3D */
    .planos3d-col-gallery {
        flex-direction: column;
    }

    /* HISTORIA ADAPTATION */
    .historia-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .historia-image {
        max-width: 90%;
        margin: 0 auto;
    }

    .historia-image img {
        height: auto;
    }

    .historia-section {
        padding: 40px 0;
    }

    .historia-section--alt {
        margin: 0 -20px;
        padding: 50px 20px;
    }

    .historia-quote-wrapper h3 {
        font-size: 1.8rem;
    }

    .planos3d-img {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {

    /* CONTACTO */
    .contacto-form-wrapper {
        padding: 1.5rem 1rem;
    }

    .form-captcha-row {
        padding: 1rem;
    }

    .banner-overlay h1 {
        font-size: 1.6rem;
    }

    /* COOKIES */
    .cookie-card {
        left: 15px;
        right: 15px;
        max-width: none;
        bottom: 15px;
    }
}

/* ORIENTATION & ACCESSIBILITY */
@media (max-width: 900px) and (orientation: landscape) {
    .header-inner {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .main-nav {
        width: 100%;
    }

    .nav-list {
        flex-wrap: wrap;
        gap: 0.7rem 1.2rem;
    }

    .nav-link {
        font-size: 0.845rem;
        letter-spacing: 0.12em;
        white-space: normal;
    }

    .lang-switch {
        margin-top: 0.25rem;
    }
}


@media (min-width: 520px) {
    .cookie-modal__actions {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
/* ==========================================================================
   NEWSLETTER PAGE STYLES
   ========================================================================== */

.newsletter-container {
    background-color: #fcfcfc;
    color: #333;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.newsletter-hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/proyectos/banner.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 4rem;
}

.newsletter-hero-content h1 {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 1rem 0;
}

.newsletter-edition {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.newsletter-divider {
    width: 60px;
    height: 1px;
    background: #fff;
    margin: 0 auto;
}

.newsletter-section {
    padding: 6rem 0;
}

.container-small {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.editorial-title {
    font-family: serif;
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 2rem;
    font-weight: 400;
}

.editorial-text {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 40px;
}

.grid-item {
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.grid-item:hover {
    transform: translateY(-10px);
}

.grid-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.grid-content {
    padding: 2rem;
}

.grid-content h3 {
    font-family: serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.featured-flex {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    background: #fff;
}

.featured-image, .featured-content {
    flex: 1;
    min-width: 400px;
}

.featured-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.featured-content {
    padding: 4rem;
}

.btn-newsletter {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid #333;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-newsletter:hover {
    background: #333;
    color: #fff;
}

.projects-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.projects-mini-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.projects-mini-grid img:hover {
    filter: grayscale(0%);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.step {
    text-align: center;
}

.step-number {
    display: block;
    font-size: 3rem;
    font-family: serif;
    color: #eaeaea;
    margin-bottom: 1rem;
}

.newsletter-socials {
    margin-top: 4rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.social-icon {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-icon:hover {
    color: #333;
}

@media (max-width: 768px) {
    .newsletter-hero-content h1 {
        font-size: 2.5rem;
    }
    .featured-image, .featured-content {
        min-width: 100%;
    }
    .projects-mini-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   UPDATED NEWSLETTER STYLES (IMPACTFUL DESIGN)
   ========================================================================== */

.newsletter-hero-full {
    height: 80vh;
    width: 100%;
    background: url('../images/proyectos/banner.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    margin-bottom: 0;
}

.newsletter-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-hero-content {
    text-align: center;
    color: #fff;
}

.newsletter-hero-content h1 {
    font-size: 5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin: 1.5rem 0;
}

.newsletter-section.reduced-spacing {
    padding-top: 2rem;
}

.no-padding-bottom {
    padding-bottom: 2rem;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-medium {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* LATEST PROJECT SLIDER */
.latest-project-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    background: #fff;
    padding: 4rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.section-tag {
    display: inline-block;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.newsletter-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.n-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.n-slide.active {
    opacity: 1;
}

.n-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.slider-controls button:hover {
    background: #fff;
}

.slider-controls button:first-child { left: 0; }
.slider-controls button:last-child { right: 0; }

/* PROCESS IMPACT GRID */
.section-header-center {
    text-align: center;
    margin-bottom: 4rem;
}

.process-impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.process-step-card {
    background: #fff;
    padding: 3rem;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.process-step-card:hover {
    border-color: #333;
    transform: translateY(-5px);
}

.step-num {
    font-size: 4rem;
    font-family: serif;
    color: #f0f0f0;
    display: block;
    margin-bottom: 1rem;
}

/* CONTACT IMPACT CTA */
.contact-impact-section {
    padding: 8rem 0;
    background: #f9f9f9;
}

.contact-cta-card {
    max-width: 900px;
    margin: 0 auto;
    background: #1a1a1a;
    color: #fff;
    padding: 5rem;
    text-align: center;
    position: relative;
}

.cta-title {
    font-size: 3rem;
    font-family: serif;
    margin-bottom: 1.5rem;
}

.btn-cta-impact {
    display: inline-block;
    padding: 1.5rem 3rem;
    background: #fff;
    color: #1a1a1a;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-top: 2rem;
    transition: all 0.3s;
}

.btn-cta-impact:hover {
    background: #333;
    color: #fff;
}

.contact-cta-socials {
    margin-top: 4rem;
    border-top: 1px solid #333;
    padding-top: 2rem;
}

.social-links-impact a {
    color: #888;
    text-decoration: none;
    margin: 0 1rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.social-links-impact a:hover {
    color: #fff;
}

.btn-newsletter-premium {
    display: inline-block;
    padding: 1rem 2rem;
    border-bottom: 2px solid #1a1a1a;
    color: #1a1a1a;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-top: 1.5rem;
    transition: all 0.3s;
}

.btn-newsletter-premium:hover {
    letter-spacing: 3px;
}

@media (max-width: 992px) {
    .latest-project-layout {
        grid-template-columns: 1fr;
    }
    .process-impact-grid {
        grid-template-columns: 1fr;
    }
    .newsletter-hero-content h1 {
        font-size: 3rem;
    }
}

/* CONTACT TWO COLUMNS LAYOUT */
.contact-two-columns {
    padding: 0;
    background: #fcfcfc;
}

.contact-split-layout {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    color: #fff;
    overflow: hidden;
    min-height: 600px;
}

.contact-split-image {
    flex: 1;
    height: 100%;
    min-height: 600px;
}

.contact-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-split-content {
    flex: 1;
    padding: 6rem;
}

.contact-split-socials {
    margin-top: 4rem;
    border-top: 1px solid #333;
    padding-top: 2rem;
}

@media (max-width: 992px) {
    .contact-split-layout {
        flex-direction: column;
    }
    .contact-split-image {
        width: 100%;
        height: 400px;
        min-height: auto;
    }
    .contact-split-content {
        padding: 4rem 2rem;
    }
}

/* UPDATED CONTACT FULL WIDTH BRAND THEME */
.contact-full-width {
    padding: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.contact-split-layout.brand-theme {
    display: flex;
    align-items: stretch;
    background-color: #FFFDF9; /* Brand warm white */
    color: #8b694e; /* Brand brown */
    min-height: 600px;
}

.contact-split-layout.brand-theme .contact-split-image {
    flex: 1;
    min-height: 600px;
}

.contact-split-layout.brand-theme .contact-split-content {
    flex: 1;
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-split-layout.brand-theme .cta-title {
    color: #8b694e;
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.contact-split-layout.brand-theme .cta-text {
    color: #8b694e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 500px;
}

.btn-cta-brand {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: #8b694e;
    color: #FFFDF9;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-cta-brand:hover {
    background: #72563f;
    transform: translateY(-2px);
}

.social-icons-svg {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-icons-svg svg {
    width: 28px;
    height: 28px;
    fill: #8b694e;
    transition: fill 0.3s, transform 0.3s;
}

.social-icons-svg a:hover svg {
    fill: #72563f;
    transform: scale(1.1);
}

.contact-split-layout.brand-theme .contact-split-socials {
    margin-top: 4rem;
    border-top: 1px solid rgba(139, 105, 78, 0.2);
    padding-top: 2rem;
}

@media (max-width: 992px) {
    .contact-split-layout.brand-theme {
        flex-direction: column;
    }
    .contact-split-layout.brand-theme .contact-split-image {
        width: 100%;
        height: 400px;
        min-height: auto;
    }
    .contact-split-layout.brand-theme .contact-split-content {
        padding: 4rem 2rem;
    }
    .contact-split-layout.brand-theme .cta-title {
        font-size: 2.5rem;
    }
}
