/* ==========================================================================
   Reset y Estilos Base
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #ffffff; /* Blanco por defecto en modo oscuro */
    background: linear-gradient(135deg, #0a1e31 0%, #04041c 50%, #1a3c5a 100%); /* Gradiente oscuro */
    transition: background 0.3s ease, color 0.3s ease;
}

body.light-mode {
    color: #2d2d2d; /* Gris más oscuro para mejor contraste en modo claro */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); /* Gradiente más suave y profesional */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Contenedor General para las Secciones */
main {
    position: relative;
    background: transparent; /* Fondo transparente para permitir que el gradiente de body sea visible */
}

/* ==========================================================================
   Variables CSS
   ========================================================================== */

:root {
    --text-color: #ffffff;
    --text-color-light: #2d2d2d; /* Ajustado para mejor legibilidad */
    --accent-color: #d4ab53;
    --accent-color-light: #b08900; /* Tono dorado más oscuro para modo claro */
    --background-card: rgba(255, 255, 255, 0.1);
    --background-card-light: rgba(0, 0, 0, 0.05);
    --background-container: rgba(255, 255, 255, 0.05);
    --background-container-light: rgba(0, 0, 0, 0.03);
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.15);
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1); /* Sombra más pronunciada */
    --shadow-hover-light: 0 6px 20px rgba(0, 0, 0, 0.15); /* Sombra más pronunciada en hover */
    --footer-bg-dark: #04041c;
    --footer-bg-light: #f1f3f5; /* Fondo más oscuro para el footer en modo claro */
    --footer-text-dark: #d4ab53;
    --footer-text-light: #2d2d2d; /* Texto más oscuro para el footer */
    --footer-border: 2px solid #d4ab53;
    --footer-shadow-dark: 0 -2px 10px rgba(0, 0, 0, 0.5);
    --footer-shadow-light: 0 -2px 10px rgba(0, 0, 0, 0.15); /* Sombra más visible */
    --transition-footer: all 0.3s ease;
}

/* ==========================================================================
   Header (Navbar) - Desktop
   ========================================================================== */

header {
    padding: 20px 0;
    background: #04041c;
    transition: background 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra para separación */
}

body.light-mode header {
    background: #e9ecef; /* Fondo más oscuro para contraste */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); /* Sombra más pronunciada en modo claro */
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-family: 'Playfair Display', serif;
    color: var(--text-color, #ffffff);
    display: flex;
    align-items: center;
}

body.light-mode .logo {
    color: #1a1a1a; /* Color más oscuro para mayor contraste */
}

.logo .material-icons {
    font-size: 28px;
    margin-right: 8px;
    color: #d4ab53;
}

body.light-mode .logo .material-icons {
    color: var(--accent-color-light); /* Mantiene el dorado */
}

.hamburger {
    display: none; /* Oculta en desktop */
}

nav {
    display: flex;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav ul li {
    list-style: none;
}

nav ul li a {
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color, #ffffff);
    text-decoration: none;
    padding: 8px 12px;
    transition: color 0.3s ease;
}

body.light-mode nav ul li a {
    color: #1a1a1a; /* Color más oscuro para enlaces */
}

nav ul li a:hover {
    color: #d4ab53;
}

body.light-mode nav ul li a:hover {
    color: var(--accent-color-light);
}

.theme-btn {
    background: #d4ab53;
    color: #0a1e31;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

body.light-mode .theme-btn {
    background: var(--accent-color-light);
    color: #0a1e31; /* Texto oscuro para contraste */
}

.theme-btn:hover {
    background: #ffffff;
    color: #0a1e31;
}

body.light-mode .theme-btn:hover {
    background: #d4ab53; /* Vuelve al dorado original */
    color: #0a1e31;
}

/* ==========================================================================
   Header (Navbar) - Responsive
   ========================================================================== */

@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }

    header .container {
        flex-direction: row;
        align-items: center;
        position: relative;
    }

    .logo {
        font-size: 20px;
        display: flex;
        align-items: center;
    }

    .logo .material-icons {
        font-size: 24px;
        margin-right: 6px;
    }

    nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #04041c;
        padding: 15px 0;
        box-shadow: var(--shadow);
        z-index: 999;
    }

    body.light-mode nav {
        background: #e9ecef; /* Fondo más oscuro para el menú desplegable */
        box-shadow: var(--shadow-light);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        font-size: 16px;
        padding: 10px;
        display: block;
        width: 100%;
        text-align: center;
        color: var(--text-color, #ffffff);
    }

    body.light-mode nav ul li a {
        color: #1a1a1a; /* Enlaces más oscuros en modo claro */
    }

    .theme-btn {
        background: #d4ab53;
        color: #0a1e31;
        padding: 10px;
        border: none;
        border-radius: 5px;
        font-weight: 600;
        font-size: 16px;
        cursor: pointer;
        width: 100%;
        display: block;
        transition: background 0.3s ease, color 0.3s ease;
    }

    body.light-mode .theme-btn {
        background: var(--accent-color-light);
        color: #0a1e1a; /* Texto oscuro */
    }

    .theme-btn:hover {
        background: #ffffff;
        color: #0a1e31;
    }

    .hamburger {
        display: block;
        background: none;
        border: none;
        color: #d4ab53;
        font-size: 28px; /* Tamaño aumentado */
        cursor: pointer;
        padding: 10px;
    }

    body.light-mode .hamburger {
        color: #1a1a1a; /* Color más oscuro para visibilidad */
    }
}

@media (max-width: 480px) {
    header {
        padding: 8px 0;
    }

    .logo {
        font-size: 18px;
    }

    .logo .material-icons {
        font-size: 20px;
    }

    nav ul li a {
        font-size: 14px;
        padding: 8px;
    }

    .theme-btn {
        font-size: 14px;
        padding: 8px;
    }

    .hamburger {
        font-size: 24px; /* Tamaño ajustado */
        padding: 8px;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

#hero {
    background: rgba(255, 255, 255, 0.9); /* Fondo blanco semi-transparente para destacar */
    height: 400px;
    display: flex;
    align-items: center;
    margin-top: 110px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    position: relative;
}

body.light-mode #hero {
    background: rgba(255, 255, 255, 0.98); /* Más opaco en modo claro */
}

#hero.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.hero-left {
    flex: 1;
    padding: 30px 40px;
    background: transparent;
    color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-left h1 {
    font-size: 48px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
}

.hero-left p {
    font-size: 20px;
    font-weight: 400;
    color: #666666;
    margin-bottom: 25px;
    font-family: 'Lora', serif;
}

.hero-left .btn {
    background: #000000;
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s ease, color 0.3s ease;
    display: inline-block;
    text-align: center;
    width: fit-content;
}

.hero-left .btn:hover {
    background: #333333;
    color: #ffffff;
}

body.light-mode .hero-left .btn {
    background: var(--accent-color-light);
    color: #ffffff;
}

body.light-mode .hero-left .btn:hover {
    background: #d4ab53;
    color: #0a1e31;
}

.hero-right {
    flex: 1;
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.hero-image {
    position: absolute;
    object-fit: cover;
}

.top-image {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    z-index: 1;
}

.bottom-image {
    bottom: 5%;
    left: 5%;
    transform: none;
    width: 100px;
    height: 100px;
    z-index: 2;
    object-fit: cover;
    object-position: center;
}

/* ==========================================================================
   Sección Trayectoria
   ========================================================================== */

#trayectoria {
    padding: 80px 0;
    background: transparent;
    color: #ffffff;
}

body.light-mode #trayectoria {
    color: var(--text-color-light);
}

