:root {
    --terracota: #ac6142;
    --terracota-dark: #2d1b15;
    --crema: #fdfaf6;
    --texto: #3d3d3d;
    --blanco: #ffffff;
    --nav-height: 80px;
    --transicion: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Nuevo color solicitado */
    --verde-oliva: #918754;
}

html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; padding: 0; }

/* --- NUEVA REGLA PARA ENCABEZADOS --- */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600; /* Esto es el SemiBold */
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--crema);
    color: var(--texto);
    overflow-x: hidden;
}

section { scroll-margin-top: var(--nav-height); }

/* --- CABECERA --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    height: var(--nav-height);
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    /* Ajusta este valor al tamaño que quieras que tenga el logo en PC */
    max-width: 150px; 
    text-decoration: none;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--texto);
    font-weight: 500;
    padding: 5px 0;
    display: inline-block;
}

/* Línea animada debajo de los enlaces (excepto el botón de contacto) */
.nav-links li:not(:last-child) a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--terracota);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links li:not(:last-child) a:hover::after,
.nav-links li:not(:last-child) a.active::after {
    width: 100%;
}

.nav-links a:hover { color: var(--terracota); }

/* Estilo del botón de contacto (VERDE) */
.nav-links li:last-child a {
    background-color: var(--verde-oliva);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-links li:last-child a:hover {
    transform: scale(1.05);
    background-color: #4a462f;
    box-shadow: 0 4px 10px rgba(106, 100, 68, 0.3);
    animation: pulse-button-green 1.5s infinite;
    /* Corrección aquí: */
    font-family: 'Quicksand', sans-serif;

}

/* RESPONSIVE CABECERA */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 10px;
    }
    .nav-links {
        gap: 0.8rem;
        padding-bottom: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links a {
        font-size: 0.85rem;
    }
    :root {
        --nav-height: 140px; 
    }
}

@keyframes pulse-button-green {
    0% { box-shadow: 0 0 0 0 rgba(106, 100, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(106, 100, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(106, 100, 68, 0); }
}

/* --- HERO CON SLIDER --- */
.hero {
    position: relative;
    min-height: 80vh;
    overflow: hidden;
    background-color: #000;
}

.hero-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    display: flex;
    align-items: center;
    padding: 0 8%;
}

/* ESTILOS PARA VIDEO DE FONDO */
.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(253, 250, 246, 0.95) 35%, rgba(253, 250, 246, 0.2) 100%);
    z-index: 2;
}

.slide.active { opacity: 1; z-index: 2; }

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 650px;
}

