:root {
    --primary-dark: #0a0f1a;
    --primary-blue: #3b82f6;
    --primary-light: #eff6ff;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-grey: #64748b;
    --text-light: #94a3b8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
    --shadow-blue: 0 10px 40px rgba(59, 130, 246, 0.2);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.text-center {
    text-align: center;
}

.text-blue {
    color: var(--primary-blue);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    color: var(--text-grey);
    max-width: 650px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    transition: var(--transition);
    box-shadow: var(--shadow-blue);
    border: none;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.35);
    background: #2563eb;
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    transition: var(--transition);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 5%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.05);
}

.navbar .logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.navbar .logo span {
    color: var(--primary-blue);
}

.navbar .logo .logo-icon {
    width: 32px;
    height: 32px;
}

.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.navbar .nav-links a {
    text-decoration: none;
    color: var(--text-grey);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar .nav-links a:hover {
    color: var(--text-dark);
}

/* Menú hamburguesa para móviles */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ==================== HERO ==================== */
.hero-about {
    margin-top: 72px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 60px 0 100px;
}

.hero-about .hero-content h1 {
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-dark);
}

.hero-about .hero-content p {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    color: var(--text-grey);
    margin: 28px 0 36px;
    line-height: 1.7;
    max-width: 600px;
}

.tag-hero {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-blue);
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

/* ==================== MISIÓN Y VISIÓN - ICONOS LINE ART ==================== */
#mision-vision {
    padding: 100px 0;
    background: var(--bg-white);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mision-card {
    background: white;
    padding: 48px 40px;
    border-radius: var(--radius-md);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

/* Línea decorativa superior */
.mision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), #60a5fa);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.mision-card:hover::before {
    transform: scaleX(1);
}

.mision-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: #3b82f6;
}

/* Icono SVG */
.mision-icon-svg {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mision-icon-svg svg {
    width: 100%;
    height: 100%;
    stroke: var(--text-grey);
    stroke-width: 2;
    fill: none;
    transition: all 0.3s ease;
}

.mision-icon-svg svg .accent {
    stroke: var(--primary-blue);
}

.mision-card:hover .mision-icon-svg svg {
    stroke: var(--text-dark);
    transform: scale(1.05);
}

.mision-card .tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-blue);
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    align-self: flex-start;
}

.mision-card h3 {
    font-size: clamp(1.5rem, 2vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.mision-card p {
    font-size: 1.05rem;
    color: var(--text-grey);
    line-height: 1.7;
    flex-grow: 1;
}

/* ==================== IMÁGENES ==================== */
.imagen-grande {
    width: 100%;
    height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

.imagen-grande img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.imagen-lado {
    width: 100%;
    height: 380px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.imagen-lado img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==================== VALORES ==================== */
#valores-seccion {
    padding: 100px 0;
    background: var(--bg-light);
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.valor-card {
    background: white;
    padding: 48px 32px;
    border-radius: var(--radius-md);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.valor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), #60a5fa);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.valor-card:hover::before {
    transform: scaleX(1);
}

.valor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: #3b82f6;
}

.valor-card .num {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    opacity: 0.15;
    display: block;
    margin-bottom: 16px;
    line-height: 1;
    transition: all 0.4s ease;
}

.valor-card:hover .num {
    opacity: 1;
    color: #2563eb;
    transform: scale(1.1);
    text-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.valor-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.valor-card:hover h3 {
    color: #1e40af;
}

.valor-card p {
    color: var(--text-grey);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer .logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer .logo span {
    color: var(--primary-blue);
}

.footer .logo .logo-icon {
    width: 32px;
    height: 32px;
}

.footer p {
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: white;
    font-weight: 600;
}

.footer a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.8rem;
}

/* ==================== MODALES LEGALES ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-grey);
}

.modal-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-content {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 8px;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

.modal-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    margin-top: 24px;
}

.modal-content h4:first-child {
    margin-top: 0;
}

.modal-content p {
    color: var(--text-grey);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.modal-content ul {
    color: var(--text-grey);
    line-height: 1.7;
    font-size: 0.95rem;
    padding-left: 20px;
    margin-bottom: 16px;
}

.modal-content ul li {
    margin-bottom: 8px;
}

.modal-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    text-align: right;
}

.modal-footer .btn-primary {
    padding: 12px 32px;
    font-size: 0.9rem;
}

/* ==================== WHATSAPP FLOATING BUTTON ==================== */
.whatsapp-float {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 60px;
    height: 60px;
    background: rgba(37, 211, 102, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999 !important;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
    transform: scale(1.1);
    box-shadow: 0 8px 40px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.whatsapp-float:hover .whatsapp-icon {
    filter: brightness(10);
}

.whatsapp-tooltip {
    display: none;
    position: absolute;
    right: 75px;
    background: #0f172a;
    color: white;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* ==================== RESPONSIVE - MEDIA QUERIES ==================== */

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-about .hero-content {
        text-align: center;
    }
    .hero-about .hero-content p {
        margin: 28px auto 36px;
    }
    .imagen-grande {
        height: 350px;
    }
    .imagen-lado {
        height: 300px;
    }
    .mision-icon-svg {
        width: 70px;
        height: 70px;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* Navbar móvil */
    .navbar .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 20px;
        transform: translateY(-120%);
        transition: transform 0.4s ease;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .navbar .nav-links.active {
        transform: translateY(0);
    }
    
    .navbar .nav-links a {
        font-size: 1.1rem;
        color: var(--text-dark);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Hero móvil */
    .hero-about {
        padding: 40px 0 60px;
    }
    .hero-about .hero-content h1 {
        font-size: 2.2rem;
    }
    
    /* Misión y Visión móvil */
    #mision-vision {
        padding: 60px 0 80px;
    }
    .mision-card {
        padding: 32px 24px;
    }
    .mision-icon-svg {
        width: 60px;
        height: 60px;
    }
    
    /* Imágenes móvil */
    .imagen-grande {
        height: 220px;
    }
    .imagen-lado {
        height: 220px;
    }
    
    /* Valores móvil */
    #valores-seccion {
        padding: 60px 0 80px;
    }
    .valores-grid {
        grid-template-columns: 1fr;
    }
    .valor-card {
        padding: 32px 24px;
    }
    
    /* Footer móvil */
    .footer {
        padding: 60px 0 30px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .footer .logo {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    /* Modales móvil */
    .modal {
        padding: 30px 24px;
        max-width: 95%;
        max-height: 85vh;
    }
    
    /* WhatsApp móvil */
    .whatsapp-float {
        bottom: 20px !important;
        right: 20px !important;
        width: 54px;
        height: 54px;
    }
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
    .whatsapp-tooltip {
        display: none !important;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .hero-about .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-about .hero-content p {
        font-size: 0.95rem;
    }
    .imagen-grande {
        height: 180px;
    }
    .imagen-lado {
        height: 180px;
    }
    .mision-card h3 {
        font-size: 1.3rem;
    }
    .mision-icon-svg {
        width: 50px;
        height: 50px;
    }
    .modal {
        padding: 24px 16px;
    }
    .modal-header h3 {
        font-size: 1.2rem;
    }
}