#trayectoria h2 {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 700;
    color: #d4ab53;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.light-mode #trayectoria h2 {
    color: var(--accent-color-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#trayectoria p {
    font-family: 'Lora', serif;
    font-size: 18px;
    line-height: 1.9;
    max-width: 900px;
    margin: 0 auto 25px;
    text-align: center;
    color: #e0e0e0;
}

body.light-mode #trayectoria p {
    color: #4a4a4a;
}

/* ==========================================================================
   Sección Valores
   ========================================================================== */

#valores {
    margin-top: -90px;
    padding: 100px 0;
    background: transparent;
    color: #ffffff;
}

body.light-mode #valores {
    color: var(--text-color-light);
}

#valores h2 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 700;
    color: #d4ab53;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

body.light-mode #valores h2 {
    color: var(--accent-color-light);
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.valor-card {
    background: var(--background-card);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

body.light-mode .valor-card {
    background: var(--background-card-light);
    box-shadow: var(--shadow-light);
}

.valor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 0.2);
}

body.light-mode .valor-card:hover {
    background: var(--background-card-light);
    box-shadow: var(--shadow-hover-light);
}

.valor-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #d4ab53;
    transition: width 0.3s ease;
}

body.light-mode .valor-card:before {
    background: var(--accent-color-light);
}

.valor-card:hover:before {
    width: 100px;
}

.valor-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #d4ab53;
    margin-bottom: 20px;
    letter-spacing: 0.8px;
}

body.light-mode .valor-card h3 {
    color: var(--accent-color-light);
}

.valor-card p {
    font-family: 'Lora', serif;
    font-size: 17px;
    line-height: 1.8;
    color: inherit;
    padding: 0 10px;
}

/* ==========================================================================
   Sección Servicios Generales
   ========================================================================== */

#servicios-generales {
    margin-top: -100px;
    padding: 60px 0;
    background: transparent;
    color: var(--text-color);
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

#servicios-generales.visible {
    opacity: 1;
}

body.light-mode #servicios-generales {
    color: var(--text-color-light);
}

#servicios-generales .container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    background: var(--background-container);
    padding: 40px 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: background 0.3s ease;
}

body.light-mode #servicios-generales .container {
    background: var(--background-container-light);
    box-shadow: var(--shadow-light);
}

#servicios-generales h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 1.2px;
    position: relative;
}

body.light-mode #servicios-generales h2 {
    color: var(--accent-color-light);
}

#servicios-generales h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

body.light-mode #servicios-generales h2::after {
    background: var(--accent-color-light);
}

#servicios-generales .services-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#servicios-generales .service-card {
    display: flex;
    align-items: center;
    background: var(--background-card);
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    transition: background 0.3s ease;
    opacity: 0;
    will-change: opacity;
}

body.light-mode #servicios-generales .service-card {
    background: var(--background-card-light);
}

#servicios-generales .service-card:hover {
    box-shadow: var(--shadow-hover);
}

body.light-mode #servicios-generales .service-card:hover {
    box-shadow: var(--shadow-hover-light);
}