.hero-content h1, 
.hero-content p, 
.hero-content .btn-main {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.slide.active .hero-content h1 { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.slide.active .hero-content p { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }
.slide.active .hero-content .btn-main {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
    font-weight: bold;
}

.hero h1 { font-size: 3.5rem; color: var(--terracota); line-height: 1.2; }
.hero p { 
    font-size: 1.4rem; 
    color: var(--texto);
    /* ORDEN: Arriba | Derecha | Abajo | Izquierda */
    margin: 0.2rem 0 2.5rem 0; 
}

.btn-main {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    background: var(--verde-oliva);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-main:hover { 
    transform: translateY(-5px) scale(1.02) !important; 
    background-color: #4a462f;
    box-shadow: 0 10px 20px rgba(106, 100, 68, 0.4); 
}
    
/* ELIMINA EL DEGRADADO SOLO SI EL SLIDE TIENE VIDEO */
.slide.has-video::before {
    background: none !important;
}    

/* --- RESPONSIVE HERO (AJUSTES SOLICITADOS) --- */
@media (max-width: 900px) {
    .hero { min-height: 60vh; } /* Reduce el alto de la sección */
    .hero h1 { font-size: 2.2rem; } /* Texto más pequeño */
    .hero p { font-size: 1.1rem; margin: 1rem 0; }
    .hero-content { text-align: center; margin: 0 auto; padding: 0 20px; }
    .btn-main { padding: 0.8rem 2rem; font-size: 0.9rem; }
    .slide::before {
        background: linear-gradient(180deg, rgba(253, 250, 246, 0.9) 40%, rgba(253, 250, 246, 0.5) 100%);
    }
}

@media (max-width: 480px) {
    .hero { min-height: 50vh; } /* Aún más compacto en móviles pequeños */
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .hero-dots { bottom: 15px; }
}

.hero-nav {
    position: absolute;
    width: 100%; height: 100%;
    top: 0; left: 0; z-index: 10;
    display: flex; justify-content: space-between;
    align-items: center; padding: 0 3%;
    pointer-events: none;
}

.hero-arrow {
    background: none; border: none; cursor: pointer;
    color: rgba(61, 61, 61, 0.6); transition: 0.3s;
    pointer-events: auto;
}

.hero-arrow:hover { color: var(--terracota); transform: scale(1.2); }
.hero-arrow svg { width: 30px; height: 30px; fill: currentColor; }

.hero-dots {
    position: absolute; bottom: 30px; left: 50%;
    transform: translateX(-50%); display: flex;
    gap: 15px; z-index: 10; pointer-events: auto;
}

.hero-dot {
    width: 10px; height: 10px;
    background-color: rgba(61, 61, 61, 0.3);
    border-radius: 50%; border: none;
    cursor: pointer; transition: 0.3s ease;
}

.hero-dot.active { background-color: var(--terracota); transform: scale(1.3); }

.imagen-responsive {
  /* Hace que la imagen ocupe el ancho de su contenedor */
  width: 100%;
  
  /* Evita que la imagen se vea más grande de su tamaño original (450px) */
  max-width: 450px;
  
  /* Mantiene la proporción para que no se vea estirada */
  height: auto;
  
  /* Comportamiento de bloque para evitar espacios extra debajo */
  display: block;
  
  /* Opcional: Centra la imagen si el contenedor es más ancho */
  margin: 0 auto; 
}

/* Estilo exclusivo para H2 en el Slider */
.hero-content h2.texto-especial {
    font-family: 'Playfair Display', serif;
    color: #ffffff; /* Lo cambiamos a blanco como pediste antes */
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 500;
    
    /* Estado inicial (cuando NO es activo) */
    opacity: 0;
    transform: translateY(30px);
    
    /* Transición de SALIDA: Sin delay para que desaparezca rápido */
    transition: all 0.5s ease-in-out; 
    transition-delay: 0s; 
}

/* Estado cuando el slide es ACTIVO */
.slide.active .hero-content h2.texto-especial {
    opacity: 1;
    transform: translateY(0);
    
    /* Transición de ENTRADA: Con el delay que quieres */
    transition: all 0.7s cubic-bezier(0.55, 1, 0.32, 1);
    transition-delay: 0.3s; 
}

/* Activar animación cuando el slide esté activo */
.slide.active .hero-content h2.texto-especial {
    opacity: 1;
    transform: translateY(0);
}

/* Ajuste responsive para el h2 */
@media (max-width: 900px) {
    .hero-content h2.texto-especial {
        font-size: 1.6rem;
    }
}

/* --- SECCIÓN SOBRE MÍ --- */
.about {
    padding: 8rem 8% 4rem 8%;
    background-color: var(--crema);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.about-image { position: sticky; top: 120px; }
.about-image img {
    width: 100%;
    border-radius: 40px;
    display: block;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}

.about-content { display: flex; flex-direction: column; gap: 1.5rem; }
.about-content h2 {
    color: var(--terracota);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: "Playfair Display", serif;
}

.about-block {
    background: var(--blanco);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: var(--transicion);
    border: 1px solid rgba(193, 121, 95, 0.1);
}

/* ESTILO DESTACADO PARA FILOSOFÍA */
.about-block.philosophy-highlight {
    background: var(--verde-oliva);
    border: none;
    box-shadow: 0 15px 35px rgba(145, 135, 84, 0.3);
}

.about-block.philosophy-highlight .block-title,
.about-block.philosophy-highlight .plus-icon,
.about-block.philosophy-highlight p {
    color: white !important;
}

.about-block.philosophy-highlight .block-title svg {
    fill: white;
}

.about-block:hover { transform: translateY(-5px); border-color: var(--terracota); }
.about-block.philosophy-highlight:hover { border-color: transparent; transform: translateY(-8px); }

.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: Quicksand, sans-serif;
}
.block-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem; /* Tamaño original en escritorio */
    font-weight: 700;
    color: var(--terracota-dark);
    font-family: 'Playfair Display', serif; /* Asegura la coherencia visual */
}

/* --- AJUSTE RESPONSIVE ESPECÍFICO PARA ESTOS TÍTULOS --- */
@media (max-width: 768px) {
    .block-title {
        font-size: 1.0rem !important; /* El tamaño que solicitaste para móvil */
    }
    
    .block-title svg {
        width: 22px; /* Reducimos un poco el icono también para que sintonice */
        height: 22px;
    }
}

.block-title svg { width: 28px; height: 28px; fill: var(--terracota); }
.plus-icon { font-size: 1.5rem; color: var(--terracota); transition: transform 0.4s ease; }

.block-content { max-height: 0; overflow: hidden; transition: all 0.5s ease; opacity: 0; }
.about-block.active .block-content { max-height: 3000px; opacity: 1; margin-top: 1.5rem; padding-bottom: 0.5rem; }
.about-block.active .plus-icon { transform: rotate(45deg); }

.block-content p { line-height: 1.7; color: var(--texto); font-size: 1.05rem; }

/* Contenedor de Tarjetas */
.philosophy-cards-container {
    display: flex;
    width: 100%;
    gap: 12px; /* Reducimos un poco el gap para ganar espacio */
    margin-top: 2rem;
    height: 380px; 
}

.p-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    flex: 0.7; /* Aumentamos un poco el ancho base para que el icono respire */
    position: relative;
    transition: flex 700ms cubic-bezier(0.05, 0.61, 0.41, 0.95);
    overflow: hidden;
}

.p-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 1;
}

