/* =========================
   VARIABLES / BASE
========================= */
:root {
    --c-teal: #0c9aa8;
    --c-navy: #0e2e54;
    --c-slate: #2f4146;
    --c-white: #ffffff;

    --bg: #f4f6f7;
    --text: #1a1f22;

    --container: 1120px;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, .18);
    --shadow-nav: 0 8px 24px rgba(0, 0, 0, .08);

    --radius-xl: 18px;
    --radius-lg: 14px;
    --radius-md: 12px;

    --nav-h: 86px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
}

html,
body {
    background: #0b0f14;
    /* base dark */
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
}

/* Helpers */
.container {
    width: min(var(--container), calc(100% - 44px));
    margin: 0 auto;
}

/* =========================
   NAV
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;

    background: #060c11;
    /* igual footer */
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

/* Línea glow abajo (como el footer pero en el borde inferior) */
.site-header::after {
    content: "";
    position: absolute;
    left: -30%;
    bottom: -1px;
    width: 160%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            rgba(12, 154, 168, .15),
            rgba(12, 154, 168, .85),
            rgba(12, 154, 168, .15),
            transparent);
    filter: drop-shadow(0 0 10px rgba(12, 154, 168, .45));
    opacity: .9;
}

.nav-row {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand__name {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: .5px;
    color: #ffffff;
    transition: color .25s ease;
}

.brand:hover .brand__name {
    color: #0c9aa8;
}

.brand__logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
    display: block;

    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .55)) drop-shadow(0 0 14px rgba(12, 154, 168, .18));
    transition: transform .25s ease, filter .25s ease;
}

.brand:hover .brand__logo {
    transform: translateY(-1px);
    filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .6)) drop-shadow(0 0 18px rgba(12, 154, 168, .30));
}

.nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 26px;
    padding-bottom: 6px;
    /* espacio para el underline */
}

.nav__link {
    position: relative;
    display: inline-flex;
    padding: 10px 2px;
    font-weight: 650;
    color: rgba(255, 255, 255, .86);
    text-decoration: none;
    letter-spacing: .2px;
    opacity: .92;
    transition: opacity .25s ease, color .25s ease;
}

.nav__link:hover {
    opacity: 1;
    color: #ffffff;
}

.nav__link.is-active {
    color: #ffffff;
    opacity: 1;
}

/* la línea que se mueve */
.nav__indicator {
    position: absolute;
    left: 0;
    bottom: 2px;
    height: 3px;
    width: 40px;
    background: #0c9aa8;
    /* fijo teal */
    border-radius: 999px;

    transform: translateX(var(--nav-x, 0px));
    transition: transform .28s ease, width .28s ease;
    will-change: transform, width;

    box-shadow: 0 0 16px rgba(12, 154, 168, .45);
}

/* =========================
   HAMBURGUESA
========================= */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

/* Hover hamburguesa */
.nav-toggle {
    position: relative;
    transition: transform .25s ease;
}

.nav-toggle:hover {
    transform: scale(1.05);
}

.nav-toggle:hover span {
    background: #0c9aa8;
}

/* Efecto glow sutil */
.nav-toggle::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 8px;
    background: radial-gradient(circle,
            rgba(12, 154, 168, .25),
            transparent 70%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.nav-toggle:hover::after {
    opacity: .8;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: #ffffff;
    transition: .3s ease;
}

@media (max-width: 900px) {

    .nav-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        right: 0;
        background: #060c11;
        flex-direction: column;
        gap: 18px;
        padding: 24px;
        width: 220px;
        border-left: 1px solid rgba(255, 255, 255, .06);
        box-shadow: -10px 20px 40px rgba(0, 0, 0, .45);
        transform: translateX(100%);
        transition: transform .3s ease;
    }

    .nav.is-open {
        transform: translateX(0);
    }

    .nav__indicator {
        display: none;
    }
}

/* =========================
   HERO (video background)
========================= */
.hero {
    position: relative;
    height: calc(100vh - var(--nav-h));
    min-height: 560px;
    overflow: hidden;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.85) contrast(1.05);
    transform: scale(1.02);
}

/* overlay */
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 700px at 50% 40%, rgba(0, 0, 0, .25), rgba(0, 0, 0, .65)),
        linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .60));
}

.hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    place-content: center;
    text-align: center;
    padding: 56px 0;
}

.hero__title {
    margin: 0 0 18px;
    font-size: clamp(44px, 5.5vw, 84px);
    line-height: 1.02;
    font-weight: 800;
    color: rgba(255, 255, 255, .92);
}

.hero__title--accent {
    color: var(--c-teal);
}

.hero__subtitle {
    margin: 0 auto 36px;
    max-width: 860px;
    font-size: clamp(16px, 2vw, 26px);
    line-height: 1.4;
    color: rgba(255, 255, 255, .86);
}

/* =========================
   BUTTON (borde animado)
========================= */
.btn {
    --btn-border: var(--c-teal);
    --btn-text: rgba(255, 255, 255, .92);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 44px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;

    color: var(--btn-text);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(4px);

    border: 2px solid rgba(12, 154, 168, .65);
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

/* “línea” moviéndose alrededor: conic-gradient rotando */
.btn--glow::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(from 0deg,
            transparent 0%,
            transparent 55%,
            rgba(12, 154, 168, .95) 70%,
            transparent 85%,
            transparent 100%);
    animation: spinBorder 1.6s linear infinite;
}

/* máscara para que quede solo como borde */
.btn--glow::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: rgba(0, 0, 0, .22);
}

/* que el texto quede arriba de las capas */
.btn--glow {
    isolation: isolate;
}

.btn--glow span,
.btn--glow {
    z-index: 1;
}

.btn--glow {
    /* para que el texto esté arriba de ::after */
}

.btn--glow {
    color: rgba(255, 255, 255, .92);
}

.btn--glow {
    /* capa de contenido */
}

.btn--glow {
    /* no-op: mantenemos claridad */
}

.btn--glow {
    /* ensure text is above pseudos */
}

.btn--glow {
    /* needed because ::after is above background */
}

.btn--glow {
    /* We'll set z-index for anchor text via position */
    position: relative;
}

.btn--glow {
    /* and raise stacking */
}

.btn--glow {
    /* final */
}

.btn--glow {
    /* content above pseudos */
}

.btn--glow {
    /* actual fix */
}

.btn--glow {
    /* place content */
}

.btn--glow {
    /* ok */
}

.btn--glow {
    /* We'll do: */
}

.btn--glow {
    /* nothing else */
}

.btn--glow {
    /* but set: */
}

.btn--glow {
    /*  */
}

.btn--glow {
    /* done below */
}

.btn--glow {
    /*  */
}

.btn--glow {
    /* Make anchor content sit above pseudos */
}

.btn--glow {
    /* We'll explicitly set */
}

.btn--glow {
    /* (no span needed, but fine) */
}

.btn--glow {
    z-index: 0;
}

.btn--glow {
    /* keep */
}

/* raise text */
.btn--glow {
    /* text above pseudo layers */
}

.btn--glow {
    /* by using */
}

.btn--glow {
    /*  */
}

.btn--glow {
    /*  */
}

.btn--glow {
    /*  */
}

.btn--glow {
    /*  */
}

/* This is the effective part: */
.btn--glow {
    position: relative;
}

.btn--glow {
    /* make link text above ::after */
}

.btn--glow {
    /* by placing a pseudo overlay behind it: */
}

.btn--glow {
    /* We'll just set: */
}

.btn--glow {
    /* and set pseudos z-index */
}

.btn--glow::before {
    z-index: -2;
}

.btn--glow::after {
    z-index: -1;
}

/* Hover: un toque más pro */
.btn:hover {
    transform: translateY(-1px);
    transition: transform .18s ease;
    border-color: rgba(12, 154, 168, .9);
}

/* =========================
   SECTIONS PLACEHOLDER
========================= */
.section {
    padding: 80px 0;
}

.section__title {
    margin: 0 0 12px;
    font-size: 34px;
    color: var(--c-navy);
}

.section__text {
    margin: 0;
    color: rgba(26, 31, 34, .78);
    font-size: 18px;
    line-height: 1.6;
}




/* ========================================
   SERVICIOS
======================================== */
:root {
    --card-bg: rgba(14, 46, 84, 0.18);
    /* azul navy translúcido */
    --card-border: rgba(12, 154, 168, 0.75);
    --card-border-soft: rgba(12, 154, 168, 0.45);
    --card-text: rgba(255, 255, 255, 0.90);
    --card-text-soft: rgba(255, 255, 255, 0.78);
}