#servicios-generales .service-card.visible {
    opacity: 1;
}

#servicios-generales .service-image {
    flex: 0 0 100px;
    height: 100px;
    margin-right: 20px;
    overflow: hidden;
}

#servicios-generales .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    display: block;
    transition: opacity 0.3s ease;
}

#servicios-generales .service-image img.lazy-load {
    opacity: 0.5;
}

#servicios-generales .service-image img:not([data-src]) {
    opacity: 1;
}

#servicios-generales .service-content {
    flex: 1;
}

#servicios-generales .service-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

body.light-mode #servicios-generales .service-content h3 {
    color: var(--accent-color-light);
}

#servicios-generales .service-content p {
    font-family: 'Lora', serif;
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

body.light-mode #servicios-generales .service-content p {
    color: #4a4a4a;
}

#servicios-generales .service-content .btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    transition: background 0.3s ease, color 0.3s ease;
}

body.light-mode #servicios-generales .service-content .btn {
    color: var(--accent-color-light);
    border: 2px solid var(--accent-color-light);
}

#servicios-generales .service-content .btn:hover {
    background: var(--accent-color);
    color: #0a1e31;
}

body.light-mode #servicios-generales .service-content .btn:hover {
    background: var(--accent-color-light);
    color: #ffffff;
}

/* ==========================================================================
   Sección Honorarios
   ========================================================================== */

#honorarios {
    margin-top: -90px;
    padding: 60px 0;
    background: transparent;
    color: #ffffff;
}

body.light-mode #honorarios {
    color: var(--text-color-light);
}

.honorarios-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--background-card);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

body.light-mode .honorarios-container {
    background: var(--background-card-light);
    box-shadow: var(--shadow-light);
}

#honorarios h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #d4ab53;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 1.2px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.light-mode #honorarios h2 {
    color: var(--accent-color-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#honorarios h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #d4ab53;
    border-radius: 2px;
}

body.light-mode #honorarios h2::after {
    background: var(--accent-color-light);
}

#honorarios p {
    font-family: 'Lora', serif;
    font-size: 16px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: center;
    color: #e0e0e0;
}

body.light-mode #honorarios p {
    color: #4a4a4a;
}

#honorarios strong {
    color: #d4ab53;
}

body.light-mode #honorarios strong {
    color: var(--accent-color-light);
}

#honorarios em {
    font-style: italic;
}

#honorarios .btn {
    display: block;
    width: fit-content;
    margin: 30px auto 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    background: #d4ab53;
    color: #0a1e31;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
    box-shadow: var(--shadow);
}

body.light-mode #honorarios .btn {
    background: var(--accent-color-light);
    color: #ffffff;
}

#honorarios .btn:hover {
    background: #ffffff;
    color: #0a1e31;
    transform: scale(1.05);
}

body.light-mode #honorarios .btn:hover {
    background: #d4ab53;
    color: #0a1e31;
}

/* ==========================================================================
   Sección CTA Final
   ========================================================================== */

#cta-final {
    padding: 80px 0;
    background: rgba(212, 171, 83, 0.9);
    color: #0a1e31;
}

body.light-mode #cta-final {
    background: rgba(176, 137, 0, 0.8); /* Ajustado para modo claro */
    color: var(--text-color-light);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.cta-left {
    padding: 20px 15px;
    text-align: left;
}

#cta-final .cta-left h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1.2px;
    color: #0a1e31;
}

body.light-mode #cta-final .cta-left h2 {
    color: var(--text-color-light);
}

.cta-left p {
    font-family: 'Lora', serif;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #0a1e31;
}

body.light-mode .cta-left p {
    color: var(--text-color-light);
}

.cta-left .btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    background: #0a1e31;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
    display: block;
    text-align: center;
    width: fit-content;
    margin: 0 auto;
}

body.light-mode .cta-left .btn {
    background: var(--accent-color-light);
    color: #ffffff;
}

.cta-left .btn:hover {
    background: #ffffff;
    transform: scale(1.05);
    color: #0a1e31;
}

body.light-mode .cta-left .btn:hover {
    background: #d4ab53;
    color: #0a1e31;
}

.cta-right {
    padding: 20px 30px;
}

.faq-accordion {
    max-width: none;
    margin: 0;
}

.faq-item {
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    transition: background 0.3s ease;
}

body.light-mode .faq-item {
    background: rgba(0, 0, 0, 0.1);
}

.faq-question {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #0a1e31;
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    margin: 0;
    transition: color 0.3s ease;
}

body.light-mode .faq-question {
    color: var(--text-color-light);
}

.faq-question:hover {
    color: #ffffff;
}

body.light-mode .faq-question:hover {
    color: var(--accent-color-light);
}

.faq-question:after {
    content: '\25BC';
    position: absolute;
    right: 20px;
    font-size: 14px;
    color: inherit;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question:after {
    transform: rotate(180deg);
}

.faq-answer {
    font-family: 'Lora', serif;
    font-size: 16px;
    line-height: 1.6;
    color: #0a1e31;
    padding: 0 20px 15px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

body.light-mode .faq-answer {
    color: var(--text-color-light);
}

.faq-item.active .faq-answer {
    max-height: 150px;
    opacity: 1;
    padding: 15px 20px;
}

/* ==========================================================================
   Sección Quiénes Somos
   ========================================================================== */

#quienes-somos {
    margin-top: 70px;
    padding: 60px 0;
    background: transparent;
    color: #ffffff;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#quienes-somos.visible {
    opacity: 1;
    transform: translateY(0);
}

body.light-mode #quienes-somos {
    color: var(--text-color-light);
}

