@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --black-950: #05080c;
    --black-900: #0b1118;
    --black-850: #111a24;
    --black-800: #162230;
    --blue-700: #1f5f9e;
    --blue-600: #2c74b8;
    --blue-500: #3e8fdc;
    --ink-100: #e8eef6;
    --ink-200: #c7d5e3;
    --ink-400: #8ea4bc;
    --ink-500: #748ba3;
    --line-soft: rgba(143, 170, 197, 0.25);
    --glass: rgba(12, 21, 31, 0.74);
    --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.28);
    --shadow-strong: 0 20px 46px rgba(0, 0, 0, 0.42);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Barlow', sans-serif;
    line-height: 1.6;
    color: var(--ink-200);
    background:
        radial-gradient(circle at 12% 8%, rgba(62, 143, 220, 0.18), transparent 34%),
        radial-gradient(circle at 90% 12%, rgba(44, 116, 184, 0.16), transparent 38%),
        linear-gradient(180deg, #04070c 0%, #090f16 50%, #0d1620 100%);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.015em;
    color: var(--ink-100);
}

p, li, small, span {
    color: var(--ink-200);
}

section {
    position: relative;
}

.py-5 {
    padding-top: 5.5rem !important;
    padding-bottom: 5.5rem !important;
}

.text-primary {
    color: #8ac3ff !important;
}

.text-muted,
.lead.text-muted {
    color: var(--ink-400) !important;
}

.text-white {
    color: var(--ink-100) !important;
}

/* NAVBAR */
.navbar {
    background: linear-gradient(130deg, rgba(6, 12, 19, 0.92), rgba(14, 25, 36, 0.9)) !important;
    border-bottom: 1px solid var(--line-soft);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.45rem;
    color: var(--ink-100) !important;
}

.navbar-brand i {
    color: var(--blue-500);
}

.navbar-nav .nav-link {
    color: var(--ink-200) !important;
    font-weight: 600;
    margin: 0 0.3rem;
    padding: 0.54rem 0.78rem !important;
    border-radius: 999px;
    transition: all 0.22s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--ink-100) !important;
    background: rgba(62, 143, 220, 0.16);
    transform: translateY(-1px);
}

/* HERO */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(5, 8, 12, 0.84), rgba(10, 19, 29, 0.82)),
        url('https://images.unsplash.com/photo-1489515217757-5fd1be406fef?auto=format&fit=crop&w=1900&q=80') center/cover no-repeat;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 24%, rgba(62, 143, 220, 0.28), transparent 43%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.44));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.7rem);
    line-height: 1.06;
    margin-bottom: 1.25rem;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.46);
    animation: fadeInUp 0.85s ease both;
}

.hero-content .lead {
    font-size: clamp(1rem, 2.2vw, 1.24rem);
    max-width: 58ch;
    color: var(--ink-200) !important;
    animation: fadeInUp 0.95s ease 0.12s both;
}

.hero-image {
    position: relative;
    z-index: 2;
    animation: fadeInRight 1s ease 0.2s both;
}

.hero-image img {
    border-radius: 16px;
    border: 1px solid rgba(138, 195, 255, 0.24);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5);
    filter: saturate(0.92) contrast(1.06);
}

/* BUTTONS */
.btn {
    border-radius: 12px;
    padding: 0.82rem 1.42rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    transition: all 0.24s ease;
}

.btn-success {
    background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
    color: var(--ink-100) !important;
    box-shadow: 0 10px 24px rgba(31, 95, 158, 0.42);
    border-color: rgba(138, 195, 255, 0.2);
}

.btn-success:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
}

.btn-outline-light {
    border: 1px solid rgba(138, 195, 255, 0.6);
    color: var(--ink-100) !important;
    background: rgba(9, 16, 24, 0.44);
}

.btn-outline-light:hover {
    background: rgba(62, 143, 220, 0.18);
    transform: translateY(-2px);
}

.divider {
    width: 92px;
    height: 4px;
    border-radius: 999px;
    margin: 1rem auto;
    background: linear-gradient(90deg, #2d6eae, #7fbaf8);
}

/* SECTION THEMES */
#nosotros,
#servicios {
    background:
        linear-gradient(180deg, rgba(8, 14, 22, 0.78), rgba(9, 16, 24, 0.9)) !important;
}

#mision-vision,
#testimonios {
    background:
        radial-gradient(circle at 82% 12%, rgba(62, 143, 220, 0.15), transparent 42%),
        rgba(7, 13, 20, 0.88);
}

#contacto {
    background:
        linear-gradient(130deg, #08121d 0%, #0f1c2a 55%, #132638 100%) !important;
}