/* Estado Activa */
.p-card.active {
    flex: 5;
}

/* Icono Circular - Ajustado para centrarse mejor cuando está cerrada */
.p-icon {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%); /* Centrado perfecto cuando está cerrada */
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.5s ease;
}

/* Cuando la tarjeta se activa, el icono se mueve a la izquierda */
.p-card.active .p-icon {
    left: 25px;
    transform: translateX(0);
}

.p-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--terracota);
}

/* Títulos con aparición controlada */
.p-card h3 {
    position: absolute;
    bottom: 26px;
    left: 75px; /* Espacio respecto al icono cuando está activa */
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    white-space: nowrap;
    z-index: 2;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    transition: all 0.4s ease;
    pointer-events: none;
}

.p-card.active h3 {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease 0.4s; /* Espera a que la tarjeta se abra */
}

/* Ajuste para pantallas de escritorio pequeñas / Tablets horizontales */
@media (min-width: 769px) and (max-width: 1100px) {
    .p-card {
        flex: 0.8; /* Damos un poco más de margen a las tarjetas cerradas */
    }
    .p-card h3 {
        font-size: 1.1rem;
    }
}

/* Responsive: Apilado vertical */
@media (max-width: 768px) {
    .philosophy-cards-container {
        flex-direction: column;
        height: 700px; /* Más altura en móvil para que luzcan las fotos */
    }
    
    .p-card {
        flex: 1;
    }

    .p-card.active {
        flex: 4;
    }

    .p-icon {
        left: 20px;
        transform: none;
    }
    
    .p-card.active .p-icon {
        left: 20px;
    }

    .p-card h3 {
        opacity: 1;
        left: 70px;
        transform: none;
        font-size: 1.1rem;
    }
}

/* --- SECCIÓN COLABORADORES --- */
.colaboradores-banner {
    padding: 1rem 8% 5rem 8%;
    background-color: var(--crema);
}

.colaboradores-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    border-top: 1px solid rgba(193, 121, 95, 0.1);
    padding-top: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.colaborador-item {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--texto);
    opacity: 0.5;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.colaborador-item:hover {
    opacity: 1;
    color: var(--terracota);
    transform: translateY(-2px);
}