#quienes-somos .container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    background: var(--background-container);
    padding: 40px 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

body.light-mode #quienes-somos .container {
    background: var(--background-container-light);
    box-shadow: var(--shadow-light);
}

#quienes-somos .container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

body.light-mode #quienes-somos .container:hover {
    box-shadow: var(--shadow-hover-light);
}

#quienes-somos h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #d4ab53;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 1.2px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.light-mode #quienes-somos h2 {
    color: var(--accent-color-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#quienes-somos h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #d4ab53;
    border-radius: 2px;
}

body.light-mode #quienes-somos h2::after {
    background: var(--accent-color-light);
}

#quienes-somos p {
    font-family: 'Lora', serif;
    font-size: 16px;
    line-height: 1.8;
    max-width: 100%;
    width: 100%;
    margin: 0 auto 20px;
    text-align: justify;
    color: #e0e0e0;
    padding: 0 20px;
}

body.light-mode #quienes-somos p {
    color: #4a4a4a;
}

#quienes-somos .button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

#quienes-somos .btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
    box-shadow: var(--shadow);
    display: inline-block;
    text-align: center;
}

#quienes-somos .btn--primary {
    background: #d4ab53;
    color: #0a1e31;
}

body.light-mode #quienes-somos .btn--primary {
    background: var(--accent-color-light);
    color: #ffffff;
}

#quienes-somos .btn--primary:hover {
    background: #ffffff;
    color: #0a1e31;
    transform: scale(1.05);
}

body.light-mode #quienes-somos .btn--primary:hover {
    background: #d4ab53;
    color: #0a1e31;
}

#quienes-somos .btn--secondary {
    background: transparent;
    color: #d4ab53;
    border: 2px solid #d4ab53;
}

body.light-mode #quienes-somos .btn--secondary {
    color: var(--accent-color-light);
    border: 2px solid var(--accent-color-light);
}

#quienes-somos .btn--secondary:hover {
    background: #d4ab53;
    color: #0a1e31;
    border-color: transparent;
    transform: scale(1.05);
}

body.light-mode #quienes-somos .btn--secondary:hover {
    background: var(--accent-color-light);
    color: #ffffff;
    border-color: transparent;
}

/* ==========================================================================
   Sección Servicios
   ========================================================================== */

#servicios {
    margin-top: 30px;
    padding: 60px 0;
    background: transparent;
    color: var(--text-color);
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

#servicios.visible {
    opacity: 1;
}

body.light-mode #servicios {
    color: var(--text-color-light);
}

#servicios .container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    background: var(--background-container);
    padding: 40px 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: background 0.3s ease;
}

body.light-mode #servicios .container {
    background: var(--background-container-light);
    box-shadow: var(--shadow-light);
}

#servicios h2#servicios-title,
#servicios h2#especializacion-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 40px;
    margin-top: 40px;
    letter-spacing: 1.2px;
    position: relative;
}

body.light-mode #servicios h2#servicios-title,
body.light-mode #servicios h2#especializacion-title {
    color: var(--accent-color-light);
}

#servicios h2#servicios-title::after,
#servicios h2#especializacion-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

body.light-mode #servicios h2#servicios-title::after,
body.light-mode #servicios h2#especializacion-title::after {
    background: var(--accent-color-light);
}

#servicios .services-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#servicios .service-card {
    display: flex;
    align-items: center;
    background: var(--background-card);
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    transition: background 0.3s ease;
    opacity: 0;
    will-change: opacity;
}

body.light-mode #servicios .service-card {
    background: var(--background-card-light);
}

#servicios .service-card:hover {
    box-shadow: var(--shadow-hover);
}

body.light-mode #servicios .service-card:hover {
    box-shadow: var(--shadow-hover-light);
}

#servicios .service-card.visible {
    opacity: 1;
}

#servicios .service-image {
    flex: 0 0 100px;
    height: 100px;
    margin-right: 20px;
    overflow: hidden;
}

#servicios .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    display: block;
    transition: opacity 0.3s ease;
}

#servicios .service-image img.lazy-load {
    opacity: 0.5;
}

#servicios .service-image img:not([data-src]) {
    opacity: 1;
}

#servicios .service-content {
    flex: 1;
}

#servicios .service-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

body.light-mode #servicios .service-content h3 {
    color: var(--accent-color-light);
}

#servicios .service-content p {
    font-family: 'Lora', serif;
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

body.light-mode #servicios .service-content p {
    color: #4a4a4a;
}

#servicios .service-content .btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    transition: background 0.3s ease, color 0.3s ease;
}

body.light-mode #servicios .service-content .btn {
    color: var(--accent-color-light);
    border: 2px solid var(--accent-color-light);
}

#servicios .service-content .btn:hover {
    background: var(--accent-color);
    color: #0a1e31;
}

body.light-mode #servicios .service-content .btn:hover {
    background: var(--accent-color-light);
    color: #ffffff;
}

/* ==========================================================================
   Sección Contacto
   ========================================================================== */

