:root {
    --primary: #0056b3;
    --primary-dark: #003d82;
    --secondary: #2c3e50;
    --accent: #3498db;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.about-hero {
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.9)), url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?q=80&w=1470&auto=format&fit=crop') center/cover;
    color: white;
    text-align: center;
    padding: 150px 0;
    position: relative;
}

.about-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-hero-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.about-hero-subtitle {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
    animation: fadeIn 1.2s ease;
}

/* Modificar la sección ¿Quiénes Somos? */
.about-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Agregar la imagen de fondo */
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/fondoviejo.jpg');
    /* Cambia esta URL por tu imagen */
    background-size: cover;
    background-position: center;
    opacity: 0.;
    /* Ajusta la opacidad según necesites */
    z-index: -1;
}

/* Mantener el contenido legible */
.about-section .container,
.about-section .section-title,
.about-grid,
.about-content h3,
.about-content p {
    position: relative;
    z-index: 1;
}


.section-title {
    text-align: center;
    font-family: 'Exo 2', sans-serif;
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 70px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 400px;
    background: url('https://images.unsplash.com/photo-1468436139062-f60a71c5c892?q=80&w=1470&auto=format&fit=crop') center/cover;
}

.about-content h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 25px;
}

/* Mission Vision Section */
.mission-vision {
    background-color: var(--light);
    padding: 100px 0;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.mv-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.mv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.mv-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.mv-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.mv-text {
    color: var(--gray);
    line-height: 1.8;
}

/* Values Section */
.values-section {
    padding: 100px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--accent);
}

.value-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.value-text {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Location Section */
.location-section {
    background-color: var(--light);
    padding: 100px 0;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.location-map {
    height: 400px;
    background: url('https://images.unsplash.com/photo-1574279606131-94a9e6b0b3c8?q=80&w=1470&auto=format&fit=crop') center/cover;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.location-info h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.location-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 25px;
}

.location-features {
    margin-top: 30px;
}

.location-feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.location-feature i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-right: 10px;
    min-width: 25px;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-text {
    opacity: 0.7;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 15px;
    transition: var(--transition);
    padding: 5px 0;
}

.footer-link:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .about-hero-title {
        font-size: 2.8rem;
    }

    .about-hero-subtitle {
        font-size: 1.3rem;
    }

    .about-grid,
    .location-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        padding: 15px 0;
    }

    .nav-links {
        margin-top: 20px;
        gap: 15px;
    }

    .about-hero {
        padding: 100px 0;
    }

    .about-hero-title {
        font-size: 2.3rem;
    }

    .about-hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-grid,
    .location-grid {
        grid-template-columns: 1fr;
    }

    .about-image,
    .location-map {
        height: 300px;
        order: -1;
    }
}

@media (max-width: 576px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .about-hero-title {
        font-size: 2rem;
    }
}



/* Estilos para el botón flotante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-button {
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.7);
}

.whatsapp-button i {
    transition: transform 0.3s ease;
}

.whatsapp-button.active i {
    transform: rotate(180deg);
}

.questions-container {
    position: absolute;
    bottom: 90px;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 300px;
    padding: 20px;
    transform: scale(0);
    transform-origin: bottom right;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
}

.questions-container.show {
    transform: scale(1);
    opacity: 1;
}

.questions-container h3 {
    color: #075E54;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.3rem;
    border-bottom: 2px solid #25D366;
    padding-bottom: 10px;
}

.question-list {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.question-list::-webkit-scrollbar {
    width: 6px;
}

.question-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.question-list::-webkit-scrollbar-thumb {
    background: #25D366;
    border-radius: 10px;
}

.question-item {
    padding: 12px 15px;
    margin: 10px 0;
    background: #f0f2f5;
    border-radius: 10px;
    color: #3b4a54;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    text-align: left;
    border-left: 4px solid #25D366;
}

.question-item:hover {
    background: #e6e9ec;
    transform: translateX(-5px);
}

.question-item i {
    margin-right: 8px;
    color: #25D366;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-button {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }

    .questions-container {
        width: 280px;
        bottom: 80px;
    }
}

@media (max-width: 480px) {
    .questions-container {
        width: 250px;
    }

    .question-item {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
}

/* --- MENÚ DESPLEGABLE CORREGIDO --- */
.nav-group {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 260px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    transform: translateY(6px);
    z-index: 9999; /* IMPORTANTE */
}