/* contenedor general de sección */
.services {
    background: #0b1216;
    padding: 90px 0;
}

/* Títulos */
.services__title {
    margin: 0;
    text-align: center;
    font-size: clamp(44px, 5vw, 80px);
    line-height: 1;
    font-weight: 850;
    color: var(--c-teal);
}

.services__subtitle {
    margin: 14px auto 44px;
    text-align: center;
    max-width: 860px;
    font-size: clamp(16px, 2vw, 28px);
    color: rgba(255, 255, 255, 0.82);
}

/* Card base */
.service-card {
    position: relative;
    border-radius: 42px;
    padding: 52px 56px;
    border: 3px solid var(--card-border-soft);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.03),
            rgba(255, 255, 255, 0.01));
    color: var(--card-text);
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(0);
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
    text-align: left;
}

/* glow sutil */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .28s ease;

    /* halo suave */
    box-shadow:
        0 0 0 1px rgba(12, 154, 168, 0.25) inset,
        0 0 42px rgba(12, 154, 168, 0.22),
        0 0 90px rgba(12, 154, 168, 0.12);
}

/* brillo diagonal muy leve */
.service-card::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(12, 154, 168, 0.10) 40%,
            transparent 70%);
    transform: translateX(-18%) translateY(-8%);
    opacity: 0;
    transition: opacity .28s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-border);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    opacity: 1;
}

/* tipografía interna */
.service-card__title {
    margin: 0 0 10px;
    font-size: clamp(28px, 3vw, 46px);
    font-weight: 850;
    color: var(--c-teal);
}

.service-card__desc {
    margin: 0 0 22px;
    max-width: 980px;
    font-size: 18px;
    line-height: 1.55;
    color: var(--card-text-soft);
}

/* =========================
   SERVICIOS - Layout interno
========================= */

.service-card--spaced {
    margin-top: 56px;
}

.service-card__grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 34px;
    align-items: center;
}

/* Head: icon + title centrado */
.service-card__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 10px;
}

.service-card__icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .25));
}

/* Texto */
.service-card__desc {
    text-align: center;
    margin: 0 auto 22px;
    max-width: 980px;
}

/* Checks */
.service-card__checks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    font-size: 22px;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.92);
}

.service-card__checks li {
    position: relative;
    padding-left: 34px;
}

/* Check teal */
.service-card__checks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--c-teal);
    font-weight: 900;
    opacity: .95;
}

/* Bloques inferiores: ideal + beneficios */
.service-card__note {
    margin-top: 28px;
    display: grid;
    gap: 18px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 22px;
}

.note__row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.note__row p {
    margin: 0;
}

.note__bullet {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c-teal);
    font-weight: 900;
    opacity: .95;
    transform: translateY(2px);
}



/* =========================
   SERVICIOS 
========================= */
.service-card--spaced {
    margin-top: 56px;
}

/* Top centrado */
.service-card__top {
    text-align: center;
    margin-bottom: 26px;
}

.service-card__icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 10px;
    color: var(--c-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, filter .25s ease;
}

.service-card:hover .service-card__icon {
    transform: translateY(-3px) scale(1.05);
    filter: drop-shadow(0 0 16px rgba(12, 154, 168, .45));
}

.service-card__icon svg {
    width: 100%;
    height: 100%;
}

/* Párrafo top centrado */
.service-card__desc--top {
    text-align: center;
    max-width: 980px;
    margin: 0 auto;
}

/* Grid interno 2 columnas */
.service-card__grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 34px;
    align-items: center;
    margin-top: 26px;
}

.service-card__left {
    min-width: 0;
}

.service-card__right {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mockup */
.service-card__mockup {
    width: min(520px, 100%);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 34px rgba(0, 0, 0, .35));
    transform: rotate(-9deg);
    transition: transform .28s ease;
}

.service-card:hover .service-card__mockup {
    transform: rotate(-6deg) translateY(-2px);
}


/* =========================
  Confiaron en nosotros
========================= */

.trusted {
    background: #34414c;
    /* oscuro como el resto */
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}

/* sutil glow como HS */
.trusted::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%,
            rgba(12, 154, 168, .10),
            transparent 55%);
    pointer-events: none;
}