#contacto {
    margin-top: 60px;
    padding: 60px 0;
    background: transparent;
    color: #ffffff;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#contacto.visible {
    opacity: 1;
    transform: translateY(0);
}

body.light-mode #contacto {
    color: var(--text-color-light);
}

#contacto-container {
    display: none;
}

#contacto h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #d4ab53;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 1.2px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.light-mode #contacto h2 {
    color: var(--accent-color-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#contacto h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #d4ab53;
    border-radius: 2px;
}

body.light-mode #contacto h2::after {
    background: var(--accent-color-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    background: var(--background-container);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

body.light-mode .contact-form {
    background: var(--background-container-light);
    box-shadow: var(--shadow-light);
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

body.light-mode .contact-form:hover {
    box-shadow: var(--shadow-hover-light);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #d4ab53;
    border-radius: 5px;
    background: #0a1e31;
    color: #ffffff;
    font-size: 16px;
    resize: vertical;
    transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

body.light-mode .contact-form input,
body.light-mode .contact-form textarea {
    background: #ffffff;
    color: var(--text-color-light);
    border: 1px solid var(--accent-color-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 5px rgba(212, 171, 83, 0.5);
}

body.light-mode .contact-form input:focus,
body.light-mode .contact-form textarea:focus {
    border-color: var(--accent-color-light);
    box-shadow: 0 0 5px rgba(176, 137, 0, 0.3);
}

.contact-form textarea {
    height: 120px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #d4ab53;
    opacity: 0.8;
    transition: color 0.3s ease;
}

body.light-mode .contact-form input::placeholder,
body.light-mode .contact-form textarea::placeholder {
    color: #666666;
    opacity: 1;
}

.contact-form button {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    background: #d4ab53;
    color: #0a1e31;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
    box-shadow: var(--shadow);
}

body.light-mode .contact-form button {
    background: var(--accent-color-light);
    color: #ffffff;
}

.contact-form button:hover {
    background: #ffffff;
    color: #0a1e31;
    transform: scale(1.05);
}

body.light-mode .contact-form button:hover {
    background: #d4ab53;
    color: #0a1e31;
}

.contact-map {
    background: var(--background-container);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

body.light-mode .contact-map {
    background: var(--background-container-light);
    box-shadow: var(--shadow-light);
}

.contact-map:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

body.light-mode .contact-map:hover {
    box-shadow: var(--shadow-hover-light);
}

.contact-map #map {
    height: 250px;
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #d4ab53;
    width: 100%;
    max-width: 400px;
}

body.light-mode .contact-map #map {
    border: 1px solid var(--accent-color-light);
}

.contact-map p {
    margin: 10px 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.light-mode .contact-map p {
    color: var(--text-color-light);
}

.contact-map p:before {
    margin-right: 10px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    background: var(--footer-bg-dark);
    color: var(--footer-text-dark);
    padding: 40px 0;
    text-align: center;
    border-top: var(--footer-border);
    box-shadow: var(--footer-shadow-dark);
    transition: var(--transition-footer);
    font-family: 'Roboto', sans-serif;
}

body.light-mode footer {
    background: var(--footer-bg-light);
    color: var(--footer-text-dark);
    box-shadow: var(--footer-shadow-light);
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

footer .container p {
    font-size: 14px;
    color: #e0e0e0;
    margin: 0;
}

body.light-mode footer .container p {
    color: #4a4a4a;
}

footer ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
    gap: 20px;
}

footer ul li {
    font-size: 16px;
}

footer ul li a {
    color: var(--footer-text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 3px;
    transition: var(--transition-footer);
}

body.light-mode footer ul li a {
    color: var(--footer-text-light);
}

footer ul li a:hover {
    color: var(--footer-bg-light);
    background-color: rgba(212, 171, 83, 0.2);
}

body.light-mode footer ul li a:hover {
    color: var(--accent-color-light);
    background-color: rgba(176, 137, 0, 0.1);
}

footer ul li .contact-link {
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: var(--transition-footer);
}

footer ul li .contact-link:hover {
    border-bottom: 2px solid var(--footer-text-dark);
    background-color: transparent;
}

body.light-mode footer ul li .contact-link {
    color: var(--footer-text-light);
}

body.light-mode footer ul li .contact-link:hover {
    border-bottom: 2px solid var(--accent-color-light);
}

footer .container::after {
    content: '';
    width: 80%;
    height: 1px;
    background: rgba(212, 171, 83, 0.3);
    margin-top: 20px;
    display: block;
}

body.light-mode footer .container::after {
    background: rgba(176, 137, 0, 0.2);
}

/* ==========================================================================
   Sección WhatsApp
   ========================================================================== */

.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #d4ab53;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    z-index: 1000;
    text-decoration: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

body.light-mode .whatsapp-btn {
    background: var(--accent-color-light);
    box-shadow: var(--shadow-light);
}

.whatsapp-btn img {
    width: 40px;
    height: 40px;
    filter: invert(1) hue-rotate(180deg);
    transition: filter 0.3s ease;
}

body.light-mode .whatsapp-btn img {
    filter: invert(0) hue-rotate(0deg);
}

.whatsapp-btn:hover {
    background: #ffffff;
    box-shadow: var(--shadow-hover);
}

body.light-mode .whatsapp-btn:hover {
    background: #d4ab53;
    box-shadow: var(--shadow-hover-light);
}

/* ==========================================================================
   Animaciones para secciones dinámicas
   ========================================================================== */

.section, #hero {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.visible, #hero.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos para las páginas de detalle de servicios */
.section.service-detail-page {
    margin-top: 70px;
    padding: 60px 0;
    background: transparent;
    color: var(--text-color);
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.section.service-detail-page.visible {
    opacity: 1;
}

body.light-mode .section.service-detail-page {
    color: var(--text-color-light);
}

.section.service-detail-page .container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    background: var(--background-container);
    padding: 40px 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

body.light-mode .section.service-detail-page .container {
    background: var(--background-container-light);
    box-shadow: var(--shadow-light);
}

.section.service-detail-page h2#accidentes-transito-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 1.2px;
    position: relative;
}

body.light-mode .section.service-detail-page h2#accidentes-transito-title {
    color: var(--accent-color-light);
}

.section.service-detail-page h2#accidentes-transito-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

body.light-mode .section.service-detail-page h2#accidentes-transito-title::after {
    background: var(--accent-color-light);
}

.section.service-detail-page .service-detail-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.section.service-detail-page .service-detail-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

body.light-mode .section.service-detail-page .service-detail-content h3 {
    color: var(--accent-color-light);
}

.section.service-detail-page .service-detail-content p {
    font-family: 'Lora', serif;
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

body.light-mode .section.service-detail-page .service-detail-content p {
    color: #4a4a4a;
}

.section.service-detail-page .service-detail-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.section.service-detail-page .service-detail-content ul li {
    font-family: 'Lora', serif;
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.6;
}

body.light-mode .section.service-detail-page .service-detail-content ul li {
    color: #4a4a4a;
}

.section.service-detail-page .service-detail-content ul li strong {
    font-weight: 600;
    color: var(--accent-color);
}

body.light-mode .section.service-detail-page .service-detail-content ul li strong {
    color: var(--accent-color-light);
}

.section.service-detail-page .service-detail-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

.section.service-detail-page .service-detail-buttons .btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.section.service-detail-page .service-detail-buttons .btn.btn--secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

body.light-mode .section.service-detail-page .service-detail-buttons .btn.btn--secondary {
    color: var(--accent-color-light);
    border: 2px solid var(--accent-color-light);
}

.section.service-detail-page .service-detail-buttons .btn.btn--secondary:hover {
    background: var(--accent-color);
    color: #0a1e31;
}

body.light-mode .section.service-detail-page .service-detail-buttons .btn.btn--secondary:hover {
    background: var(--accent-color-light);
    color: #ffffff;
}

/* ==========================================================================
   Sección Staff (Temporal) - Desktop
   ========================================================================== */

#staff {
    padding: 80px 0;
    margin-top: 70px;
}

#staff .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

#staff h2 {
    font-size: 36px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    color: var(--text-color, #ffffff);
}

body.light-mode #staff h2 {
    color: var(--text-color-light);
}

#staff h2 .material-icons {
    font-size: 40px;
    color: #d4ab53;
}

body.light-mode #staff h2 .material-icons {
    color: var(--accent-color-light);
}

