
:root {
    --background: #080d15;
    --surface: rgba(12, 22, 35, .52);
    --blue: #4da3ff;
    --text: #edf4fc;
    --muted: #aabbd0;
    --border: rgba(180, 205, 232, .18);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    min-height: 100vh;
    background: #030405;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
    isolation: isolate;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1180px, 90%);
    margin: auto;
}

/* =====================================================
   VIDEO CINEMATOGRÁFICO DE FONDO
===================================================== */

#background-video {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: grayscale(100%) brightness(.68) contrast(1.12);
    transform: scale(1.06);
    pointer-events: none;
}

.background-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background:
        radial-gradient(
            ellipse at 50% 38%,
            rgba(7, 15, 25, .12) 0%,
            rgba(3, 6, 10, .35) 55%,
            rgba(2, 4, 7, .65) 100%
        ),
        linear-gradient(
            180deg,
            rgba(3, 7, 12, .38),
            rgba(5, 12, 21, .48) 48%,
            rgba(3, 6, 10, .68)
        );
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background: radial-gradient(
        ellipse at center,
        transparent 45%,
        rgba(0, 0, 0, .16) 100%
    );
}

/* =====================================================
   ENCABEZADO
===================================================== */

header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(4, 9, 15, .52);

    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);

    border-bottom: 1px solid rgba(190, 215, 240, .14);

    box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
}

.navbar {
    min-height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-image {
    display: block;
    width: auto;
    height: 59px;
    max-width: 230px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: #d0dceb;
    font-size: 13px;
    transition: .25s;
}

.nav-links a:hover {
    color: #8bc8ff;
}

.nav-cta {
    padding: 12px 18px;
    border: 1px solid rgba(77, 163, 255, .58);
    border-radius: 7px;
    color: #a7d4ff !important;
    background: rgba(20, 66, 108, .20);
}

/* =====================================================
   PORTADA
===================================================== */

.hero {
    position: relative;
    z-index: 2;

    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;

    background: linear-gradient(
        115deg,
        rgba(3, 8, 14, .25),
        rgba(5, 16, 28, .16)
    );

    border-bottom: 1px solid rgba(180, 205, 232, .10);
}

.hero::before {
    content: "";
    position: absolute;

    width: 520px;
    height: 520px;

    border: 1px solid rgba(120, 185, 240, .15);
    border-radius: 50%;

    right: -100px;
    top: 60px;

    box-shadow:
        0 0 100px rgba(77, 163, 255, .10),
        inset 0 0 80px rgba(77, 163, 255, .05);
}

.hero::after {
    content: "";
    position: absolute;

    width: 380px;
    height: 380px;

    border: 1px solid rgba(120, 185, 240, .12);
    border-radius: 50%;

    right: -30px;
    top: 130px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 100px 0;
}

.eyebrow {
    display: inline-block;
    color: #83c3ff;
    font-size: 12px;
    letter-spacing: 4px;
    font-weight: bold;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.08;
    letter-spacing: -2px;
    margin-bottom: 28px;
    text-shadow: 0 3px 24px rgba(0, 0, 0, .5);
}

.hero h1 span {
    color: #70b8ff;
}

.hero-description {
    max-width: 650px;
    font-size: 17px;
    line-height: 1.9;
    color: #c0cede;
    margin-bottom: 35px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    padding: 15px 23px;

    border-radius: 7px;

    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;

    transition: .25s;
}

.btn-primary {
    background: linear-gradient(110deg, #287bd0, #4da3ff);
    color: white;

    border: 1px solid rgba(160, 210, 255, .35);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255, 255, 255, .22);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(39, 123, 208, .32);
}

.btn-outline {
    border: 1px solid rgba(190, 215, 240, .35);
    color: #e0edfa;
    background: rgba(5, 12, 20, .24);

    backdrop-filter: blur(12px);
}

.btn-outline:hover {
    border-color: var(--blue);
    color: #8bc8ff;
    background: rgba(20, 55, 88, .25);
}

/* =====================================================
   IDENTIDAD
===================================================== */

.identity {
    position: relative;
    z-index: 2;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    background: rgba(5, 12, 20, .48);

    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

    padding: 27px 0;
}

.identity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.identity-item {
    text-align: center;
    color: #c0cede;
    font-size: 12px;
    letter-spacing: 2px;
}

.identity-item strong {
    display: block;
    color: #83c3ff;
    font-size: 13px;
    margin-bottom: 7px;
}

/* =====================================================
   SECCIONES
===================================================== */

section.content-section {
    position: relative;
    z-index: 2;

    padding: 95px 0;

    background: rgba(4, 10, 17, .16);
}

.section-label {
    color: #83c3ff;
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: bold;
    margin-bottom: 17px;
}

.section-title {
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .4);
}

.section-description {
    max-width: 730px;
    color: #bac9d9;
    font-size: 15px;
    line-height: 1.9;
}

/* =====================================================
   PERFIL
===================================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 65px;
    align-items: center;
}

.about-text p {
    color: #bac9d9;
    font-size: 15px;
    line-height: 2;
    margin-bottom: 20px;
}

.about-panel {
    position: relative;
    overflow: hidden;

    padding: 35px;

    border: 1px solid rgba(190, 215, 240, .20);
    border-radius: 15px;

    background: linear-gradient(
        135deg,
        rgba(17, 32, 49, .52),
        rgba(5, 12, 21, .42)
    );

    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);

    box-shadow:
        0 16px 45px rgba(0, 0, 0, .24),
        inset 0 1px 0 rgba(255, 255, 255, .08);
}

.about-panel::before,
.service-card::before,
.experience-item::before,
.article-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, .055),
        transparent 38%,
        rgba(101, 190, 255, .025)
    );
}

.about-panel .number {
    color: #70b8ff;
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 5px;
}

.about-panel h3 {
    font-size: 17px;
    margin-bottom: 18px;
}

.about-panel p {
    color: #bac9d9;
    font-size: 13px;
    line-height: 1.8;
}

/* =====================================================
   SERVICIOS
===================================================== */