/* --- LÍNEA DE TIEMPO --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 30px auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(193, 121, 95, 0.3);
    top: 0; 
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 15px 0;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-item.animate { opacity: 1; transform: translateY(0); }

.timeline-item::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--terracota);
    border: 2px solid white;
    border-radius: 50%;
    z-index: 2;
    top: 18px;
}

.timeline-item.left { left: 0; padding-right: 25px; text-align: right; }
.timeline-item.left::after { right: -7px; }
.timeline-item.right { left: 50%; padding-left: 25px; text-align: left; }
.timeline-item.right::after { left: -7px; }

.timeline-year { font-weight: 800; color: var(--terracota); font-size: 1rem; display: block; margin-bottom: 2px; }
.timeline-text { font-size: 0.95rem !important; line-height: 1.4 !important; }

@media (max-width: 600px) {
    .timeline::after { left: 30px; }
    .timeline-item { width: 100%; padding-left: 65px !important; padding-right: 20px !important; text-align: left !important; left: 0 !important; }
    .timeline-item::after { left: 24px !important; right: auto !important; }
    .philosophy-features { grid-template-columns: 1fr; }
}

.edu-list { list-style: none; display: flex; flex-direction: column; gap: 0.1rem; }
.edu-item { display: flex; gap: 1rem; align-items: flex-start; }
.edu-dot { min-width: 10px; height: 10px; background: var(--terracota); border-radius: 50%; margin-top: 9px; }

@media (max-width: 1000px) { .about { grid-template-columns: 1fr; } .about-image { position: static; max-width: 500px; margin: 0 auto; } }

/* --- SECCIÓN SERVICIOS --- */
.services { 
    padding: 3rem 8%; 
    text-align: center; 
    background-color: var(--blanco); 
}

.services h2 {
    margin-bottom: 3rem;
    color: var(--terracota);
    font-size: 2.5rem;
}

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px; 
    max-width: 1100px; 
    margin: 0 auto; 
    align-items: start; 
}

/* --- TARJETA (BOX) --- */
.service-box { 
    border-radius: 25px; 
    padding: 2.5rem; 
    text-align: left; 
    transition: all 0.4s ease; 
    display: flex; 
    flex-direction: column; 
    position: relative; 
    overflow: hidden; 
    min-height: 400px; 
    z-index: 1; 
    /* BLOQUEO DE CLICK: La tarjeta no responde al click, solo el botón */
    pointer-events: none; 
}

/* Pseudo-elemento para la imagen */
.service-box::before { 
    content: ''; 
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%; 
    background-size: cover; 
    background-position: center; 
    transition: transform 0.8s ease, background-color 0.6s ease, background-image 0.4s ease; 
    z-index: -2; 
}

/* Degradado de legibilidad */
.service-box::after { 
    content: ''; 
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.7) 100%); 
    transition: opacity 0.6s ease; 
    z-index: -1; 
}

/* Asignación de imágenes */
.service-box:nth-child(1)::before { background-image: url('img/bg_bebe_alimentacion.jpg'); }
.service-box:nth-child(2)::before { background-image: url('img/bg_sueno.jpg'); }
.service-box:nth-child(3)::before { background-image: url('img/bg_juego.jpg'); }
.service-box:nth-child(4)::before { background-image: url('img/bg_recien_nacido.jpg'); }

/* Hover visual (Aun sin click, el hover funciona) */
.service-box:hover::before { transform: scale(1.1); }

/* --- ESTADO EXPANDIDO / PINCHADO (BLOQUE SÓLIDO LIMPIO) --- */
.service-box.expanded::before,
.service-box.pinched::before { 
    background-image: none !important; 
    background-color: var(--terracota) !important; 
    background-blend-mode: normal !important;
    transform: scale(1) !important;
}

/* Eliminación total de degradados y sombras */
.service-box.expanded::after,
.service-box.pinched::after { 
    background: none !important;
    opacity: 0 !important;
}

.service-box.expanded h3, .service-box.pinched h3,
.service-box.expanded p, .service-box.pinched p,
.service-box.expanded ul li, .service-box.pinched ul li {
    text-shadow: none !important;
}

/* --- TEXTOS --- */
.service-box h3 { 
    color: #ffffff; 
    font-size: 1.6rem; 
    margin-bottom: 1.2rem; 
    font-weight: 700; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
}

.service-box p { 
    font-size: 1.05rem; 
    line-height: 1.6; 
    color: #ffffff; 
    margin-bottom: 1rem; 
    text-shadow: 0 1px 5px rgba(0,0,0,0.5); 
}

/* --- CONTENIDO EXPANDIBLE --- */
.expand-content { 
    max-height: 0; 
    overflow: hidden; 
    transition: all 0.5s ease-in-out; 
    opacity: 0; 
}

