/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f4f7fc;
    color: #0a1a2f;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.6s ease;
}

body.loaded {
    opacity: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    inset: 0;
    background: #0a1a2f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}
#preloader.hide {
    opacity: 0;
    pointer-events: none;
}
.loader-icon {
    font-size: 60px;
    color: #4a8fd8;
    animation: pulse-loader 1.2s infinite alternate;
}
.loader-bar {
    width: 120px;
    height: 4px;
    background: #1f3a5a;
    border-radius: 4px;
    margin-top: 20px;
    overflow: hidden;
}
.loader-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, #1f6ab0, #6ab0ff);
    border-radius: 4px;
    animation: loading 1.2s infinite;
}
@keyframes pulse-loader {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 1; }
}
@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

/* ===== HEADER ===== */
.header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 40, 100, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s;
}
.header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 20, 50, 0.08);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-placeholder {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0b2b5c, #1f6ab0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 40, 100, 0.25);
    transition: transform 0.3s;
}
.logo-placeholder:hover {
    transform: rotate(-6deg) scale(1.05);
}
.logo-placeholder i {
    font-size: 24px;
    color: #b3d6ff;
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0a2a4a, #1f6ab0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
    font-weight: 600;
}
.nav-links a {
    text-decoration: none;
    color: #1a3650;
    transition: 0.2s;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1f6ab0;
    transition: width 0.3s;
}
.nav-links a:hover {
    color: #1f6ab0;
}
.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #0a2a4a;
    border-radius: 3px;
    transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== HERO ===== */
.hero {
    padding: 80px 0 90px;
    background: linear-gradient(170deg, #e8f0fe 0%, #d4e4fa 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    right: -120px;
    top: -120px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(31, 106, 176, 0.07) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    left: -80px;
    bottom: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(31, 106, 176, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content .hero-badge {
    display: inline-block;
    background: rgba(31, 106, 176, 0.12);
    color: #1f6ab0;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 18px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0a1a2f;
    margin-bottom: 18px;
}
.hero-content h1 .highlight {
    background: linear-gradient(135deg, #1f6ab0, #3b9aff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
#heroTitle .cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: #1f6ab0;
    margin-left: 2px;
    animation: blink 0.8s step-end infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}

.hero-content p {
    font-size: 1.15rem;
    color: #2d4a6a;
    max-width: 480px;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1a4b8a, #2a7ad8);
    color: #fff;
    padding: 14px 34px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 24px rgba(31, 106, 176, 0.35);
    transition: 0.3s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(31, 106, 176, 0.45);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-icon-box {
    display: flex;
    gap: 30px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    padding: 40px 50px;
    border-radius: 60px;
    box-shadow: 0 20px 50px rgba(0, 20, 50, 0.08);
}
.hero-icon-box i {
    font-size: 48px;
    color: #1f6ab0;
    transition: 0.3s;
}
.hero-icon-box i:hover {
    transform: scale(1.2) rotate(6deg);
    color: #3b9aff;
}

/* ===== SECCIONES GENERALES ===== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-tag {
    display: inline-block;
    background: rgba(31, 106, 176, 0.10);
    color: #1f6ab0;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 2px;
    padding: 4px 18px;
    border-radius: 50px;
    text-transform: uppercase;
}
.section-header h2 {
    font-size: 2.6rem;
    font-weight: 800;
    color: #0a1a2f;
    margin-top: 6px;
}

/* ===== ANIMACIONES DE ENTRADA ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== QUIENES ===== */
.quienes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.quienes-text p {
    margin-bottom: 18px;
    font-size: 1.05rem;
    color: #1e3a5a;
}

.quienes-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-card {
    background: #fff;
    padding: 24px 28px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 20, 50, 0.06);
    border-left: 5px solid #1f6ab0;
    transition: 0.3s;
}
.value-card:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 30px rgba(0, 20, 50, 0.10);
}
.value-card i {
    color: #1f6ab0;
    font-size: 22px;
    margin-right: 10px;
}
.value-card h4 {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 700;
}
.value-card p {
    margin-top: 8px;
    color: #2d4a6a;
}

/* ===== VALORES ===== */
.valores {
    background: #fff;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.valor-item {
    text-align: center;
    padding: 32px 20px;
    background: #f8fbff;
    border-radius: 24px;
    transition: 0.3s;
    border: 1px solid rgba(31, 106, 176, 0.06);
}
.valor-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 40, 100, 0.08);
}
.valor-item i {
    font-size: 38px;
    color: #1f6ab0;
    margin-bottom: 14px;
}
.valor-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.valor-item p {
    font-size: 0.95rem;
    color: #3d5a7a;
}

.filosofia-text {
    background: linear-gradient(135deg, #e8f0fe, #dce8fa);
    padding: 36px 44px;
    border-radius: 28px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #0a2a4a;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.filosofia-text i {
    color: #1f6ab0;
    font-size: 20px;
    margin-right: 8px;
}

/* ===== ESTADÍSTICAS ===== */
.stats {
    background: linear-gradient(135deg, #0a1a2f, #1a3a5a);
    color: #fff;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-item {
    padding: 20px;
}
.stat-number {
    display: block;
    font-size: 3.2rem;
    font-weight: 800;
    color: #6ab0ff;
    line-height: 1.2;
}
.stat-label {
    font-size: 1rem;
    color: #b0cce8;
    font-weight: 400;
}

/* ===== SERVICIOS ===== */
.servicios {
    background: #f8fbff;
}

.servicio-block {
    background: #fff;
    padding: 32px 40px;
    border-radius: 28px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 20, 50, 0.04);
    border: 1px solid rgba(31, 106, 176, 0.06);
    transition: 0.3s;
}
.servicio-block:hover {
    box-shadow: 0 12px 40px rgba(0, 40, 100, 0.08);
    transform: translateY(-4px);
}
.servicio-block h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a2a4a;
    margin-bottom: 18px;
}
.servicio-block h3 i {
    color: #1f6ab0;
    margin-right: 12px;
}
.servicio-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 30px;
}
.servicio-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #1e3a5a;
}
.servicio-list li i {
    color: #1f6ab0;
    font-size: 0.9rem;
}