/* Título */
.trusted__title {
    margin: 0 0 26px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: center;

    /* si tus títulos usan clamp, esto queda pro */
    font-size: clamp(22px, 3vw, 34px);
}

/* Marquee */
.trusted__marquee {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

/* Pista en movimiento */
.trusted__track {
    display: flex;
    align-items: center;
    gap: 54px;
    width: max-content;
    animation: trustedMarquee 22s linear infinite;
}

/* pausa al hover */
.trusted__marquee:hover .trusted__track {
    animation-play-state: paused;
}

/* Logo */
.trusted__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 6px;
    border-radius: 14px;
    transition: transform .25s ease, filter .25s ease;
}

.trusted__logo img {
    height: 60px;
    width: auto;
    display: block;
    filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .35));
    opacity: .95;
    transition: transform .25s ease, filter .25s ease, opacity .25s ease;
}

/* Hover: crece y se ilumina */
.trusted__logo:hover img {
    transform: scale(1.08);
    opacity: 1;
    filter: drop-shadow(0 16px 34px rgba(0, 0, 0, .45)) drop-shadow(0 0 16px rgba(12, 154, 168, .20));
}

/* Animación infinita */
@keyframes trustedMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .trusted__track {
        animation: none;
    }
}

/* =========================
   NOSOTROS
========================= */
.about {
    padding: 120px 0;
    color: #fff;

    background:
        linear-gradient(rgba(8, 18, 24, 0.50),
            rgba(8, 18, 24, 0.50)),
        url("imagenes/fondo.nosotros.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


/* GRID POR ÁREAS:
   - título arriba a la derecha
   - texto abajo a la izquierda
   - values abajo a la derecha
*/
.about__layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    grid-template-areas:
        "title text"
        "values text";
    column-gap: 80px;
    row-gap: 34px;
    align-items: start;
    margin-bottom: 140px;
}

/* áreas */
.about__titleWrap {
    grid-area: title;
}

.about__text {
    grid-area: text;
}

.about__valuesWrap {
    grid-area: values;
}

/* TITULO */
.about__title {
    margin: 0;
    text-align: left;
    font-size: clamp(54px, 6vw, 92px);
    line-height: 0.95;
    font-weight: 900;
}

.about__title-line {
    display: block;
    /* 2 renglones */
}

.about__title-line--light {
    color: #fff;
    font-weight: 850;
}

.about__title-line--accent {
    color: var(--c-teal);
}

/* TEXTO */
.about__text {
    padding-top: 10px;
    /* lo baja un toque para que quede "debajo" del título */
}

.about__text p {
    margin: 0 0 22px;
    font-size: 20px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
    max-width: 700px;
}

/* VALUES abajo derecha */
.about__values {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
    text-align: left;
}

.about__values li {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 14px;
    align-items: start;
    justify-content: end;
}

.about__valuesWrap {
    justify-self: end;
    /* pega el bloque a la derecha */
    text-align: right;
    /* “sensación” de derecha */
    padding-top: 18px;
}

.about__icon {
    width: 26px;
    height: 26px;
    color: var(--c-teal);
    transform: translateY(3px);
}

.about__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .95;
}

/* RESPONSIVE */
@media (max-width: 980px) {
    .about__layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "text"
            "values";
        row-gap: 28px;
    }

    .about__title {
        text-align: left;
    }

    .about__valuesWrap {
        justify-self: start;
        text-align: left;
    }

    .about__text p {
        max-width: 100%;
    }
}


/* =========================
   PROCESO / METODOLOGÍA 
========================= */