/* CARDS */
.stat-box,
.service-card,
.testimonial-card,
.mission-vision-card {
    background: var(--glass) !important;
    border: 1px solid var(--line-soft);
    border-radius: 16px !important;
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    backdrop-filter: blur(7px);
}

.stat-box {
    padding: 1.25rem;
}

.stat-box h3 {
    font-size: 2.25rem;
    margin-bottom: 0.2rem;
    color: #8ac3ff;
}

.service-card {
    border-top: 4px solid rgba(62, 143, 220, 0.78);
}

.service-card h4 {
    color: var(--ink-100);
}

.service-card ul li {
    padding: 0.3rem 0;
}

.service-card ul li i {
    color: #7bb7f6 !important;
}

.testimonial-card {
    border-left: 4px solid rgba(62, 143, 220, 0.78);
}

.mission-vision-card {
    color: var(--ink-100);
}

.mission-vision-card p,
.mission-vision-card h3,
.mission-vision-card i {
    color: var(--ink-100) !important;
}

.mission-vision-card.bg-primary {
    background: linear-gradient(150deg, rgba(15, 35, 53, 0.94), rgba(26, 70, 108, 0.82)) !important;
}

.mission-vision-card.bg-success {
    background: linear-gradient(150deg, rgba(16, 31, 46, 0.94), rgba(37, 92, 140, 0.82)) !important;
}

.stat-box:hover,
.service-card:hover,
.testimonial-card:hover,
.mission-vision-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(127, 186, 248, 0.46);
}

/* FORM */
#contactForm {
    border-radius: 18px !important;
    border: 1px solid var(--line-soft);
    background: rgba(10, 18, 27, 0.84) !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.36);
}

.form-control,
.form-select {
    border-radius: 11px;
    border: 1px solid rgba(138, 195, 255, 0.2);
    background: rgba(5, 10, 15, 0.62);
    color: var(--ink-100);
    padding: 0.74rem 0.9rem;
}

.form-control::placeholder {
    color: var(--ink-500);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(127, 186, 248, 0.72);
    box-shadow: 0 0 0 0.18rem rgba(62, 143, 220, 0.2);
    background: rgba(6, 11, 17, 0.82);
    color: var(--ink-100);
}

.form-label {
    color: var(--ink-200);
    font-weight: 700;
}

/* FLOATING */
.floating-buttons {
    position: fixed;
    bottom: 26px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-100);
    font-size: 1.35rem;
    text-decoration: none;
    border: 1px solid rgba(138, 195, 255, 0.24);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
    transition: all 0.22s ease;
}

.floating-btn.whatsapp {
    background: linear-gradient(145deg, #124270, #1f5f9e);
}

.floating-btn.facebook {
    background: linear-gradient(145deg, #173858, #22598d);
}

.floating-btn.tiktok {
    background: linear-gradient(145deg, #111823, #1a2636);
}

.floating-btn:hover {
    color: var(--ink-100);
    transform: scale(1.08) translateY(-2px);
}

/* FOOTER */
footer {
    background: linear-gradient(145deg, #070d14, #0d1722) !important;
    border-top: 1px solid rgba(138, 195, 255, 0.18);
}

footer,
footer *,
footer .text-white {
    color: var(--ink-200) !important;
}

footer a:hover {
    color: #9ccfff !important;
}

/* SCROLL TOP */
.scroll-top {
    position: fixed;
    bottom: 24px;
    left: 22px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1b4f81, #2d6eae);
    color: var(--ink-100);
    border: 1px solid rgba(138, 195, 255, 0.24);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    z-index: 999;
    box-shadow: var(--shadow-soft);
    transition: all 0.24s ease;
}

.scroll-top:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(232, 238, 246, 0.34);
    border-top-color: var(--ink-100);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 992px) {
    .py-5 {
        padding-top: 4.5rem !important;
        padding-bottom: 4.5rem !important;
    }

    .hero-section {
        padding-top: 5.5rem;
        padding-bottom: 3.5rem;
    }

    .floating-buttons {
        bottom: 20px;
        right: 16px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: clamp(1.85rem, 7vw, 2.55rem);
    }

    .hero-content .lead {
        font-size: 1rem;
    }

    .btn-lg {
        font-size: 0.92rem;
        padding: 0.72rem 1.08rem;
    }

    .service-card,
    .testimonial-card {
        margin-bottom: 0.8rem;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .py-5 {
        padding-top: 3.6rem !important;
        padding-bottom: 3.6rem !important;
    }

    .hero-section .min-vh-100 {
        min-height: auto !important;
    }

    .hero-content h1 {
        font-size: 1.68rem;
    }

    .divider {
        width: 74px;
    }

    .scroll-top {
        bottom: 18px;
        left: 12px;
        width: 44px;
        height: 44px;
    }
}