#staff p {
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    font-family: 'Lora', serif;
    color: var(--text-color, #ffffff);
}

body.light-mode #staff p {
    color: #4a4a4a;
}

/* ==========================================================================
   Hero Section - Responsive
   ========================================================================== */

@media (max-width: 768px) {
    #hero {
        margin-top: 80px;
        min-height: auto;
        padding: 40px 0;
    }

    .hero-container {
        flex-direction: column;
        padding: 0 15px;
    }

    .hero-left {
        padding: 20px;
        text-align: center;
    }

    .hero-left h1 {
        font-size: 32px;
        line-height: 1.3;
    }

    .hero-left p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .hero-left .btn {
        padding: 10px 25px;
        font-size: 14px;
    }

    .hero-right {
        margin-top: 20px;
        height: 200px;
    }

    .top-image {
        width: 100%;
        height: 100%;
    }

    .bottom-image {
        width: 80px;
        height: 80px;
        bottom: 10px;
        left: 10px;
    }
}

@media (max-width: 480px) {
    #hero {
        margin-top: 70px;
        padding: 30px 0;
    }

    .hero-left h1 {
        font-size: 28px;
    }

    .hero-left p {
        font-size: 14px;
    }

    .hero-right {
        height: 150px;
    }

    .bottom-image {
        width: 60px;
        height: 60px;
    }
}

/* ==========================================================================
   CTA Final Section - Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-left {
        padding: 15px;
        text-align: center;
    }

    #cta-final .cta-left h2 {
        font-size: 28px;
    }

    .cta-left p {
        font-size: 16px;
    }

    .cta-left .btn {
        padding: 10px 25px;
        font-size: 16px;
    }

    .cta-right {
        padding: 15px;
    }

    .faq-question {
        font-size: 18px;
        padding: 12px 15px;
    }

    .faq-answer {
        font-size: 14px;
    }

    .faq-item.active .faq-answer {
        max-height: 200px;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    #cta-final .cta-left h2 {
        font-size: 24px;
    }

    .cta-left p {
        font-size: 14px;
    }

    .faq-question {
        font-size: 16px;
    }

    .faq-answer {
        font-size: 13px;
    }
}

/* ==========================================================================
   Trayectoria Section - Responsive
   ========================================================================== */