.services-section {
    background: rgba(5, 12, 20, .30) !important;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 45px;
}

.service-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: block;

    padding: 28px 23px;

    border: 1px solid rgba(190, 215, 240, .18);
    border-radius: 12px;

    background: linear-gradient(
        145deg,
        rgba(20, 35, 53, .52),
        rgba(5, 12, 21, .46)
    );

    -webkit-backdrop-filter: blur(17px);
    backdrop-filter: blur(17px);

    box-shadow:
        0 12px 32px rgba(0, 0, 0, .18),
        inset 0 1px 0 rgba(255, 255, 255, .06);

    transition:
        transform .3s,
        border-color .3s,
        box-shadow .3s;

    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(101, 185, 255, .65);

    box-shadow:
        0 18px 38px rgba(0, 0, 0, .30),
        0 0 25px rgba(77, 163, 255, .10);
}

.service-icon {
    position: relative;
    z-index: 1;

    width: 48px;
    height: 48px;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(77, 163, 255, .16);
    border: 1px solid rgba(120, 190, 255, .16);

    color: #8bc8ff;
    font-size: 23px;

    margin-bottom: 25px;
}

.service-card h3,
.service-card p,
.service-card .card-link {
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 17px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.service-card p {
    color: #bac9d9;
    font-size: 13px;
    line-height: 1.8;
}

.service-card .card-link {
    display: inline-block;
    margin-top: 20px;
    color: #83c3ff;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* =====================================================
   EXPERIENCIA
===================================================== */

.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 40px;
}

.experience-item {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding: 25px;

    background: rgba(12, 23, 36, .48);

    border: 1px solid rgba(190, 215, 240, .16);
    border-left: 2px solid #4da3ff;

    border-radius: 5px 12px 12px 5px;

    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

    box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
}

.experience-item h3,
.experience-item p {
    position: relative;
    z-index: 1;
}

.experience-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.experience-item p {
    color: #bac9d9;
    font-size: 13px;
    line-height: 1.8;
}

.experience-access {
    display: inline-flex;
    margin-top: 30px;
}

/* =====================================================
   ARTÍCULOS
===================================================== */

.articles-section {
    background: rgba(5, 12, 20, .32) !important;
    border-top: 1px solid var(--border);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 23px;
    margin-top: 42px;
}

.article-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    background: rgba(13, 25, 39, .52);

    border: 1px solid rgba(190, 215, 240, .17);
    border-radius: 12px;

    transition: .3s;

    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

    box-shadow: 0 12px 32px rgba(0, 0, 0, .20);
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: rgba(77, 163, 255, .75);

    box-shadow: 0 18px 38px rgba(0, 0, 0, .30);
}

.article-cover {
    width: 100%;
    height: 195px;
    display: block;
    object-fit: cover;
    background: #17283b;
}

.article-placeholder {
    height: 195px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        rgba(16, 36, 58, .92),
        rgba(26, 57, 90, .88)
    );

    color: #83c3ff;
    font-size: 35px;
    font-weight: 900;
}

.article-body {
    position: relative;
    z-index: 1;
    padding: 23px;
}

.article-date {
    color: #8bc5f8;
    font-size: 11px;
    letter-spacing: 1px;
}

.article-body h3 {
    font-size: 18px;
    line-height: 1.45;
    margin: 13px 0;
}

.article-body p {
    color: #bac9d9;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.article-link {
    color: #83c3ff;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.all-articles {
    text-align: center;
    margin-top: 40px;
}

/* =====================================================
   CONTACTO
===================================================== */

.contact-section {
    text-align: center;

    background:
        radial-gradient(
            ellipse at 50% 100%,
            rgba(35, 110, 180, .16),
            transparent 60%
        ),
        rgba(5, 12, 20, .30) !important;
}

.contact-section .section-description {
    margin: 0 auto 30px;
}

/* =====================================================
   PIE DE PÁGINA
===================================================== */

footer {
    position: relative;
    z-index: 2;

    padding: 35px 0;

    border-top: 1px solid var(--border);

    background: rgba(3, 7, 12, .65);

    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    display: block;
    width: auto;
    height: 52px;
    max-width: 210px;
    object-fit: contain;
}

.footer-text {
    color: #9aadc3;
    font-size: 11px;
    line-height: 1.8;
    text-align: right;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media(max-width:950px) {

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        gap: 30px;
    }
}

@media(max-width:700px) {

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 0;
    }

    .logo-image {
        height: 52px;
        max-width: 200px;
    }

    .nav-links {
        width: 100%;
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .hero {
        min-height: 570px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 15px;
    }

    .identity-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    section.content-section {
        padding: 70px 0;
    }

    .about-grid,
    .services-grid,
    .experience-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-text {
        text-align: left;
    }

    #background-video {
        transform: scale(1.18);
        object-position: center center;
        filter: grayscale(100%) brightness(.70) contrast(1.10);
    }
}

/* =====================================================
   ACCESIBILIDAD
===================================================== */

@media(prefers-reduced-motion:reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
