/* --- PALETA DE COLORES Y FUENTES (TEMA LUMINOSO) --- */
/* --- AJUSTE UNIVERSAL DEL BOX-MODEL --- */
*, *::before, *::after {
    box-sizing: border-box;
}
:root {
    --color-amarillo: #BDB700;
    --color-texto-oscuro: #212529; /* Negro suave para textos principales */
    --color-texto-gris: #6c757d; /* Gris para párrafos y textos secundarios */
    --color-fondo-claro: #FFFFFF; /* Blanco para las secciones de contenido */
    --color-fondo-body: #f8f9fa; /* Un gris muy claro para el fondo general */
    --color-fondo-oscuro: #1E1E1E; /* Para el footer */
    --fuente-principal: Arial, sans-serif;
}
html, body {
    width: 100%;
    overflow-x: hidden;
}
/* --- ESTILOS GENERALES --- */
body {
    font-family: var(--fuente-principal);
    margin: 0;
    background-color: var(--color-fondo-body);
    color: var(--color-texto-gris);
    line-height: 1.7;
}
/* --- SECCIÓN HERO (CON IMAGEN DE FONDO Y EFECTO PARALLAX) --- */
.hero-section {
    height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('imagenes/index.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.hero-content h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 0 1rem 0;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-button {
    background: transparent;
    border: 2px solid #BDB700;
    color: #FFFFFF;
    padding: 1rem 3rem;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-amarillo);
    transform: scaleX(0); /* Empieza sin ancho */
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.cta-button span {
    position: relative;
    z-index: 2;
    transition: color 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.cta-button:hover::before {
    transform: scaleX(1); /* El fondo se expande para rellenar el botón */
    transform-origin: right;
}

.cta-button:hover span {
    color: #000000; /* El texto cambia a negro */
}

.cta-button:hover {
    border-color: var(--color-amarillo); /* El borde se vuelve del color amarillo sólido */
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    box-sizing: border-box;
    z-index: 1000;
    transition: background-color 0.4s ease-out, transform 0.3s ease-in-out;
}

.header--scrolled {
    background-color: #111111;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header--hidden {
    transform: translateY(-100%);
}

.header .logo img {
    max-height: 45px;
}

.header .nav {
    display: flex;
    gap: 2rem;
}

.header .nav-item {
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.15rem;
    transition: color 0.3s ease;
}

.header .nav-item:hover {
    color: var(--color-amarillo);
}

.header .menu-toggle {
    display: none;
}

.seccion-tarjetas {
    background-color: var(--color-fondo-claro); /* Fondo blanco para esta sección */
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 8px; /* Bordes redondeados para la sección */
    margin-top: -50px; /* Sube la sección para que se solape un poco con la imagen */
    position: relative; /* Necesario para el solapamiento */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

.seccion-tarjetas h2 {
    color: var(--color-texto-oscuro); /* Texto oscuro */
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.seccion-tarjetas > p {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: var(--color-texto-gris);
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 2.5rem 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e9ecef; /* Borde muy sutil */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-amarillo);
}

.card h3 {
    color: var(--color-texto-oscuro);
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
}

.card p {
    color: var(--color-texto-gris);
    font-size: 0.9rem;
    flex-grow: 1;
}



/* Estilo para el botón del formulario de contacto */
.form-button {
    display: block;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    background-color: var(--color-texto-oscuro);
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-button:hover {
    background-color: #000000;
}

/* --- ESTILOS PARA LA SECCIÓN DE SERVICIOS (NUEVO DISEÑO) --- */
/* Contenedor genérico para centrar texto introductorio */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.seccion-servicios {
    background-color: var(--color-fondo-claro);
    padding: 4rem 0;
    text-align: center;
}

.seccion-servicios h2 {
    color: var(--color-texto-oscuro);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.seccion-servicios > .container > p {
    max-width: 700px;
    margin: 0 auto 4rem auto;
    color: var(--color-texto-gris);
}

.servicios-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.servicio-item {
    display: flex;
    align-items: center;
    background-color: var(--color-fondo-body);
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    border-radius: 8px;
    overflow: hidden;
}

/* Para alternar el orden de imagen y texto */
.servicio-item--reverse {
    flex-direction: row-reverse;
}

.servicio-imagen {
    flex: 1;
    padding: 2rem;
    box-sizing: border-box;
}

.servicio-contenido {
    flex: 1;
    padding: 3rem;
    text-align: center;
}

.servicio-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.servicio-contenido h3 {
    color: var(--color-texto-oscuro);
    font-size: 2rem; /* Título más grande */
    font-weight: bold; /* Título en negrita */
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.servicio-contenido p {
    color: var(--color-texto-gris);
    margin-bottom: 2.5rem; /* Más espacio antes del botón */
    text-align: left;
    max-width: none;
    font-size: 1.05rem; /* Párrafo ligeramente más grande */
    line-height: 1.8; /* Más espacio entre líneas para mejor lectura */
}

.servicio-boton {
    background-color: transparent;
    border: 2px solid var(--color-texto-oscuro);
    color: var(--color-texto-oscuro);
    padding: 0.8rem 2rem; /* Botón un poco más grande */
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
}

.servicio-boton:hover {
    background-color: var(--color-amarillo);
    border-color: var(--color-amarillo);
    color: var(--color-texto-oscuro);
}

/* --- AJUSTES PARA MÓVIL --- */
@media (max-width: 768px) {
    .servicio-item,
    .servicio-item--reverse {
        flex-direction: column;
    }
    .servicio-contenido {
        padding: 2rem;
        text-align: center;
    }
}

/* --- TRANSICIONES PARA LA SECCIÓN DE SERVICIOS --- */

/* Estado inicial de los bloques de servicio: invisibles y desplazados hacia abajo */
.servicio-item {
    opacity: 0; /* Empiezan transparentes */
    transform: translateY(40px); /* Ligeramente desplazados hacia abajo */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Animación suave */
}

/* Estado final cuando se vuelven visibles */
.servicio-item.is-visible {
    opacity: 1; /* Totalmente visibles */
    transform: translateY(0); /* Vuelven a su posición original */
}

/* Añadimos un pequeño retraso entre cada tarjeta para un efecto escalonado */
.servicio-item:nth-child(2) {
    transition-delay: 0.2s;
}
.servicio-item:nth-child(3) {
    transition-delay: 0.4s;
}

/* --- HEADER Y NAVEGACIÓN (UNIFICADO) --- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    box-sizing: border-box;
    z-index: 1000;
    transition: background-color 0.4s ease-out, transform 0.3s ease-in-out;
}

.header--scrolled {
    background-color: #111111;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header--hidden {
    transform: translateY(-100%);
}

.header .logo img {
    max-height: 45px;
}

/* --- ESTILOS PARA EL MENÚ MÓVIL (CORREGIDO A BARRA DESPLEGABLE) --- */
/* Por defecto (móvil), ocultamos los enlaces de texto */
.nav .nav-item {
    display: none;
}

/* Mostramos el botón hamburguesa */
.header .menu-toggle {
    display: flex;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 20;
}

/* Estilos del menú desplegable como una barra */
.nav {
    display: flex; /* Usamos flexbox */
    flex-direction: column; /* Lo forzamos a ser una columna */
    background-color: #212529;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

/* Clase para mostrar el menú */
.nav.nav--open {
    max-height: 500px;
}

/* Enlaces dentro del menú desplegable */
.nav.nav--open .nav-item {
    display: block;
    width: 100%; /* Aseguramos que ocupe todo el ancho */
    padding: 1rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 1rem;
    box-sizing: border-box; /* Importante para que el padding no desborde */
}

.nav.nav--open .nav-item:last-child {
    border-bottom: none;
}

/* --- VISTA DE ESCRITORIO (A partir de 768px) --- */
@media (min-width: 768px) {
    /* Ocultamos el botón hamburguesa */
    .header .menu-toggle {
        display: none;
    }

    /* Mostramos los enlaces de texto */
    .nav .nav-item {
        display: inline-block;
        width: auto; /* Revertimos el ancho */
    }

    /* Reseteamos los estilos del contenedor de navegación a su estado normal */
    .nav {
        display: flex;
        flex-direction: row; /* Volvemos a ponerlo en fila */
        position: static;
        width: auto;
        max-height: none;
        overflow: visible;
        background-color: transparent;
        gap: 2rem;
    }

    /* Quitamos los estilos de los enlaces del menú desplegable */
    .nav.nav--open .nav-item {
        padding: 0;
        border: none;
    }
}

/* --- VISTA DE ESCRITORIO (A partir de 768px) --- */
@media (min-width: 768px) {
    /* Ocultamos el botón hamburguesa */
    .header .menu-toggle {
        display: none;
    }

    /* Mostramos los enlaces de texto */
    .nav .nav-item {
        display: inline-block;
    }

    /* Reseteamos los estilos del contenedor de navegación a su estado normal */
    .nav {
        position: static;
        flex-direction: row;
        width: auto;
        padding-top: 0;
        background-color: transparent;
        box-shadow: none;
        visibility: visible;
        opacity: 1;
        transform: none;
        gap: 2rem; /* Añadimos el gap para escritorio que estaba en el header */
    }

    /* Quitamos los estilos de los enlaces del menú desplegable */
    .nav.nav--open .nav-item {
        padding: 0;
        border: none;
    }
}

/* --- ESTILOS PARA LA SECCIÓN "DESPACHO DE ABOGADOS" --- */
.seccion-despacho {
    background-color: var(--color-fondo-body); /* Fondo gris claro */
    padding: 5rem 0; /* Espaciado vertical */
}

.container-despacho {
    max-width: 1200px; /* Ancho máximo para el contenido */
    margin: 0 auto; /* Centrar el contenedor */
    padding: 0 2rem; /* Relleno lateral */
    display: flex; /* Usar flexbox para texto e imágenes */
    gap: 3rem; /* Espacio entre el texto y las imágenes */
    align-items: flex-start; /* Alinear el contenido al inicio */
}

.despacho-texto {
    flex: 2; /* El texto ocupa 2/3 del espacio */
    padding-right: 2rem; /* Espacio adicional a la derecha del texto */
}

.despacho-texto h2 {
    color: var(--color-texto-oscuro);
    font-size: 2.5rem; /* Tamaño grande para el título */
    margin-bottom: 2rem;
    text-align: left; /* Asegurar que el título esté a la izquierda */
}

.despacho-texto p {
    color: var(--color-texto-gris);
    font-size: 1rem;
    line-height: 1.7; /* Espaciado de línea para legibilidad */
    margin-bottom: 1.5rem;
    text-align: left; /* Asegurar que el texto esté a la izquierda */
}

.despacho-texto p strong {
    color: var(--color-texto-oscuro); /* Hacemos el texto en negrita más oscuro */
}


/* --- ESTILOS PARA LA SECCIÓN "DESPACHO DE ABOGADOS" (CENTRADO Y CON COLLAGE MEJORADO) --- */
.seccion-despacho {
    background-color: var(--color-fondo-body);
    padding: 5rem 0;
}

.container-despacho {
    max-width: 1100px; /* Ancho máximo del contenido */
    margin: 0 auto; /* Centra todo el bloque en la página */
    padding: 0 2rem;
    display: flex;
    gap: 3rem;
    align-items: center; /* Centra verticalmente el texto y las imágenes */
}

.despacho-texto {
    flex: 1.5; /* El texto ocupa un poco más de espacio */
}

.despacho-texto h2 {
    color: var(--color-texto-oscuro);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.despacho-texto p {
    color: var(--color-texto-gris);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: left;
}

.despacho-texto p strong {
    color: var(--color-texto-oscuro);
}

.despacho-imagenes {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.collage-forma {
    aspect-ratio: 1 / 1;
    background-image: url('imagenes/abogados.jpeg');

    /* Ajustamos el nivel de zoom para un mejor encuadre */
    background-size: 300%;

    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease-out; /* Hacemos la transición un poco más suave */
}

.collage-forma:hover {
    transform: scale(1.05);
    z-index: 10;
}

/* --- Posicionamos cada ventana para que muestre un encuadre específico --- */

/* 1. Esquina superior izquierda (Cuadrado) - Centrado en el apretón de manos */
.collage-forma-1 {
    background-position: 25% 1%;
    border-radius: 0;
}

/* 2. Esquina superior derecha (Redondeado) - Enfocado en el traje oscuro y corbata */
.collage-forma-2 {
    background-position: 75% 1%;
    border-radius: 30px;
}

/* 3. Esquina inferior izquierda (Cuadrado) - Enfocado en los documentos y gráficos */
.collage-forma-3 {
    background-position: 25% 80%;
    border-radius: 0;
}

/* 4. Esquina inferior derecha (Redondeado) - Enfocado en la manga del traje azul */
.collage-forma-4 {
    background-position: 75% 75%;
    border-radius: 30px;
}

/* --- ADAPTACIÓN A MÓVILES (Despacho de Abogados) --- */
@media (max-width: 900px) {
    .container-despacho {
        flex-direction: column; /* Apila el texto sobre las imágenes */
        gap: 3rem;
    }

    .despacho-texto {
        text-align: center; /* Centramos el texto en móvil */
    }

    .despacho-texto h2,
    .despacho-texto p {
        text-align: left;
    }

    /* APLICAMOS EL COLLAGE EN MÓVIL */
    .despacho-imagenes {
        width: 100%; /* El collage ocupa todo el ancho disponible */
        max-width: 450px; /* Le ponemos un ancho máximo para que no sea demasiado grande */
        margin: 0 auto; /* Centramos el bloque del collage */
    }
}

/* --- ESTILOS PARA LA SECCIÓN DE CONTACTO FINAL INTEGRADA --- */
.seccion-cta-final {
    padding: 6rem 2rem;
    text-align: center;
    color: #FFFFFF;
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('imagenes/consulta.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.seccion-cta-final h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}

.seccion-cta-final > .container > p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    color: rgba(255, 255, 255, 0.9);
}
.cta-button-light {
    background-color: var(--color-amarillo);
    border: 2px solid var(--color-amarillo);
    color: #000000;
    padding: 0.8rem 2.5rem;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button-light:hover {
    background-color: transparent;
    color: var(--color-amarillo);
}

/* --- ESTILOS PARA EL BOTÓN INNOVADOR EN MÓVIL (FAB) --- */
/* Por defecto, en escritorio, ocultamos el icono */
.cta-icon {
    display: none;
}

/* --- ESTILOS PARA EL FONDO DE SERVICIOS ESPECÍFICOS --- */

/* Seleccionamos los items de servicio que NO tienen la clase de 'reverse' */
.servicio-item:not(.servicio-item--reverse) {
    background-image: url('imagenes/image.png'); /* Aplicamos tu nueva imagen de fondo */
    background-size: cover;
    background-position: center;
}

/* --- Ajustes de color para que el texto sea legible sobre el nuevo fondo --- */

/* Cambiamos el color de los títulos y párrafos a blanco */
.servicio-item:not(.servicio-item--reverse) .servicio-contenido h3,
.servicio-item:not(.servicio-item--reverse) .servicio-contenido p {
    color: #FFFFFF;
}

/* Hacemos el texto fuerte (strong) un poco más claro */
.servicio-item:not(.servicio-item--reverse) .despacho-texto p strong {
    color: #f0f0f0;
}

/* Ajustamos el botón para que contraste */
.servicio-item:not(.servicio-item--reverse) .servicio-boton {
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.servicio-item:not(.servicio-item--reverse) .servicio-boton:hover {
    background-color: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--color-texto-oscuro);
}

/* --- ESTILOS PARA LA SECCIÓN DE VALORES Y BANDA DE PROPÓSITO --- */
.seccion-valores {
    background-color: var(--color-fondo-body);
    /* Quitamos el padding para que la banda inferior se pegue al borde */
    padding: 5rem 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.titulo-seccion {
    font-size: 2.8rem;
    color: var(--color-texto-oscuro);
    text-transform: uppercase;
    text-align: center;
    margin: 0;
    position: relative;
}

.titulo-seccion::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-amarillo);
}

.container-grid-valores {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1000px;
    width: 100%;
    /* Espacio para separar las tarjetas de la banda inferior */
    margin-bottom: 4rem;
}

.valor-card {
    background-color: var(--color-fondo-claro);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.valor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.valor-icon {
    font-size: 3rem;
    color: var(--color-amarillo);
    margin-bottom: 1.5rem;
}

.valor-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--color-texto-oscuro);
}

.valor-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-texto-gris);
}

/* === CÓDIGO FINAL PARA LA BANDA DE PROPÓSITO CON IMAGEN DE FONDO === */
.proposito-banda {
    /* Cambiamos el color de fondo por la imagen */
    background-image: url('imagenes/image.png');
    background-size: cover; /* Asegura que la imagen cubra todo el espacio */
    background-position: center; /* Centra la imagen */

    width: 100%;
    padding: 2rem;
    text-align: center;
}

.proposito-banda h3 {
    font-size: 1.1rem;
    /* Cambiamos el color a oscuro para que contraste con el fondo amarillo/verde */
    color: var(--color-texto-oscuro);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 0.5rem 0;
    font-weight: 700; /* Un poco más de grosor para legibilidad */
}

.proposito-banda p {
    font-size: 1rem;
    font-weight: 400; /* Aumentamos el grosor para que se lea mejor */
    /* Cambiamos el color a oscuro */
    color: #212529;
    margin: 0;
}

.proposito-banda p strong {
    /* El texto resaltado también debe ser oscuro, pero podemos mantener el grosor */
    color: var(--color-texto-oscuro);
    font-weight: 700;
}

/* --- AJUSTES FINALES PARA LA VERSIÓN MÓVIL --- */
@media (max-width: 768px) {

    /* Asegura que las tarjetas de "Valores" se pongan en una sola columna */
    .container-grid-valores {
        grid-template-columns: 1fr;
    }

    /* Centra el texto de los servicios como habíamos hecho anteriormente */
    .servicio-contenido {
        text-align: center;
    }

}

/* --- ESTILOS PARA LAS SUBPÁGINAS DE SERVICIOS --- */
/* Estilo para el header en las subpáginas */
.header--subpage {
    background-color: #111111; /* Fondo oscuro por defecto */
    position: sticky; /* Se queda fijo al hacer scroll */
}

/* Hero simple para las subpáginas */
.subpage-hero {
    /* RUTA CORREGIDA a la imagen de la carpeta "imagenes" */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('imagenes/index.png');
    background-size: cover;
    background-position: center;
    padding: 5rem 2rem;
    padding-top: 120px; /* AÑADIDO: Espacio extra para que el contenido no quede debajo del header flotante */
    text-align: center;
    color: #FFFFFF;
}

.subpage-hero h1 {
    font-size: 2.8rem;
    font-weight: bold;
}

/* Contenido principal de la subpágina */
.subpage-content {
    background-color: var(--color-fondo-body);
    padding: 4rem 2rem;
}

.subpage-content .container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-fondo-claro);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.intro-paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-texto-gris);
    margin-bottom: 3rem;
    text-align: center;
}

.list-title {
    font-size: 1.5rem;
    color: var(--color-texto-oscuro);
    margin-bottom: 2rem;
    border-left: 4px solid var(--color-amarillo);
    padding-left: 1rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    font-size: 1.05rem;
    color: var(--color-texto-gris);
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Icono personalizado para los elementos de la lista */
.service-list li::before {
    content: '✔'; /* O puedes usar un icono de Font Awesome como '\f00c' */
    /* font-family: 'Font Awesome 6 Free'; */
    /* font-weight: 900; */
    color: var(--color-amarillo);
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 1.1rem;
}

/* --- ESTILOS PARA EL NUEVO FOOTER UNIFICADO --- */
.footer-unificado {
    background-color: #212529; /* Fondo oscuro */
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 2rem;
    width: 100%;
}

.footer-unificado > .container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Parte superior: Contacto */
.footer-contacto {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-item {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.footer-icon {
    font-size: 2.5rem;
    color: var(--color-amarillo);
    margin-bottom: 1.5rem;
}

.footer-item h4 {
    font-size: 1.1rem;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.footer-item p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Separador */
.footer-separador {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    margin: 3rem 0; /* Espacio arriba y abajo */
}

/* --- ESTILOS PARA PARTE INFERIOR DEL FOOTER (DISEÑO FINAL) --- */
.footer-inferior {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #a0a0a0;
}

.footer-inferior-left, .footer-inferior-center, .footer-inferior-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo-inferior {
    max-height: 25px; /* Ajusta el tamaño del logo */
    opacity: 0.8;
}

.footer-inferior-center a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-inferior-center a:hover {
    color: var(--color-amarillo);
}

.social-links-footer {
    display: flex;
    gap: 0.8rem;
}

.social-links-footer .social-icon {
    color: #FFFFFF;
    font-size: 0.9rem;
    text-decoration: none;
    width: 32px;
    height: 32px;
    border: 1px solid #555;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.social-links-footer .social-icon:hover {
    background-color: var(--color-amarillo);
    border-color: var(--color-amarillo);
    color: #1A1A1A;
}

/* Ajustes para móvil */
/* --- AJUSTES COMPLETOS PARA FOOTER EN MÓVIL --- */
@media (max-width: 900px) {
    /* Apila los 3 bloques principales del footer inferior */
    .footer-inferior {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 2rem;
    }

    /* Apila el logo y los iconos sociales si la pantalla es muy estrecha */
    .footer-inferior-left {
        flex-direction: column;
        gap: 1.5rem;
    }
}
/* --- AJUSTE PARA EL ENLACE DEL ICONO DE MAPS --- */
.footer-icon a {
    color: var(--color-amarillo);
}

/* --- ESTILOS PARA EL CARRUSEL DE RESEÑAS --- */
.seccion-reseñas {
    background-color: var(--color-fondo-claro);
    padding: 5rem 2rem;
}

.seccion-reseñas .titulo-seccion {
    margin-bottom: 4rem;
}

.testimonial-slider {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

/* Contenedor visible que oculta el resto de tarjetas */
.testimonial-track-container {
    overflow: hidden;
}

/* Contenedor flexible que se mueve horizontalmente */
.testimonial-track {
    display: flex; /* Alinea todas las tarjetas en una fila */
    gap: 2rem;
    transition: transform 0.5s ease-in-out; /* Animación del deslizamiento */
}

/* Tarjeta de testimonio individual */
.testimonial-card {
    background-color: #FFFFFF;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    /* Cada tarjeta ocupa un tercio del espacio, menos el gap */
    flex: 0 0 calc(33.333% - 1.34rem);
}

.quote-icon {
    font-size: 3.5rem;
    color: var(--color-amarillo);
    font-family: serif;
    line-height: 1;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--color-texto-gris);
    font-style: italic;
    line-height: 1.7;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

/* ... (Las reglas para .author-info, .nav-arrow, etc., se mantienen igual) ... */
.author-info{display:flex;align-items:center;gap:1rem}
.author-photo {
    width: 50px;
    height: 50px;
    background-color: var(--color-amarillo); /* Usamos el color de la marca para el fondo */
    color: var(--color-texto-oscuro); /* Color oscuro para las iniciales */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
}.author-details{display:flex;flex-direction:column}.author-name{font-weight:bold;color:var(--color-texto-oscuro)}.author-title{font-size:.9rem;color:var(--color-texto-gris)}.nav-arrow{position:absolute;top:50%;transform:translateY(-50%);background-color:#FFFFFF;border:1px solid #e0e0e0;border-radius:50%;width:45px;height:45px;cursor:pointer;display:flex;justify-content:center;align-items:center;box-shadow:0 2px 8px rgba(0,0,0,0.1);transition:all 0.3s ease;z-index:10}.nav-arrow:hover{background-color:var(--color-amarillo);border-color:var(--color-amarillo);color:var(--color-texto-oscuro)}.prev-arrow{left:-22px}.next-arrow{right:-22px}

/* Ajustes para móvil */
@media (max-width: 900px) {
    .testimonial-card {
        /* En móvil, cada tarjeta ocupa el 100% del ancho */
        flex: 0 0 100%;
    }
    .nav-arrow {
        display: none; /* Ocultamos las flechas en móvil */
    }
}

/* --- ESTILOS ADICIONALES PARA SUBPÁGINA FISCAL --- */

/* Títulos reutilizables */
.section-title-light {
    font-size: 2.5rem;
    text-align: center;
    color: #FFFFFF;
    margin-top: 0;
    margin-bottom: 3rem;
}
.section-title-dark {
    font-size: 2.5rem;
    text-align: center;
    color: var(--color-texto-oscuro);
    margin-top: 0;
    margin-bottom: 3rem;
}

/* Hero adaptado */
.subpage-hero--fiscal .hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1rem auto 2rem auto;
}

/* Sección "Por qué elegirnos" */
.porque-elegirnos {
    background-color: var(--color-fondo-claro);
    padding: 4rem 2rem;
}
.porque-elegirnos .container {
    max-width: 800px;
    margin: 0 auto;
}
.porque-elegirnos .section-title-dark { /* Corregido para fondo claro */
    color: var(--color-texto-oscuro);
}
.beneficios-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.beneficios-lista li {
    font-size: 1.1rem;
    color: var(--color-texto-gris);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.beneficios-lista li i {
    color: var(--color-amarillo);
    font-size: 1.3rem;
}

/* Sección "Nuestros Servicios" */
.nuestros-servicios-grid {
    background-color: var(--color-fondo-body);
    padding: 4rem 2rem;
}
.servicios-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}
.servicio-card {
    background-color: #FFFFFF;
    border: 1px solid #e9ecef;
    border-radius: 25px; /* Bordes redondeados como en el boceto */
    padding: 1.5rem;
    text-align: center;
    color: var(--color-texto-gris);
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Sección "Te ayudamos a" */
.te-ayudamos {
    padding: 5rem 2rem;
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('imagenes/abogados.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax */
}
.ayuda-items-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.ayuda-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    color: #FFFFFF;
}
.ayuda-icon {
    font-size: 3rem;
    color: var(--color-amarillo);
    margin-bottom: 1.5rem;
    /* Estilo para el contorno del boceto */
    width: 80px;
    height: 80px;
    border: 2px solid var(--color-amarillo);
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.ayuda-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

/* --- ESTILOS ESPECÍFICOS PARA LA SUBPÁGINA LABORAL --- */

/* 1. HERO - Fondo específico para Laboral (opcional) */
.subpage-hero--laboral {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../AsesoriaLeMorne/imagenes/index.png');
    background-size: cover;
    background-position: center 40%;
}

/* 2. SECCIÓN DE SERVICIOS (GRID) */
.seccion-servicios-laboral {
    background-color: var(--color-fondo-body);
    padding: 5rem 2rem;
    text-align: center;
}

.servicios-grid-laboral {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* 3 columnas en escritorio, adaptable */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.laboral-card {
    background-color: var(--color-fondo-claro);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Asegura que todas las tarjetas tengan la misma altura */
    display: flex;
    flex-direction: column;
}

.laboral-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.laboral-card .card-icon {
    font-size: 3.5rem; /* Iconos grandes */
    margin-bottom: 1.5rem;
    color: var(--color-amarillo);
}

.laboral-card h3 {
    color: var(--color-texto-oscuro);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.laboral-card p {
    color: var(--color-texto-gris);
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1; /* Para que el texto empuje el contenido hacia arriba */
}

/* 3. CTA FINAL / INFORMACIÓN DE CONTACTO */
.contacto-info-laboral {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFFFFF;
}

.contacto-info-laboral p {
    margin-bottom: 1rem;
}

.info-item-laboral {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.info-item-laboral i {
    color: var(--color-amarillo);
    font-size: 1.3rem;
    margin-right: 1rem;
}

.info-item-laboral a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.info-item-laboral a:hover {
    color: var(--color-amarillo);
}

/* Ajuste de párrafos en el CTA Final para consistencia */
.seccion-cta-final > .container > p {
    font-size: 1.1rem;
    max-width: 750px; /* Un poco más de ancho para el texto */
    margin: 0 auto 2.5rem auto;
    color: rgba(255, 255, 255, 0.9);
}

/* --- ESTILOS ESPECÍFICOS PARA LA SUBPÁGINA ADMINISTRATIVA --- */

/* 1. HERO - Fondo específico para Administrativo (opcional) */
.subpage-hero--administrativo {
    /* Define una imagen de fondo para esta sección, o usa una genérica */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../AsesoriaLeMorne/imagenes/index.png');
    /* Nota: Asegúrate de tener una imagen de fondo temática en 'imagenes' */
    background-size: cover;
    background-position: center 30%;
}

/* 2. SECCIÓN DE SERVICIOS (GRID) */
/* Reutilizamos el padding y fondo de la sección laboral */
.seccion-servicios-administrativo {
    background-color: var(--color-fondo-body);
    padding: 5rem 2rem;
    text-align: center;
}

.servicios-grid-administrativo {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* Usamos 3 columnas, pero priorizando el contenido, no la altura forzada */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.administrativo-card {
    background-color: var(--color-fondo-claro);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: left; /* Alineación a la izquierda para las listas */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.administrativo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.administrativo-card .card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-amarillo);
    text-align: center; /* Centrar el icono dentro de la tarjeta */
    width: 100%;
}

.administrativo-card h3 {
    color: var(--color-texto-oscuro);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Estilos para la lista de servicios (los subpuntos) */
.lista-servicios {
    list-style: none; /* Quitamos la viñeta por defecto */
    padding: 0;
    margin: 0;
}

.lista-servicios li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    color: var(--color-texto-gris);
    font-size: 1rem;
    line-height: 1.5;
}

.lista-servicios li i {
    color: var(--color-amarillo);
    margin-right: 0.75rem;
    margin-top: 0.2rem; /* Pequeño ajuste vertical para alinear el check */
}

/* CTA intermedio */
.cta-intermedio {
    background-color: var(--color-texto-oscuro);
    color: #FFFFFF;
    padding: 2.5rem;
    border-radius: 10px;
    max-width: 800px;
    margin: 3rem auto 0 auto;
}

.cta-intermedio p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Botón CTA pequeño para el intermedio */
.cta-button-light-sm {
    display: inline-block;
    background-color: var(--color-amarillo);
    color: var(--color-texto-oscuro);
    padding: 0.75rem 1.75rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.cta-button-light-sm:hover {
    background-color: #DDE23C; /* Un tono más claro de amarillo */
}

/* --- ESTILOS PARA LAS TARJETAS DE SERVICIOS (CONTABLE) --- */

/* Estilo base para las tarjetas */
.servicio-card {
    border-radius: 25px;
    padding: 1.5rem;
    text-align: center;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Añadido para centrar verticalmente */
    justify-content: center; /* Añadido para centrar verticalmente */
    align-items: center; /* Añadido para centrar verticalmente */
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Variante 1: Rellena de color */
.servicio-card--filled {
    background-color: var(--color-amarillo);
    color: var(--color-texto-oscuro);
    border: 2px solid var(--color-amarillo);
}

/* Variante 2: Con borde */
.servicio-card--outline {
    background-color: #FFFFFF;
    color: var(--color-texto-gris);
    border: 2px solid var(--color-amarillo);
}

/* --- AJUSTES PARA FOOTER EN MÓVIL --- */
@media (max-width: 768px) {
    .footer-contacto {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
}

/* --- AJUSTE PARA BOTÓN CTA EN MÓVIL --- */
@media (max-width: 768px) {
    .cta-button {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        text-align: center;
    }
}

/* --- NUEVO DISEÑO SECCIÓN 'POR QUÉ ELEGIRNOS' (FISCAL) --- */

.porque-elegirnos {
    background-color: var(--color-fondo-body); /* Fondo gris claro para que resalten las tarjetas */
}

/* Reemplazamos el contenedor de la lista por una grid de tarjetas */
.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.beneficio-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.beneficio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.beneficio-icon {
    font-size: 3rem;
    color: var(--color-amarillo);
    margin-bottom: 1.5rem;
}

.beneficio-card h3 {
    color: var(--color-texto-oscuro);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.beneficio-card p {
    color: var(--color-texto-gris);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Eliminamos los estilos de la lista anterior para que no interfieran */
.beneficios-lista, .beneficios-lista li {
    display: block;
    grid-template-columns: none;
    gap: 0;
    font-size: inherit;
    color: inherit;
}
.beneficios-lista li i {
    display: none;
}

/* --- REDISEÑO DE TARJETAS DE SERVICIOS (FISCAL) --- */

.servicio-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.servicio-card .card-icon {
    font-size: 3rem;
    color: var(--color-amarillo);
    margin-bottom: 1.5rem;
}

.servicio-card h3 {
    color: var(--color-texto-oscuro);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    min-height: 3em; /* Ayuda a alinear verticalmente los párrafos */
    display: flex;
    align-items: center;
    justify-content: center;
}

.servicio-card p {
    color: var(--color-texto-gris);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* --- ESTILOS PARA EL MENÚ DESPLEGABLE DE SERVICIOS (ESCRITORIO) --- */
@media (min-width: 769px) {
    .nav-item.dropdown {
        position: relative;
    }

    .dropdown-menu {
        display: none; /* Oculto por defecto */
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #212529;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        z-index: 1000;
        min-width: 240px;
        padding: 0.5rem 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }

    /* Se muestra al pasar el ratón por encima */
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-item {
        color: #FFFFFF;
        padding: 0.8rem 1.5rem;
        text-decoration: none;
        display: block;
        font-size: 0.9rem;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .dropdown-item:hover {
        background-color: var(--color-amarillo);
        color: var(--color-texto-oscuro);
    }

    /* Flecha indicadora */
    .nav-item a .fa-chevron-down {
        font-size: 0.7rem;
        margin-left: 0.5rem;
        transition: transform 0.3s ease;
    }

    .nav-item.dropdown:hover a .fa-chevron-down {
        transform: rotate(180deg);
    }
}

/* --- REDISEÑO COMPLETO SUBPÁGINA CONTABLE --- */

/* Hero específico para Contable */
.subpage-hero--contable {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../AsesoriaLeMorne/imagenes/index.png'); /* Puedes cambiar la imagen si quieres */
}

/* Sección de servicios detallados con imagen y texto */
.servicios-detallados-contable {
    padding: 5rem 2rem;
    background-color: var(--color-fondo-claro);
}

.servicio-contable-item {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.servicio-contable-item.reverse {
    flex-direction: row-reverse;
}

.servicio-contable-img {
    flex: 1;
    max-width: 45%;
}

.servicio-contable-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.servicio-contable-texto {
    flex: 1;
}

.servicio-contable-texto h3 {
    font-size: 2rem;
    color: var(--color-texto-oscuro);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.servicio-contable-texto p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-texto-gris);
}

/* Adaptación a móvil para la sección de servicios contables */
@media (max-width: 768px) {
    .servicio-contable-item, .servicio-contable-item.reverse {
        flex-direction: column;
        text-align: center;
    }
    .servicio-contable-img {
        max-width: 100%;
    }
}

/* --- DISEÑO DE TARJETAS CON IMAGEN (SERVICIOS CONTABLES) --- */

.servicios-detallados-contable {
    padding: 5rem 2rem;
    background-color: var(--color-fondo-body);
}

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

.servicio-contable-card-img {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* Clave para que la imagen respete los bordes redondeados */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.servicio-contable-card-img:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.servicio-contable-card-img img {
    width: 100%;
    height: 200px; /* Altura fija para todas las imágenes */
    object-fit: cover; /* Asegura que la imagen cubra el espacio sin deformarse */
}

.servicio-contable-card-img .card-content {
    padding: 1.5rem 2rem 2rem 2rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.servicio-contable-card-img h3 {
    color: var(--color-texto-oscuro);
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.servicio-contable-card-img p {
    color: var(--color-texto-gris);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* Limpiamos estilos de versiones anteriores si existen */
.servicio-contable-card { display: none; }

/* --- REDISEÑO FINAL PÁGINA DE CONTACTO --- */

.seccion-formulario-final {
    padding: 6rem 2rem;
    background-color: var(--color-fondo-body);
}

.tarjeta-contacto-final {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Columna del form más ancha */
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.columna-formulario-final {
    padding: 3rem;
}

.columna-formulario-final h2 {
    color: var(--color-texto-oscuro);
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.columna-formulario-final p {
    color: var(--color-texto-gris);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.columna-info-final {
    background-color: #212529; /* Fondo oscuro para la columna de info */
    color: #FFFFFF;
    padding: 3rem;
}

.contenido-info-final h3 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 2rem;
    border-left: 3px solid var(--color-amarillo);
    padding-left: 1rem;
}

.info-item-final {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.info-item-final i {
    color: var(--color-amarillo);
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
    width: 20px;
}

.mapa-final-container {
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 2rem;
}

/* --- ADAPTACIÓN A MÓVIL PÁGINA DE CONTACTO --- */
@media (max-width: 900px) {
    .tarjeta-contacto-final {
        /* Hace que las columnas se apilen verticalmente */
        grid-template-columns: 1fr;
    }
    .columna-info-final, .columna-formulario-final {
        padding: 2rem;
    }
}

/* --- AJUSTE PARA ALARGAR EL MAPA EN PÁGINA DE CONTACTO --- */
.columna-info-final {
    /* Hacemos que esta columna sea un contenedor flexible */
    display: flex;
}

.contenido-info-final {
    /* Hacemos que el contenido se organice en una columna flexible */
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mapa-final-container {
    /* Eliminamos la altura fija y hacemos que el mapa crezca */
    height: auto;
    flex-grow: 1; /* Esta es la clave: el mapa ocupará todo el espacio vertical sobrante */
    min-height: 300px; /* Le damos una altura mínima por si acaso */
}

/* --- REDISEÑO VISUAL SECCIÓN DE SERVICIOS (HOME) --- */

.seccion-servicios {
    background-color: var(--color-fondo-body); /* Fondo gris claro */
    padding: 5rem 2rem; /* Aumentamos el espacio vertical */
    text-align: center;
    position: relative; /* Necesario para el separador de onda */
    overflow: hidden; /* Oculta partes de la onda que se salgan */
}

.seccion-servicios h2 {
    font-size: 2.8rem; /* Título más grande */
    color: var(--color-texto-oscuro);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.seccion-servicios > .container > p {
    font-size: 1.1rem;
    color: var(--color-texto-gris);
    max-width: 700px;
    margin: 0 auto;
}

/* Separador en forma de onda */
.seccion-servicios::after {
    content: '';
    position: absolute;
    bottom: -1px; /* Lo pegamos al borde inferior */
    left: 0;
    width: 100%;
    height: 100px; /* Altura de la onda */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z' style='fill:%23ffffff;'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: cover;
}

/* --- REDISEÑO DEL MENÚ MÓVIL INTERACTIVO (CORREGIDO) --- */

/* Ocultamos el submenú de escritorio por defecto */
@media (min-width: 769px) {
    .nav.nav--open .dropdown-menu {
        display: none !important;
    }
}

/* Estilos para el menú en MÓVIL */
@media (max-width: 768px) {
    .nav.nav--open .nav-item,
    .nav.nav--open .dropdown > .nav-link {
        display: block;
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #FFFFFF;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Contenedor del submenú desplegable */
    .nav.nav--open .dropdown-menu {
        display: block;
        position: static;
        background-color: #343a40;
        box-shadow: none;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: auto;
        border-radius: 0;

        /* Animación con max-height */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }

    /* Clase que se añade con JS para ABRIR el submenú */
    .nav.nav--open .dropdown-menu.submenu--open {
        max-height: 500px;
    }

    /* Estilos para los enlaces del submenú (Laboral, Fiscal, etc.) */
    .nav.nav--open .dropdown-item {
        display: block; /* <-- ¡ESTA ERA LA LÍNEA CLAVE QUE FALTABA! */
        padding: 1rem 2rem 1rem 3rem;
        font-size: 1rem;
        text-transform: none;
        letter-spacing: normal;
        color: #e0e0e0 !important; /* Forzamos el color para que no se vea morado */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav.nav--open .dropdown-item:hover {
        background-color: var(--color-amarillo);
        color: var(--color-texto-oscuro) !important;
    }

    .nav.nav--open .dropdown-item:last-child {
        border-bottom: none;
    }
}

/* --- ESTILOS PARA FORMULARIO DE CITAS (DENTRO DE LA PÁGINA DE CONTACTO) --- */

.columna-formulario-final #citas-form-container h2 {
    color: var(--color-texto-oscuro);
    text-align: center;
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 2rem;
}

.columna-formulario-final #citas-form-container input[type="text"],
.columna-formulario-final #citas-form-container input[type="email"],
.columna-formulario-final #citas-form-container input[type="tel"],
.columna-formulario-final #citas-form-container select {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.columna-formulario-final #citas-form-container label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-texto-gris);
    font-weight: bold;
    font-size: 0.9rem;
}

.columna-formulario-final #citas-form-container button,
.columna-formulario-final #citas-form-container input[type="submit"] {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    background-color: var(--color-amarillo);
    color: var(--color-texto-oscuro);
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.columna-formulario-final #citas-form-container button:hover,
.columna-formulario-final #citas-form-container input[type="submit"]:hover {
    background-color: #d4cf00;
}

.columna-formulario-final #citas-form-container .lmb-form-legal {
    font-size: 0.9rem;
    color: var(--color-texto-gris);
}

.columna-formulario-final #citas-form-container .lmb-form-legal a {
    color: var(--color-amarillo);
    text-decoration: underline;
}

/* --- CORRECCIÓN DEFINITIVA PARA LA VISTA MÓVIL DE LA TARJETA DE CONTACTO --- */
@media (max-width: 900px) {
    .tarjeta-contacto-final {
        grid-template-columns: 1fr;
    }
}

/* --- MEJORAS VISUALES PÁGINA DE CONTACTO EN MÓVIL --- */
@media (max-width: 768px) {
    /* Ajustamos los paddings de las columnas para dar más espacio */
    .columna-formulario-final,
    .columna-info-final {
        padding: 2.5rem 1.5rem; /* Más espacio vertical, menos en los lados */
    }

    /* Reducimos el tamaño de los títulos para que no se corten */
    .columna-formulario-final h2 {
        font-size: 2rem;
        line-height: 1.2;
    }
    .contenido-info-final h3 {
        font-size: 1.6rem;
    }

    /* Hacemos que la columna de información aparezca primero en móvil */
    .columna-info-final {
        order: -1;
    }

    /* Ajustamos las tarjetas de contacto rápido superiores */
    .quick-contact-hub {
        padding: 0 1rem; /* Menos padding lateral */
    }
    .quick-contact-hub .container {
        grid-template-columns: 1fr; /* Forzamos a una sola columna */
        gap: 1rem;
    }

    /* Ajustamos la sección principal del formulario */
    .seccion-formulario-final {
        padding: 4rem 1rem;
    }
}

/* --- ESTILOS PARA LAS ESTRELLAS DE LAS RESEÑAS --- */
.star-rating {
    color: var(--color-amarillo);
    font-size: 0.9rem;
}

/* --- NUEVO CARRUSEL DE RESEÑAS (2 por 2 en Escritorio) --- */
@media (min-width: 901px) {
    .testimonial-slide {
        flex: 0 0 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .testimonial-track {
        gap: 0; /* Eliminamos el gap entre diapositivas */
    }

    /* Ocultamos el author-title que ya no usamos */
    .author-title {
        display: none;
    }

    /* Pequeño ajuste en el author-info para alinear las estrellas */
    .author-info {
        flex-wrap: wrap;
    }
    .star-rating {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* --- CORRECCIÓN CARRUSEL DE RESEÑAS EN MÓVIL --- */
@media (max-width: 900px) {
   .testimonial-track {
    gap: 0;
   }
    .testimonial-slide {
        display: contents;
    }
    .testimonial-track > .testimonial-card {
        flex: 0 0 100%;
    }
}

/* --- AJUSTE DE TAMAÑO PARA TÍTULOS DE SECCIÓN EN MÓVIL --- */
@media (max-width: 768px) {
    .titulo-seccion {
        font-size: 2.2rem; /* Reducimos el tamaño de la fuente */
        line-height: 1.3; /* Mejoramos el espacio entre líneas si se corta */
    }
}

/* --- AJUSTE PARA CUADRÍCULA DE 5 ELEMENTOS (PÁGINA FISCAL) --- */
@media (min-width: 768px) {
    .grid-cinco-items {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px; /* Limitamos el ancho para que no se estire demasiado */
        margin: 0 auto;
    }

    /* Seleccionamos el último elemento de la cuadrícula */
    .grid-cinco-items .servicio-card:last-child {
        /* Hacemos que la última tarjeta ocupe las 2 columnas */
        grid-column: 1 / -1;

        /* Limitamos su ancho y la centramos para darle protagonismo */
        max-width: calc(50% - 0.75rem); /* Ancho de una columna menos la mitad del gap */
        margin: 0 auto;
    }
}

/* --- ESTILOS PARA PÁRRAFO DE INTRODUCCIÓN SEO --- */
.intro-seccion-seo {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-texto-gris);
    text-align: center;
    max-width: 800px;
    margin: -1rem auto 3rem auto; /* Margen para espaciarlo correctamente */
}


/* --- REDISEÑO INTRODUCCIÓN PLAN 360 (2 COLUMNAS) --- */

.intro-plan360 {
    padding: 5rem 2rem;
    background-color: #FFFFFF;
}

.intro-plan360-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Columna de imagen más pequeña que la de texto */
    gap: 3rem;
    align-items: center;
}

.intro-plan360-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.intro-plan360-texto .section-title-dark {
    text-align: left; /* Alinear el título a la izquierda */
    font-size: 2.5rem;
}

.intro-plan360-texto p {
    text-align: left; /* Alinear el párrafo a la izquierda */
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Adaptación a móvil */
@media (max-width: 768px) {
    .intro-plan360-grid {
        grid-template-columns: 1fr; /* Apila las columnas */
    }

    .intro-plan360-texto .section-title-dark,
    .intro-plan360-texto p {
        text-align: center; /* Centra el texto en móvil */
    }
}



/* --- DISEÑO INNOVADOR SECCIÓN BENEFICIOS (PLAN 360) --- */

.beneficios-plan360 {
    background-color: #FFFFFF;
    padding: 4rem 2rem;
}

.beneficios-grid-plan360 {
    display: grid;
    grid-template-columns: 1fr; /* 1 columna en móvil */
    gap: 1.5rem;
    margin-top: 2rem;
}

/* 2 columnas en escritorio */
@media (min-width: 768px) {
    .beneficios-grid-plan360 {
        grid-template-columns: 1fr 1fr;
    }
}

.beneficio-card-plan360 {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--color-fondo-body);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.beneficio-card-plan360 .beneficio-icon {
    font-size: 2.5rem;
    color: var(--color-amarillo);
}

.beneficio-card-plan360 h3 {
    font-size: 1.2rem;
    color: var(--color-texto-oscuro);
    margin: 0 0 0.5rem 0;
}

.beneficio-card-plan360 p {
    color: var(--color-texto-gris);
    line-height: 1.6;
    margin: 0;
}

/* Limpiamos los estilos de la lista anterior */
.beneficios-plan360 ul {
    display: none;
}

/* --- DISEÑO SUTIL Y ELEGANTE PARA SECCIÓN FAQ (ACORDEÓN) --- */

.faq-plan360 {
    padding: 4rem 2rem;
    background-color: #FFFFFF;
}

.faq-accordion {
    max-width: 800px;
    margin: 2rem auto 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e9ecef;
}

.faq-question {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 1.5rem 1rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-texto-oscuro);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--color-fondo-body);
}

.faq-question i {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Transición más suave */
    color: var(--color-amarillo);
    font-size: 1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 1rem; /* Padding horizontal para el texto */
}

.faq-answer p {
    margin: 0;
    padding-bottom: 1.5rem;
    color: var(--color-texto-gris);
    line-height: 1.8;
}

/* Estilos para cuando el acordeón está abierto */
.faq-item.active .faq-question i {
    transform: rotate(45deg); /* Cambia el + por una X */
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Altura suficiente para mostrar la respuesta */
}

/* --- DISEÑO INNOVADOR CON MODALES (PLAN 360) --- */
.pilares-modal-section {
    padding: 4rem 2rem;
    background-color: var(--color-fondo-body);
}
.pilar-trigger-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.pilar-trigger-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pilar-trigger-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.pilar-trigger-card .pilar-icon { font-size: 3rem; color: var(--color-amarillo); margin-bottom: 1.5rem; }
.pilar-trigger-card h3 { font-size: 1.5rem; color: var(--color-texto-oscuro); margin: 0 0 0.5rem 0; }
.pilar-trigger-card p { color: var(--color-texto-gris); margin: 0 0 1.5rem 0; }
.pilar-cta { font-weight: bold; color: var(--color-amarillo); }

/* Estilos de los Modales (Ventanas Emergentes) */
.pilar-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.pilar-modal.active {
    opacity: 1;
    visibility: visible;
}
.pilar-modal-content {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 3rem;
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}
.pilar-modal.active .pilar-modal-content {
    transform: scale(1);
}
.pilar-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-texto-gris);
    cursor: pointer;
}
.pilar-modal-content h2 { font-size: 2rem; color: var(--color-texto-oscuro); margin: 0 0 2rem 0; }
/* Reutilizamos estilos de columnas y listas */
.pilar-subcontent { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.pilar-columna h3 { font-size: 1.2rem; color: var(--color-texto-oscuro); margin: 0 0 1rem 0; }
.pilar-columna ul { list-style: none; padding: 0; margin: 0; }
.pilar-columna li { color: var(--color-texto-gris); margin-bottom: 0.8rem; line-height: 1.6; }
.pilar-subcontent--resolver ul { list-style: none; padding: 0; }
.pilar-subcontent--resolver li { font-size: 1.1rem; line-height: 1.8; margin-bottom: 1rem; }

/* --- MEJORA VISUAL SECCIÓN PILARES (PLAN 360) --- */

.pilares-modal-section {
    position: relative; /* Necesario para la onda */
    padding-bottom: 150px; /* Espacio extra para la onda */
}

.pilares-section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.pilares-section-header .section-title-dark {
    font-size: 2.5rem;
}

.pilares-section-header p {
    font-size: 1.1rem;
    color: var(--color-texto-gris);
    line-height: 1.8;
}

/* Separador en forma de onda */
.pilares-modal-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z' style='fill:%23ffffff;'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: cover;
}

/* --- AJUSTES FINALES DE TAMAÑO (VERSIÓN MÁS PEQUEÑA) EN CONTACTO (MÓVIL) --- */
@media (max-width: 768px) {
    /* --- Tarjetas de contacto rápido (Llámanos, Escríbenos, etc.) --- */
    .hub-card a {
        padding: 1.5rem; /* Padding reducido */
    }
    .hub-icon {
        font-size: 2rem; /* Iconos más pequeños */
        margin-bottom: 0.8rem;
    }
    .hub-card h3 {
        font-size: 1.1rem; /* Títulos más pequeños */
    }
    .hub-card p {
        font-size: 0.85rem; /* Texto aún más pequeño */
    }

    /* --- Tarjeta principal (Formulario y Nuestra Oficina) --- */
    .columna-formulario-final,
    .columna-info-final {
        padding: 2rem 1.5rem;
    }
    #citas-form-container h2 {
        font-size: 1.8rem; /* Título del formulario más pequeño */
    }
    .contenido-info-final h3 {
        font-size: 1.4rem; /* Título "Nuestra Oficina" más pequeño */
    }
    .info-item-final {
        font-size: 0.9rem; /* Texto de contacto más pequeño */
        margin-bottom: 1rem;
    }
    .info-item-final i {
        font-size: 1rem; /* Iconos de contacto más pequeños */
    }
}

/* --- ESTILOS PARA LAS MIGAS DE PAN (BREADCRUMBS) --- */
.breadcrumbs {
    padding: 1rem 2rem;
    background-color: var(--color-fondo-body);
    font-size: 0.9rem;
}

.breadcrumbs .container {
    padding: 0;
}

.breadcrumbs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Para que se adapte en móvil */
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--color-texto-gris);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--color-amarillo);
}

.breadcrumb-item.active span {
    color: var(--color-texto-oscuro);
    font-weight: bold;
}

/* Separador (>) */
.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    margin: 0 0.8rem;
    color: var(--color-texto-gris);
}

/* --- ESTILOS PARA PÁGINAS LEGALES --- */
.legal-page-background {
    background-color: var(--color-fondo-body);
}
.legal-main {
    padding: 120px 2rem 4rem 2rem; /* Espacio para el header fijo */
}
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #FFFFFF;
    padding: 2rem 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}
.legal-container h1 {
    font-size: 2.5rem;
    color: var(--color-texto-oscuro);
    margin-bottom: 2rem;
}
.legal-container h3 {
    font-size: 1.4rem;
    color: var(--color-texto-oscuro);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* --- ESTILOS PARA BANNER DE COOKIES AVANZADO --- */
.cookie-banner-container {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(960px, 94vw);
    padding: 1.5rem 2rem;
    z-index: 2000;
    background-color: rgba(33, 37, 41, 0.9);
    color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    backdrop-filter: blur(8px);
    transition: bottom 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.cookie-banner-container.visible {
    bottom: 20px;
}
.cookie-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 768px) {
    .cookie-view {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.cookie-text h3 {
    font-size: 1.2rem;
    color: #fff;
    margin: 0 0 0.5rem 0;
}
.cookie-text p {
    margin: 0;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}
.cookie-actions {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
}
.cookie-btn {
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.cookie-btn:hover { transform: scale(1.05); }
.cookie-btn--primary {
    background-color: var(--color-amarillo);
    color: var(--color-texto-oscuro);
}
.cookie-btn--secondary {
    background: transparent;
    color: var(--color-amarillo);
    border: 1px solid var(--color-amarillo);
}
/* --- Estilos de la vista de preferencias --- */
#cookiePreferencesView h3 { color: #fff; margin-top: 0; }
.cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.cookie-category:last-of-type { border-bottom: none; }
.cookie-category-text strong { color: #fff; }
.cookie-category-text p { font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.cookie-toggle-container { position: relative; }
.cookie-toggle { opacity: 0; width: 0; height: 0; }
.cookie-toggle + label {
    display: block;
    position: relative;
    width: 44px;
    height: 24px;
    background-color: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.cookie-toggle + label::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 4px;
    width: 18px;
    height: 18px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}
.cookie-toggle:checked + label {
    background-color: var(--color-amarillo);
}
.cookie-toggle:checked + label::after {
    transform: translateX(19px);
}
.cookie-toggle:disabled + label {
    background-color: #555;
    cursor: not-allowed;
}
@media (max-width: 768px) {
    .cookie-actions { flex-direction: column; width: 100%; }
    .cookie-btn { width: 100%; }
}