/* Mantener el menú abierto mientras el cursor esté encima del botón o el panel */
.nav-group:hover .nav-dropdown,
.nav-dropdown:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Items internos */
.nav-sublink {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    color: var(--secondary);
    transition: background .25s ease;
}

.nav-sublink:hover {
    background: var(--light-gray);
    color: var(--primary-dark);
}

/* Hover desktop: mostrar dropdown */
@media (hover:hover) {
    .nav-group:hover>.nav-dropdown {
        display: block;
    }
}

/* ---------- MÓVIL / TABLET ---------- */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: grid;
    }

    .nav {
        padding: 14px 0;
    }

    /* Backdrop oscuro al abrir */
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .35);
        z-index: 999;
        opacity: 0;
        transition: opacity .25s ease;
    }

    .nav-backdrop.show {
        opacity: 1;
    }

    /* Menú deslizable */
    .nav-links {
        position: fixed;
        inset: 0 0 0 auto;
        width: 86%;
        max-width: 360px;
        background: #fff;
        box-shadow: -8px 0 24px rgba(0, 0, 0, .15);
        display: block;
        padding: 80px 22px 24px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform .3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-link,
    .nav-dropdown-toggle {
        display: block;
        width: 100%;
        text-align: left;
        padding: 12px 6px;
        font-size: 1.05rem;
        border-bottom: 1px solid #f1f3f5;
    }

    /* Dropdown como acordeón en móvil */
    .nav-dropdown {
        position: static;
        display: none;
        box-shadow: none;
        padding: 6px 0 10px 8px;
        background: transparent;
    }

    .nav-group.open>.nav-dropdown {
        display: block;
    }

    .nav-sublink {
        padding: 10px 8px 10px 14px;
    }
}

/* Estado activo (página actual, opcional) */
.nav-link.active,
.nav-sublink.active,
.nav-dropdown-toggle[aria-expanded="true"] {
    color: var(--primary);
}



/* ================================
   FIX MENÚ RESPONSIVE NOSOTROS
================================ */

@media (max-width: 992px) {
    .nav {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 14px 20px !important;
    }

    .logo {
        font-size: 1.2rem !important;
    }

    .logo img {
        height: 80px !important;
        margin-right: 12px !important;
    }

    .mobile-menu-toggle {
        display: grid !important;
        place-items: center;
        background: none;
        border: none;
        color: var(--primary);
        font-size: 1.8rem;
        cursor: pointer;
        z-index: 1002;
    }

    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .35);
        z-index: 999;
        opacity: 0;
        transition: opacity .25s ease;
    }

    .nav-backdrop.show {
        opacity: 1;
    }

    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 85% !important;
        max-width: 360px;
        height: 100vh;
        background: white;
        display: block !important;
        padding: 100px 25px 25px !important;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform .3s ease;
        z-index: 1001;
        margin-top: 0 !important;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-link,
    .nav-dropdown-toggle {
        display: block !important;
        width: 100%;
        text-align: left;
        padding: 14px 0 !important;
        font-size: 1.1rem;
        border-bottom: 1px solid #eee;
    }

    .nav-dropdown {
        position: static !important;
        display: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        box-shadow: none !important;
        background: transparent !important;
        padding: 8px 0 8px 18px !important;
    }

    .nav-group.open > .nav-dropdown {
        display: block !important;
    }

    .nav-sublink {
        display: block !important;
        padding: 12px 10px !important;
        color: var(--secondary) !important;
        border-bottom: 1px solid #eee;
    }
}