@media (max-width: 768px) {
    #trayectoria {
        padding: 50px 0;
    }

    #trayectoria h2 {
        font-size: 30px;
        margin-bottom: 20px;
    }

    #trayectoria p {
        font-size: 16px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    #trayectoria h2 {
        font-size: 26px;
    }

    #trayectoria p {
        font-size: 14px;
    }
}

/* ==========================================================================
   Valores Section - Responsive
   ========================================================================== */

@media (max-width: 768px) {
    #valores {
        padding: 60px 0;
    }

    #valores h2 {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .valores-grid {
        gap: 20px;
    }

    .valor-card {
        padding: 20px;
    }

    .valor-card h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .valor-card p {
        font-size: 15px;
        padding: 0 5px;
    }
}

@media (max-width: 480px) {
    #valores h2 {
        font-size: 28px;
    }

    .valor-card h3 {
        font-size: 18px;
    }

    .valor-card p {
        font-size: 14px;
    }
}

/* ==========================================================================
   Honorarios Section - Responsive
   ========================================================================== */

@media (max-width: 768px) {
    #honorarios {
        padding: 50px 0;
    }

    .honorarios-container {
        padding: 30px 20px;
    }

    #honorarios h2 {
        font-size: 30px;
        margin-bottom: 30px;
    }

    #honorarios p {
        font-size: 15px;
        padding: 0 10px;
    }

    #honorarios .btn {
        padding: 10px 25px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    #honorarios h2 {
        font-size: 26px;
    }

    #honorarios p {
        font-size: 14px;
    }

    #honorarios .btn {
        font-size: 14px;
    }
}

/* ==========================================================================
   Servicios Generales Section - Responsive
   ========================================================================== */

@media (max-width: 768px) {
    #servicios-generales {
        padding: 50px 0;
    }

    #servicios-generales .container {
        padding: 30px 20px;
    }

    #servicios-generales h2 {
        font-size: 30px;
        margin-bottom: 30px;
    }

    #servicios-generales .service-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    #servicios-generales .service-image {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
        height: 150px;
    }

    #servicios-generales .service-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #servicios-generales .service-content h3 {
        font-size: 18px;
    }

    #servicios-generales .service-content p {
        font-size: 15px;
    }

    #servicios-generales .service-content .btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    #servicios-generales h2 {
        font-size: 26px;
    }

    #servicios-generales .service-image {
        height: 120px;
    }

    #servicios-generales .service-content h3 {
        font-size: 16px;
    }

    #servicios-generales .service-content p {
        font-size: 14px;
    }

    #servicios-generales .service-content .btn {
        font-size: 12px;
    }
}

/* ==========================================================================
   Header (Navbar) - Responsive
   ========================================================================== */

@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }

    header .container {
        flex-direction: row;
        align-items: center;
        position: relative;
    }

    .logo {
        font-size: 20px;
        display: flex;
        align-items: center;
    }

    .logo .material-icons {
        font-size: 24px;
        margin-right: 6px;
    }

    nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #04041c;
        padding: 15px 0;
        box-shadow: var(--shadow);
        z-index: 999;
    }

    body.light-mode nav {
        background: var(--footer-bg-light);
        box-shadow: var(--shadow-light);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        font-size: 16px;
        padding: 10px;
        display: block;
        width: 100%;
        text-align: center;
    }

    .theme-btn {
        background: #d4ab53;
        color: #0a1e31;
        padding: 10px;
        border: none;
        border-radius: 5px;
        font-weight: 600;
        font-size: 16px;
        cursor: pointer;
        width: 100%;
        display: block;
        transition: background 0.3s ease, color 0.3s ease;
    }

    body.light-mode .theme-btn {
        background: var(--accent-color-light);
        color: #ffffff;
    }

    .theme-btn:hover {
        background: #ffffff;
        color: #0a1e31;
    }

    .hamburger {
        display: block;
        background: none;
        border: none;
        color: #d4ab53;
        font-size: 24px;
        cursor: pointer;
        padding: 10px;
    }

    body.light-mode .hamburger {
        color: var(--accent-color-light);
    }
}

@media (max-width: 480px) {
    header {
        padding: 8px 0;
    }

    .logo {
        font-size: 18px;
    }

    .logo .material-icons {
        font-size: 20px;
    }

    nav ul li a {
        font-size: 14px;
        padding: 8px;
    }

    .theme-btn {
        font-size: 14px;
        padding: 8px;
    }

    .hamburger {
        font-size: 20px;
        padding: 8px;
    }
}

/* ==========================================================================
   Sección Quiénes Somos - Responsive
   ========================================================================== */

@media (max-width: 768px) {
    #quienes-somos {
        margin-top: 50px;
        padding: 50px 0;
    }

    #quienes-somos .container {
        padding: 30px 20px;
    }

    #quienes-somos h2 {
        font-size: 30px;
        margin-bottom: 30px;
    }

    #quienes-somos p {
        font-size: 15px;
        padding: 0 10px;
        text-align: justify;
    }

    #quienes-somos .button-group {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }

    #quienes-somos .btn {
        padding: 10px 25px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    #quienes-somos {
        margin-top: 40px;
        padding: 40px 0;
    }

    #quienes-somos h2 {
        font-size: 26px;
    }

    #quienes-somos p {
        font-size: 14px;
        text-align: justify;
    }

    #quienes-somos .btn {
        font-size: 13px;
        padding: 8px 20px;
    }
}