.process {
    padding-top: 160px;
    padding: 110px 0 120px;
    color: #fff;
    background:
        linear-gradient(rgba(8, 18, 24, 0.50),
            rgba(8, 18, 24, 0.50)),
        url("imagenes/fondo.nosotros.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* fixed parallax */
.parallax-bg {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* Header */
.process__header {
    text-align: center;
    margin-bottom: 56px;
}

.process__title {
    margin: 0 0 16px;
    font-size: clamp(44px, 5.2vw, 84px);
    line-height: 1.05;
    font-weight: 900;
}

.process__title--light {
    color: rgba(255, 255, 255, .95);
}

.process__title--accent {
    color: var(--c-teal);
}

.process__subtitle {
    margin: 0;
    font-size: clamp(18px, 2.1vw, 28px);
    color: rgba(255, 255, 255, .88);
}

/* Grid */
.flip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 42px;
    align-items: stretch;
}

@media (max-width: 980px) {
    .flip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .flip-grid {
        grid-template-columns: 1fr;
    }
}

/* Flip Card base */
.flip-card {
    perspective: 1200px;
    height: 420px;
}

/* Inner rotates */
.flip-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 750ms ease;
}

/* Hover = flip (desktop) */
@media (hover:hover) {
    .flip-card:hover .flip-card__inner {
        transform: rotateX(180deg);
    }
}

/* Mobile tap (JS agrega .is-flipped) */
.flip-card.is-flipped .flip-card__inner {
    transform: rotateX(180deg);
}

/* Faces */
.flip-card__face {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    backface-visibility: hidden;
    overflow: hidden;

    border: 2px solid rgba(12, 154, 168, .40);
    background: rgba(0, 0, 0, .35);

    display: grid;
    place-items: center;
    padding: 34px 28px;

    transition: box-shadow 250ms ease, border-color 250ms ease, transform 250ms ease;
}

/* Glow sutil en hover */
@media (hover:hover) {
    .flip-card:hover .flip-card__face {
        border-color: rgba(12, 154, 168, .85);
        box-shadow: 0 0 26px rgba(12, 154, 168, .22);
    }
}

.flip-card.is-flipped .flip-card__face {
    border-color: rgba(12, 154, 168, .85);
    box-shadow: 0 0 26px rgba(12, 154, 168, .22);
}

/* Front layout */
.flip-card__front {
    transform: rotateX(0deg);
    gap: 14px;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.flip-card__badge {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: grid;
    place-items: center;

    font-size: 40px;
    font-weight: 900;
    color: rgba(255, 255, 255, .95);

    border: 3px solid rgba(12, 154, 168, .90);
    background: rgba(0, 0, 0, .35);
    box-shadow: 0 0 26px rgba(12, 154, 168, .18);
}

.flip-card__title {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
    color: rgba(255, 255, 255, .96);
}

/* Back face */
.flip-card__back {
    transform: rotateX(180deg);
    align-content: center;
    justify-items: center;
    text-align: center;
}

.flip-card__desc {
    margin: 0 0 18px;
    max-width: 340px;
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .88);
}

.flip-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    font-size: 18px;
    color: rgba(255, 255, 255, .92);
    text-align: left;
    justify-items: start;
}

.flip-card__list li {
    position: relative;
    padding-left: 14px;
}

.flip-card__list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--c-teal);
    opacity: .95;
}


@media (prefers-reduced-motion: reduce) {
    .flip-card {
        height: auto;
        perspective: none;
    }

    .flip-card__inner {
        transition: none;
        transform: none !important;
    }

    .flip-card__face {
        position: static;
        backface-visibility: visible;
    }

    .flip-card__back {
        margin-top: 16px;
        transform: none;
    }
}



/* =========================
   CONTACTO
========================= */

.contact {
    padding: 110px 0 120px;
    color: #fff;
    background: radial-gradient(circle at 20% 20%,
            rgba(12, 154, 168, 0.08),
            transparent 40%),
        radial-gradient(circle at 80% 70%,
            rgba(12, 154, 168, 0.06),
            transparent 40%),
        #0b0f14;
}

/* fixed parallax */
.parallax-bg {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
    }
}

.contact__header {
    text-align: center;
    margin-bottom: 48px;
}

.contact__title {
    margin: 0 0 14px;
    font-size: clamp(44px, 5.2vw, 78px);
    line-height: 1.05;
    font-weight: 900;
    color: var(--c-teal);
}

.contact__subtitle {
    margin: 0;
    font-size: clamp(18px, 2vw, 26px);
    color: rgba(255, 255, 255, .88);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 36px;
    align-items: start;
}

.contact__panel {
    border-radius: 28px;
    border: 2px solid rgba(12, 154, 168, .55);
    background: rgba(0, 0, 0, .35);
    box-shadow: 0 0 26px rgba(12, 154, 168, .12);
}

.contact__panel--form {
    padding: 26px 28px;
}

.contact__side {
    display: grid;
    gap: 26px;
}

/* Form */
.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 3px;
}