.service-box.expanded .expand-content { 
    max-height: 1000px; 
    opacity: 1; 
    margin-top: 10px; 
    margin-bottom: 15px; 
}

/* --- BOTÓN (ÚNICO ELEMENTO CLICABLE) --- */
.btn-read-more { 
    position: relative; 
    background: transparent; 
    border: 1.5px solid #ffffff; 
    color: #ffffff; 
    font-weight: 600; 
    cursor: pointer; 
    font-size: 0.8rem; 
    padding: 10px 24px; 
    margin-top: auto; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    border-radius: 50px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    align-self: flex-start; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    backdrop-filter: blur(5px); 
    overflow: hidden; 
    min-width: 145px; 
    height: 42px; 
    z-index: 10; 
    /* RE-HABILITAMOS EL CLICK SOLO AQUÍ */
    pointer-events: auto; 
}

.btn-read-more::before { 
    content: ''; 
    position: absolute; 
    top: 0; left: -100%; width: 100%; height: 100%; 
    background: #ffffff; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: -1; 
}

.btn-read-more:hover { color: var(--terracota); transform: translateY(-3px); }
.btn-read-more:hover::before { left: 0; }

/* --- BOTÓN EN ESTADO EXPANDIDO (BOTÓN BLANCO CON X TERRACOTA) --- */
.service-box.expanded .btn-read-more { 
    min-width: 42px; 
    width: 42px; 
    padding: 0; 
    background-color: #ffffff !important; 
    border-color: #ffffff !important;
}

/* Ocultamos el efecto de barrido en estado expandido */
.service-box.expanded .btn-read-more::before {
    display: none !important;
}

.service-box.expanded .btn-text { 
    opacity: 0; 
    display: none;
}

.service-box.expanded .close-icon { 
    opacity: 1 !important; 
    transform: rotate(0) scale(1) !important; 
    display: flex !important;
    color: var(--terracota) !important; /* X en Terracota */
}

.service-box.expanded .close-icon svg {
    fill: var(--terracota) !important; /* Asegura el color del icono */
    width: 20px;
    height: 20px;
}

/* --- LISTAS --- */
.service-box ul { list-style: none; padding: 0; margin: 1rem 0; }
.service-box ul li { 
    position: relative; 
    padding-left: 25px; 
    color: #ffffff; 
    text-shadow: 0 1px 5px rgba(0,0,0,0.5); 
}

.service-box ul li::before { 
    content: '•'; 
    position: absolute; 
    left: 0; 
    color: #ffffff; 
    font-weight: bold; 
}

/* --- RESPONSIVE --- */
@media (max-width: 850px) { 
    .services-grid { grid-template-columns: 1fr; } 
}
/* --- SECCIÓN FAQS --- */
.faqs {
    position: relative; /* Necesario para la capa de color */
    padding: 6rem 8%;
    color: white;
    
    /* Configuración de la imagen de fondo */
    background-image: url('img/slider_2.jpg'); /* <--- PON AQUÍ LA RUTA DE TU IMAGEN */
    background-attachment: fixed; /* Efecto Parallax */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    
    /* Asegura que el contenido se vea por encima de la capa verde */
    z-index: 1;
}

/* Capa de color Verde Oliva sobre la imagen */
.faqs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--verde-oliva);
    opacity: 0.85; /* Ajusta este valor (0.0 a 1.0) para que se vea más o menos la imagen */
    z-index: -1;
}

.faqs-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative; /* Refuerza la prioridad del texto */
}

.faqs h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600; /* Esto es el SemiBold */
    margin-bottom: 1rem;
    text-align: center;
}

.faqs-intro {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 1.1rem;
    opacity: 1; /* Subido de 0.9 a 1 para mejor legibilidad sobre foto */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.15); /* Un poco más claro para resaltar del fondo */
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px); /* Toque extra de elegancia sobre la imagen */
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.25);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    user-select: none;
}

.faq-icon {
    font-size: 1.4rem;
    transition: transform 0.4s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 1.5rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .faqs { 
        padding: 4rem 5%; 
        background-attachment: scroll; /* El parallax suele fallar en móviles, mejor poner scroll */
    }
    .faqs h2 { font-size: 2.2rem; }
}