/* ===== CONTACTO ===== */
.contacto {
    background: #fff;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0a1a2f;
    margin-bottom: 16px;
}
.contact-info p {
    color: #2d4a6a;
    margin-bottom: 20px;
}
.contact-details p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.contact-details i {
    color: #1f6ab0;
    width: 24px;
}
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0a2a4a;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e8f0;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
    background: #f8fbff;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1f6ab0;
    box-shadow: 0 0 0 4px rgba(31, 106, 176, 0.10);
}
.contact-form button {
    width: 100%;
    justify-content: center;
}

/* ===== FOOTER ===== */
.footer {
    background: #0a1a2f;
    color: #c9dcee;
    padding: 50px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 12px;
}
.footer p {
    font-size: 0.95rem;
    margin-bottom: 6px;
}
.footer p i {
    width: 24px;
    color: #5a8fc9;
}
.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}
.social-icons a {
    color: #c9dcee;
    font-size: 20px;
    transition: 0.3s;
}
.social-icons a:hover {
    color: #fff;
    transform: translateY(-3px);
}
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    font-size: 0.85rem;
    color: #7a9abc;
}

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: #25D366;
    color: #fff;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: 0.3s;
    z-index: 999;
    animation: pulse-whatsapp 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 36px rgba(37, 211, 102, 0.5);
}
@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-float .tooltip {
    position: absolute;
    right: 76px;
    background: #0a1a2f;
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}
.whatsapp-float:hover .tooltip {
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content p {
        margin: 0 auto 30px;
    }
    .quienes-grid {
        grid-template-columns: 1fr;
    }
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .servicio-list {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 80px 30px;
        gap: 20px;
        transition: right 0.4s ease;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.08);
        align-items: flex-start;
    }
    .nav-links.open {
        right: 0;
    }
    .nav-links a {
        font-size: 1.2rem;
    }
    .hamburger {
        display: flex;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-icon-box {
        padding: 24px 30px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    .valores-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .stat-number {
        font-size: 2.4rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .whatsapp-float {
        width: 56px;
        height: 56px;
        font-size: 30px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float .tooltip {
        display: none;
    }
}