.field {
    display: grid;
    gap: 6px;
    margin-bottom: 4px;
}

.field__label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(12, 154, 168, .85);
}

.field:focus-within .field__label {
    color: #0c9aa8;
}

.field__control {
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(0, 0, 0, .30);
    color: rgba(255, 255, 255, .92);
    padding: 0 14px;
    outline: none;
    transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.field__control::placeholder {
    color: rgba(255, 255, 255, .45);
}

.field__control:focus {
    border-color: rgba(12, 154, 168, .95);
    box-shadow: 0 0 0 4px rgba(12, 154, 168, .18), 0 0 26px rgba(12, 154, 168, .18);
    background: rgba(0, 0, 0, .42);
}

.field__control--textarea {
    height: auto;
    padding: 14px;
    resize: vertical;
    min-height: 140px;
}

.select {
    position: relative;
}

.field__control--select {
    width: 100%;
    appearance: none;
    padding-right: 40px;
}

.select__chev {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, .75);
    pointer-events: none;
}

/* Validation states (se aplican desde JS) */
.field.is-invalid .field__control {
    border-color: rgba(255, 80, 80, .85);
    box-shadow: 0 0 0 4px rgba(255, 80, 80, .12);
}

.field.is-valid .field__control {
    border-color: rgba(12, 154, 168, .85);
}

.field__hint {
    min-height: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, .65);
}

.field.is-invalid .field__hint {
    color: rgba(255, 140, 140, .92);
}

/** ==============
Footer 
==================*/
.contact-form__footer {
    margin-top: 14px;
    display: grid;
    gap: 8px;
}

.contact__privacy {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, .72);
}

.contact__status {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, .82);
}

/* Buttons */
.btn {
    height: 50px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    transition: transform 150ms ease, box-shadow 200ms ease, filter 200ms ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: var(--c-navy);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08);
}

.btn--primary:hover {
    box-shadow: 0 0 26px rgba(12, 154, 168, .18);
}

.btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(12, 154, 168, .70);
    font-weight: 600;
}

.btn--outline:hover {
    box-shadow: 0 0 26px rgba(12, 154, 168, .16);
}

.btn--wa {
    width: 100%;
    background: rgba(12, 154, 168, .55);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .12);
    font-weight: 600;
}

.btn--wa:hover {
    box-shadow: 0 0 28px rgba(12, 154, 168, .22);
}

.btn__spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    display: none;
    animation: spin 700ms linear infinite;
}

.btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn__icon .icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    opacity: .95;
}

.is-loading .btn__spinner {
    display: inline-block;
}

.is-loading .btn__text {
    opacity: .85;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* WhatsApp card */
.contact__panel--wa {
    background: rgba(12, 154, 168, .55);
    border-color: rgba(12, 154, 168, .75);
    padding: 26px;
}

.wa__head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 10px;
}

.wa__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
}

.wa-logo {
    width: 32px;
    height: 32px;
    color: #fff;
}

.wa__title {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: #fff;
}

.wa__trust {
    margin: 4px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, .92);
}

.wa__text {
    margin: 12px 0 16px;
    color: rgba(255, 255, 255, .92);
    line-height: 1.55;
}

.wa__note {
    margin: 10px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .85);
}

/* Call card */
.contact__panel--call {
    padding: 26px;
}

.call__title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 600;
    color: rgba(255, 255, 255, .95);
}

.call__text {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .86);
    line-height: 1.6;
}

.call__items {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.call__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: rgba(255, 255, 255, .90);
    text-decoration: none;
}

.call__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c-teal);
    margin-top: 7px;
    box-shadow: 0 0 18px rgba(12, 154, 168, .25);
}

/* Responsive */
@media (max-width: 980px) {
    .contact__grid {
        grid-template-columns: 1fr;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
    }
}



/* =========================
   FOOTER
========================= */

.site-footer {
    background: #060c11;
    border-top: 1px solid rgba(12, 154, 168, .18);
    position: relative;
    overflow: hidden;
    padding: 14px 0 10px;
}

/* Línea animada */
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: -30%;
    width: 160%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            rgba(12, 154, 168, .15),
            rgba(12, 154, 168, .85),
            rgba(12, 154, 168, .15),
            transparent);
    filter: drop-shadow(0 0 10px rgba(12, 154, 168, .55));
    animation: footerGlow 5.5s linear infinite;
    opacity: .9;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    gap: 18px;
}