/* --- FOOTER --- */
.footer-main { padding: 4rem 8%; background-color: var(--terracota-dark); text-align: center; color: white; }
.footer-icons { display: flex; justify-content: center; gap: 3rem; }
.icon-svg { width: 50px; height: 50px; fill: rgba(255, 255, 255, 0.7); transition: 0.3s; }
.icon-link:hover .icon-svg { fill: var(--terracota); transform: translateY(-5px); }

.footer-legal { 
    background-color: #000; 
    padding: 2rem 1.5rem; 
    text-align: center; 
    color: rgba(255, 255, 255, 0.5); 
    font-size: 0.8rem; 
}

.legal-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.legal-item { cursor: pointer; transition: color 0.3s ease; }
.legal-item:hover { color: var(--terracota); }

.legal-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    opacity: 0;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.legal-content.active {
    max-height: 500px;
    opacity: 1;
    margin-top: 1.5rem;
    padding: 1.5rem;
}

/* --- COOKIE BANNER LATERAL PREMIUM --- */
.cookie-card-right {
    position: fixed;
    bottom: 30px;
    right: -450px; /* Escondido a la derecha */
    width: 350px;
    background-color: rgba(253, 250, 246, 0.98); /* --crema con opacidad */
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(45, 27, 21, 0.1);
    z-index: 3000;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(145, 135, 84, 0.1);
}

/* Estado activo (Entrada) */
.cookie-card-right.show {
    transform: translateX(-480px); /* Se desplaza hacia la izquierda */
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

/* --- ESTILO E ICONO DE GALLETA VISTOSO Y ELEGANTE --- */
.cookie-icon { 
    width: 50px; 
    height: 50px; 
    fill: var(--verde-oliva); 
    margin-bottom: 0.5rem;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
    
    /* Estado inicial para la animación */
    opacity: 0;
    transform: translateY(15px);
}

/* Animación de revelado suave (Fade-In-Up) */
.cookie-card-right.show .cookie-icon {
    animation: cookie-fade-in-up 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 1s; /* Aparece sutilmente después de que la tarjeta entre */
}

@keyframes cookie-fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto al pasar el ratón: Cambio de color suave y sofisticado */
.cookie-card-right:hover .cookie-icon {
    fill: var(--terracota); 
    transition: fill 0.4s ease;
}

.cookie-card-right h3 {
    font-size: 1.2rem;
    color: var(--terracota-dark);
    margin: 0;
}

.cookie-card-right p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--texto);
    margin-bottom: 1.5rem;
}

/* Botones en columna para mayor elegancia */
.cookie-actions-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-cookie-primary {
    background-color: var(--verde-oliva);
    color: white;
    border: none;
    padding: 0.9rem;
    border-radius: 50px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-cookie-primary:hover {
    background-color: var(--terracota);
    transform: translateY(-2px);
}

.btn-cookie-info {
    background-color: transparent;
    color: var(--texto);
    border: 1px solid #ddd;
    padding: 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cookie-info:hover {
    background-color: #f0f0f0;
}

/* Móvil: Se centra y ajusta ancho */
@media (max-width: 480px) {
    .cookie-card-right {
        width: 100%;       /* Ocupa todo el ancho en móvil */
        right: 0;
        left: 0;
        top: -500px;       /* Escondido arriba del todo */
        bottom: auto;      /* Anulamos la posición inferior */
        border-radius: 0 0 24px 24px; /* Redondeado solo abajo */
        padding: 1.5rem;
        transform: none;   /* Anulamos el translateX lateral */
        transition: top 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    /* Estado activo en móvil: se desliza desde el techo */
    .cookie-card-right.show {
        top: 0;
        transform: none;
    }

    /* Ajustamos el icono para que no ocupe tanto espacio en móvil */
    .cookie-icon {
        width: 40px;
        height: 40px;
    }

    .cookie-card-right h3 {
        font-size: 1.1rem;
    }
}


/* --- AJUSTES RESPONSIVE: TAMAÑO DE ENCABEZADOS H2 --- */
@media (max-width: 768px) {
    .about-content h2,
    .services h2,
    .faqs h2 {
        font-size: 1.7rem !important; /* El !important asegura que sobrescriba valores previos */
        line-height: 1.3;
        margin-bottom: 1.5rem; /* Ajuste sutil de espacio inferior */
    }
}