/* ==========================================================================
   Sección Servicios Álvaro - Responsive
   ========================================================================== */

@media (max-width: 768px) {
    #servicios {
        padding: 50px 0;
    }

    #servicios .container {
        padding: 30px 20px;
    }

    #servicios h2 {
        font-size: 30px;
        margin-bottom: 30px;
        text-align: center;
    }

    .services-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .service-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px;
        text-align: center;
    }

    .service-image {
        display: none;
    }

    .service-content {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .service-content h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .service-content p {
        font-size: 15px;
        margin-bottom: 15px;
        text-align: justify;
    }

    .service-content .btn.btn--secondary {
        padding: 10px 25px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    #servicios {
        padding: 40px 0;
    }

    #servicios .container {
        padding: 20px 15px;
    }

    #servicios h2 {
        font-size: 26px;
    }

    .service-content h3 {
        font-size: 16px;
    }

    .service-content p {
        font-size: 14px;
    }

    .service-content .btn.btn--secondary {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* ==========================================================================
   Sección Service Detail Page - Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .service-detail-page {
        padding: 50px 0;
    }

    .service-detail-page .container {
        padding: 30px 20px;
    }

    .service-detail-page h2 {
        font-size: 30px;
        margin-bottom: 30px;
        text-align: center;
    }

    .service-detail-content h3 {
        font-size: 20px;
        margin-bottom: 15px;
        text-align: center;
    }

    .service-detail-content p {
        font-size: 15px;
        margin-bottom: 15px;
        text-align: justify;
    }

    .service-detail-content ul {
        margin: 15px 0;
        padding-left: 25px;
    }

    .service-detail-content li {
        font-size: 15px;
        margin-bottom: 10px;
        line-height: 1.5;
        text-align: justify;
    }

    .service-detail-content li strong {
        font-weight: 600;
    }

    .service-detail-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
        align-items: center;
    }

    .service-detail-buttons .btn.btn--secondary {
        padding: 10px 25px;
        font-size: 14px;
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .service-detail-page {
        padding: 40px 0;
    }

    .service-detail-page .container {
        padding: 20px 15px;
    }

    .service-detail-page h2 {
        font-size: 26px;
    }

    .service-detail-content h3 {
        font-size: 18px;
        text-align: center;
    }

    .service-detail-content p {
        font-size: 14px;
    }

    .service-detail-content ul {
        padding-left: 20px;
    }

    .service-detail-content li {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .service-detail-buttons .btn.btn--secondary {
        padding: 8px 20px;
        font-size: 13px;
        max-width: 250px;
    }
}

/* ==========================================================================
   Sección Contacto - Responsive
   ========================================================================== */

@media (max-width: 768px) {
    #contacto {
        padding: 50px 0;
    }

    #contacto .container.contact-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }

    .contact-form {
        width: 100%;
    }

    .contact-form h2 {
        font-size: 30px;
        margin-bottom: 20px;
        text-align: center;
    }

    .contact-form form {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 15px;
        padding: 12px;
        width: 100%;
        border-radius: 5px;
    }

    .contact-form textarea {
        height: 120px;
        resize: vertical;
    }

    .contact-form .btn {
        padding: 10px 25px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }

    .contact-map {
        width: 100%;
    }

    .contact-map h3 {
        font-size: 20px;
        margin-bottom: 15px;
        text-align: center;
    }

    .contact-map #map {
        width: 100%;
        height: 180px;
        margin-bottom: 15px;
    }

    .contact-map iframe {
        width: 100%;
        height: 100%;
    }

    .contact-map p {
        font-size: 15px;
        margin-bottom: 10px;
        text-align: justify;
    }
}

@media (max-width: 480px) {
    #contacto {
        padding: 40px 0;
    }

    #contacto .container.contact-grid {
        padding: 20px 15px;
        gap: 20px;
    }

    .contact-form h2 {
        font-size: 26px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 14px;
        padding: 10px;
    }

    .contact-form textarea {
        height: 100px;
    }

    .contact-form .btn {
        padding: 8px 20px;
        font-size: 13px;
    }

    .contact-map h3 {
        font-size: 18px;
    }

    .contact-map #map {
        height: 150px;
    }

    .contact-map p {
        font-size: 14px;
    }
}

/* ==========================================================================
   Sección Staff (Temporal) - Responsive
   ========================================================================== */

@media (max-width: 768px) {
    #staff {
        padding: 50px 0;
    }

    #staff .container {
        padding: 30px 20px;
        text-align: center;
    }

    #staff h2 {
        font-size: 30px;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    #staff h2 .material-icons {
        font-size: 32px;
        color: #d4ab53;
    }

    body.light-mode #staff h2 .material-icons {
        color: var(--accent-color-light);
    }

    #staff p {
        font-size: 15px;
        margin: 0 auto;
        max-width: 600px;
        text-align: justify;
    }
}

@media (max-width: 480px) {
    #staff {
        padding: 40px 0;
    }

    #staff .container {
        padding: 20px 15px;
    }

    #staff h2 {
        font-size: 26px;
        gap: 8px;
    }

    #staff h2 .material-icons {
        font-size: 28px;
    }

    #staff p {
        font-size: 14px;
        max-width: 100%;
    }
}