/* brand */

.footer__brand p {
    margin: 10px 0 0;
    color: #9aa6ad;
    font-size: 14px;
}

.footer__brand .footer__logo {
    height: 72px;
    width: auto;
    display: block;
    margin-bottom: 6px;
}

.footer__brand p {
    color: #9aa6ad;
    max-width: 320px;
    font-size: 14px;
    line-height: 1.6;
}

/* nav */

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__nav a {
    color: #cfd8dc;
    text-decoration: none;
    transition: .3s;
}

.footer__nav a:hover {
    color: #0c9aa8;
}

/* social */

.footer__social {
    display: flex;
    gap: 14px;
}

.footer__social a {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(12, 154, 168, .35);
    background: transparent;
    transition: all .3s ease;
}

/* Íconos outline (Instagram / Mail) */
.footer__social svg:not(.wa-icon) {
    width: 20px;
    height: 20px;
    stroke: #0c9aa8;
    fill: none;
    stroke-width: 2;
}

/* WhatsApp original */
.footer__social svg.wa-icon {
    width: 20px;
    height: 20px;
    stroke: none;
    fill: #0c9aa8 !important;
}

.footer__social svg.wa-icon {
    color: #0c9aa8;
}

/* Hover solo para íconos outline */
.footer__social a:hover svg:not(.wa-icon) {
    stroke: #fff;
}

/* Hover específico WhatsApp (filled) */
.footer__social a:hover svg.wa-icon,
.footer__social a:hover svg.wa-icon path {
    fill: #fff !important;
    stroke: none !important;
}

.footer__social a:hover {
    background: #0c9aa8;
    border-color: #0c9aa8;
    transform: translateY(-3px);
    box-shadow: 0 0 14px rgba(12, 154, 168, .45);
}




/* bottom */
.footer__bottom {
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    color: #7b8a92;
    border-top: 1px solid rgba(255, 255, 255, .05);
}

.footer__logo {
    height: 90px;
    width: auto;
    display: block;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .6));
    transition: transform .35s ease, filter .35s ease;
}

/* Logo footer */
.footer__logoLink {
    display: inline-block;
    position: relative;
    padding: 6px;
    border-radius: 999px;
}

.footer__logoLink::after {
    content: "";
    position: absolute;
    inset: -18px;
    border-radius: 999px;
    background: radial-gradient(circle,
            rgba(12, 154, 168, .22),
            transparent 60%);
    filter: blur(16px);
    opacity: .65;
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease;
}



/* Hover tech sutil */
.footer__logoLink:hover::after {
    opacity: .95;
    transform: scale(1.05);
}

.footer__logoLink:hover .footer__logo {
    transform: translateY(-2px);
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .6)) drop-shadow(0 0 18px rgba(12, 154, 168, .18));
}









@media (max-width:900px) {
    .footer {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding: 10px 0;
    }

    .footer__brand p {
        margin: 0 auto;
    }

    .footer__social {
        justify-content: center;
    }
}









/* =========================
   ANIMATIONS
========================= */
@keyframes spinBorder {
    to {
        transform: rotate(360deg);
    }
}

/* =========================
   RESPONSIVE
    ========================= */
@media (max-width: 820px) {
    .nav {
        gap: 16px;
    }

    .nav__link {
        font-size: 15px;
    }

    .brand__logo {
        width: 48px;
        height: 48px;
    }

    .btn {
        padding: 14px 34px;
        font-size: 18px;
    }
}

@media (max-width: 560px) {
    .nav {
        gap: 12px;
    }

    .nav__link {
        padding: 8px 2px;
    }

    .hero {
        min-height: 620px;
    }
}

/* Responsive */
@media (max-width: 980px) {
    .service-card__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card__checks {
        font-size: 18px;
    }

    .service-card__note {
        font-size: 18px;
    }

    .service-card__desc {
        font-size: 16px;
    }

    .service-card__head {
        justify-content: center;
    }

    .service-card__right {
        order: 2;
    }
}

/* Responsive padding para no romper en mobile */
@media (max-width: 860px) {
    .service-card {
        padding: 34px 22px;
        border-radius: 28px;
    }
}