/* ============================================================
   tehagotupagina.com — Estilos (diseño premium, dark/light)
   ============================================================ */

/* ===== TOKENS ===== */
:root {
    --bg-dark: #05070d;
    --bg-dark-2: #0a0e1a;
    --bg-dark-3: #101627;
    --bg-light: #f5f7fb;
    --bg-white: #ffffff;
    --ink: #000000;
    --ink-soft: #3c4a5e;
    --muted: #000;
    --muted-2: #8a97ab;
    --line: rgba(15, 22, 38, 0.1);
    --line-dark: rgba(255, 255, 255, 0.1);
    --violet: #7c5cff;
    --indigo: #4f46e5;
    --cyan: #22d3ee;
    --mint: #34e6c3;
    --grad: linear-gradient(92deg, #7c5cff 0%, #4f46e5 55%, #3b82f6 100%);
    --grad-soft: linear-gradient(92deg, #818cf8, #a5b4fc);
    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 10px rgba(15, 22, 38, 0.05);
    --shadow: 0 18px 46px rgba(15, 22, 38, 0.12);
    --shadow-lg: 0 30px 70px rgba(15, 22, 38, 0.18);
    --header-h: 72px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.7;
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

::selection { background: var(--violet); color: #fff; }

.container { width: min(92%, 1180px); margin-inline: auto; }

.section { padding: 6rem 0; }
.section--dark { background: var(--bg-dark); color: #ffffff; }

.section__head { text-align: center; max-width: 620px; margin: 0 auto 3.4rem; }

.section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--violet);
    background: rgba(124, 92, 255, 0.09);
    border: 1px solid rgba(124, 92, 255, 0.18);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
}
.section__eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }

.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4.2vw, 2.9rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 0.9rem;
}

.section--dark .section__title { color: #ffffff; }

.section__title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.section__subtitle { color: var(--muted); font-size: 1.3rem; }
.section--dark .section__subtitle { color: #ffffff; }

/* ===== BOTONES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.82rem 1.75rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: -0.01em;
    border: none;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
    text-align: center;
    white-space: nowrap;
}

.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(79, 70, 229, 0.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(79, 70, 229, 0.45); }

.btn--light { background: #fff; color: var(--ink); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32); }

.btn--ghost { background: rgba(255, 255, 255, 0.06); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; transform: translateY(-2px); }

.btn--lg { padding: 1rem 2.3rem; font-size: 1rem; }

.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: rgba(5, 7, 13, 0.66);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled { background: rgba(5, 7, 13, 0.92); border-bottom-color: var(--line-dark); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); }

.header__container { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; height: 100%; }

.logo {
    font-family: var(--font-display);
    font-size: 1.14rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #ffffff;
    white-space: nowrap;
}

.logo__dot { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: 0.2rem; }

.nav__link {
    display: inline-block;
    padding: 0.55rem 0.95rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav__link.active-link { color: #fff; background: rgba(255, 255, 255, 0.1); }

.nav__link--btn { background: var(--grad); color: #fff !important; padding: 0.6rem 1.25rem; }
.nav__link--btn:hover { opacity: 0.92; transform: translateY(-1px); }

.nav__toggle, .nav__close { display: none; background: none; border: none; }
.nav__toggle { flex-direction: column; gap: 5px; padding: 0.4rem; }
.nav__toggle-span { display: block; width: 25px; height: 2px; background: #e7ecf4; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }

/* Buscador */
.buscador { position: relative; display: flex; align-items: center; max-width: 250px; flex: 0 1 auto; }
.buscador__icon { position: absolute; left: 13px; color: var(--muted-2); pointer-events: none; z-index: 1; }

#buscadorInput {
    width: 100%;
    padding: 0.58rem 0.95rem 0.58rem 2.4rem;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    font-size: 0.87rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#buscadorInput::placeholder { color: #8a97ab; }
#buscadorInput:focus { background: rgba(255, 255, 255, 0.1); border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.18); }

.buscador__resultados {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    background: #121828;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1200;
    display: none;
    padding: 0.4rem;
}

.buscador__resultados.activo { display: block; animation: fadeUp 0.22s ease; }

.buscador__item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    font-size: 0.88rem;
    color: #ffffff;
    transition: background 0.2s ease;
}

.buscador__item:hover, .buscador__item:focus { background: rgba(124, 92, 255, 0.16); outline: none; }
.buscador__item svg { color: var(--violet); flex-shrink: 0; }

.buscador__tipo { display: block; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.09em; color: #ffffff; }

.buscador__empty { padding: 0.9rem; text-align: center; color: #ffffff; font-size: 0.88rem; }

/* ===== HERO / SLIDER ===== */
.hero { height: 100vh; min-height: 620px; position: relative; }

.slider { position: relative; height: 100%; overflow: hidden; }
.slider__track { display: flex; height: 100%; transition: transform 0.75s var(--ease); }

.slide { flex: 0 0 100%; width: 100%; height: 100%; position: relative; display: flex; align-items: center; overflow: hidden; }

.slide__media {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transform: scale(1.06);
    transition: transform 7s linear;
}
.slide--active .slide__media { transform: scale(1); }

.slide__shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(100deg, rgba(5, 7, 13, 0.92) 0%, rgba(5, 7, 13, 0.72) 38%, rgba(5, 7, 13, 0.35) 72%, rgba(5, 7, 13, 0.25) 100%),
        radial-gradient(120% 120% at 15% 10%, rgba(124, 92, 255, 0.16), transparent 50%);
}

/* Aura decorativa */
.slide__decor { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; pointer-events: none; }
.slide__decor--1 { width: 460px; height: 460px; top: -140px; right: -90px; background: radial-gradient(circle, rgba(124, 92, 255, 0.5), transparent 70%); }
.slide__decor--2 { width: 380px; height: 380px; bottom: -160px; left: 12%; background: radial-gradient(circle, rgba(34, 211, 238, 0.3), transparent 70%); }

.slide__inner { position: relative; z-index: 2; }
.slide__content { max-width: 640px; color: #fff; }

.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0.45rem 1.05rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(6px);
}

.hero__tag em { font-style: normal; color: var(--cyan); font-weight: 700; }

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.6vw, 4.1rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.035em;
    margin-bottom: 1.2rem;
    text-wrap: balance;
}

.hero__title span { background: linear-gradient(96deg, #a5b4fc, #7c5cff 45%, #34e6c3); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.hero__subtitle { font-size: clamp(1rem, 1.9vw, 1.16rem); color: #ffffff; max-width: 500px; margin-bottom: 2rem; }

.hero__cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* Animación de entrada por slide */
.slide .hero__tag, .slide .hero__title, .slide .hero__subtitle, .slide .hero__cta {
    opacity: 0;
    transform: translateY(30px);
}

.slide--active .hero__tag { animation: rise 0.7s 0.2s var(--ease) forwards; }
.slide--active .hero__title { animation: rise 0.7s 0.32s var(--ease) forwards; }
.slide--active .hero__subtitle { animation: rise 0.7s 0.44s var(--ease) forwards; }
.slide--active .hero__cta { animation: rise 0.7s 0.56s var(--ease) forwards; }

@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Controles */
.slider__dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.55rem;
    z-index: 5;
}

.slider__dot {
    width: 8px; height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 0;
    transition: all 0.3s var(--ease);
}

.slider__dot.activo { width: 30px; background: var(--grad); }

.slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.slider__btn:hover { background: #fff; color: var(--ink); transform: translateY(-50%) scale(1.06); }
.slider__btn--prev { left: 22px; }
.slider__btn--next { right: 22px; }

/* ===== MARQUEE ===== */
.marquee {
    background: var(--bg-dark);
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    padding: 1rem 0;
    overflow: hidden;
    position: relative;
}

.marquee__track {
    display: flex;
    gap: 1.6rem;
    white-space: nowrap;
    width: max-content;
    animation: scrollX 26s linear infinite;
}

.marquee__track span {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
}

.marquee__track span:nth-child(even) { color: var(--violet); }

@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== CIFRAS ===== */
.cifras { padding: 3.2rem 0; background: var(--bg-light); }
.cifras__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }

.cifra { text-align: center; padding: 0.4rem 0.5rem; }
.cifra strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.cifra span { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.02em; }

/* ===== SERVICIOS ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.card {
    position: relative;
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.2rem 1.9rem 1.9rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}

.card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease);
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(124, 92, 255, 0.3); }
.card:hover::after { transform: scaleX(1); }

.card__num {
    position: absolute;
    top: 1.3rem; right: 1.5rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--line);
    -webkit-text-stroke: 0.5px #b7c1d4;
}

.card__icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(34, 211, 238, 0.1));
    border: 1px solid rgba(124, 92, 255, 0.2);
    color: var(--violet);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.card:hover .card__icon { background: var(--grad); color: #fff; border-color: transparent; }

.card__title { font-family: var(--font-display); font-size: 1.13rem; font-weight: 700; color: var(--ink); margin-bottom: 0.55rem; letter-spacing: -0.02em; }

.card__text { font-size: 1.2rem; color: var(--muted); line-height: 1.8rem; margin-bottom: 1.3rem; flex-grow: 1; }

.card__link {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--violet);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.25s ease, color 0.2s ease;
}

.card__link:hover { gap: 0.7rem; color: var(--indigo); }

/* ===== TABS / GALERÍA ===== */
.tabs { display: flex; justify-content: center; gap: 0.55rem; margin-bottom: 2.6rem; flex-wrap: wrap; }

.tabs__item {
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-dark);
    color: #aab4c9;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.tabs__item:hover { color: #fff; border-color: rgba(124, 92, 255, 0.6); }

.tabs__item.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 22px rgba(79, 70, 229, 0.35); }

.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.galeria__item {
    position: relative;
    height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--bg-dark-3);
    cursor: pointer;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.galeria__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.galeria__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), opacity 0.3s ease; }
.galeria__item:hover .galeria__img { transform: scale(1.07); }

.galeria__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 7, 13, 0.08) 42%, rgba(5, 7, 13, 0.75) 100%); }

.galeria__cap { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; padding: 1.4rem 1.4rem 1.5rem; color: #fff; }

.galeria__tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--grad);
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.galeria__names {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.galeria__item.hidden { display: none; }

/* ===== PORTAFOLIO ===== */
.portafolio { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.portafolio__item {
    position: relative;
    height: 280px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.portafolio__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.portafolio__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), opacity 0.3s ease; }
.portafolio__item:hover .portafolio__img { transform: scale(1.06); }

.portafolio__logos {
    position: absolute; inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    padding: 0 1.2rem;
    background:
        radial-gradient(130% 130% at 50% 0%, rgba(124, 92, 255, 0.16), transparent 62%),
        var(--bg-dark-3);
}

.portafolio__logos img {
    height: 58px;
    width: auto;
    max-width: 40%;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
    transition: transform 0.35s var(--ease);
}

.portafolio__logos--pair { display: flex; align-items: center; justify-content: center; gap: 1.6rem; width: 100%; }
.portafolio__logos--pair img { height: 58px; max-width: 40%; }

.portafolio__item:hover .portafolio__logos img { transform: translateY(-4px); }

.portafolio__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 7, 13, 0.05) 38%, rgba(5, 7, 13, 0.78) 100%); }

.portafolio__num {
    position: absolute;
    top: 1.2rem; right: 1.4rem;
    z-index: 2;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.portafolio__cap {
    position: absolute;
    bottom: 1.4rem; left: 1.4rem; right: 1.4rem;
    z-index: 2;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.portafolio__tag {
    align-self: flex-start;
    font-family: var(--font-display);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(4px);
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
}

.portafolio__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }

/* ===== NOSOTROS ===== */
.nosotros { display: grid; grid-template-columns: 1fr 1fr; gap: 3.6rem; align-items: center; }

.nosotros__media { position: relative; }

.nosotros__img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.nosotros__badge {
    position: absolute;
    left: -1.2rem; bottom: -1.4rem;
    background: var(--bg-dark-3);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.4rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.nosotros__badge strong { display: block; font-family: var(--font-display); font-size: 1rem; color: #ffffff; }
.nosotros__badge span { font-size: 0.8rem; color: #ffffff; }

.nosotros__text .section__title { text-align: left; }
.nosotros__text > p { color: #ffffff; margin-bottom: 1rem; font-size: 1.1rem; }
.nosotros__text > p strong { color: #ffffff; }

.nosotros__list { margin: 1.5rem 0 1.9rem; display: grid; gap: 0.65rem; }
.nosotros__list li { display: flex; gap: 0.7rem; font-size: 1.1rem; color: #ffffff; }
.nosotros__list li span { color: var(--cyan); font-weight: 700; }

/* ===== CONTACTO ===== */
.contacto { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 1.8rem; align-items: stretch; }

.form {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.4rem;
    box-shadow: var(--shadow);
    display: grid;
    gap: 0.85rem;
}

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }

.form__grupo { display: flex; flex-direction: column; gap: 0.25rem; }

.form__grupo label { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--ink); }

.form__grupo input,
.form__grupo textarea,
.form__grupo select {
    padding: 0.7rem 0.8rem;
    border: 1.5px solid #999;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    color: var(--ink);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    resize: vertical;
    width: 100%;
}

.form__grupo input::placeholder, .form__grupo textarea::placeholder { color: #9aa7bb; }

.form__grupo input:focus,
.form__grupo textarea:focus,
.form__grupo select:focus {
    outline: none;
    background: #fff;
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.14);
}

.form__grupo input.error,
.form__grupo textarea.error,
.form__grupo select.error { border-color: #ef4444; background: #fef2f2; }

.form__error { color: #dc2626; font-size: 0.74rem; min-height: 0.75rem; }

.form__mensaje { font-size: 0.88rem; font-weight: 600; min-height: 1rem; }
.form__mensaje.exito { color: #059669; }
.form__mensaje.error { color: #dc2626; }

.honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 1px; width: 1px; overflow: hidden; }

.info {
    background: var(--bg-dark-2);
    border: 1px solid var(--line-dark);
    color: #ffffff;
    border-radius: 20px;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.info::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; top: -110px; right: -110px; background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 70%); }

.info h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; position: relative; z-index: 1; }

.info__list { display: grid; gap: 1.3rem; position: relative; z-index: 1; }
.info__list li { display: flex; gap: 1rem; align-items: flex-start; }

.info__icon {
    flex-shrink: 0;
    width: 46px; height: 46px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line-dark);
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info__list li strong { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: #ffffff; margin-bottom: 0.15rem; }
.info__list li a, .info__list li span { color: #ffffff; font-weight: 500; font-size: 0.95rem; transition: color 0.2s ease; }
.info__list li a:hover { color: var(--cyan); }

.info__note { font-size: 0.85rem; color: #ffffff; border-top: 1px solid var(--line-dark); padding-top: 1.2rem; position: relative; z-index: 1; margin-top: auto; }

/* ===== CTA ===== */
.cta {
    background: var(--grad);
    padding: 4.6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.cta::before { width: 320px; height: 320px; top: -140px; left: -100px; }
.cta::after { width: 280px; height: 280px; bottom: -120px; right: -80px; }

.cta__container { position: relative; z-index: 1; }
.cta__title { color: #fff; font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 0.8rem; }
.cta__text { font-size: 1.3rem; color: rgba(255, 255, 255, 0.9); margin-bottom: 1.9rem; max-width: 500px; margin-inline: auto; }

/* ===== FOOTER ===== */
.footer { background: #03050a; color: #ffffff; padding: 4.5rem 0 1.6rem; }

.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.6rem; }

.footer__brand p { font-size: 0.88rem; color: #ffffff; margin-top: 1rem; max-width: 260px; }

.footer__col h4 { color: #ffffff; font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.2rem; }

.footer__nav { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__nav a { font-size: 0.88rem; color: #ffffff; transition: color 0.2s ease, transform 0.2s ease; display: inline-block; }
.footer__nav a:hover { color: var(--cyan); transform: translateX(3px); }

.social { display: flex; gap: 0.6rem; margin-top: 1.3rem; }

.social__link {
    width: 40px; height: 40px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line-dark);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.social__link:hover { background: var(--grad); color: #fff; transform: translateY(-3px); }

.footer__copy {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.8rem;
    color: #ffffff;
    border-top: 1px solid var(--line-dark);
    padding-top: 1.7rem;
    margin-top: 1.4rem;
}

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .cards, .portafolio, .galeria { grid-template-columns: repeat(2, 1fr); }
    .nosotros { grid-template-columns: 1fr; gap: 3rem; }
    .contacto { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav {
        position: fixed;
        top: 0; right: -100%;
        width: min(84%, 320px);
        height: 100vh;
        background: #070a12;
        padding: 5.2rem 2rem 2rem;
        transition: right 0.35s var(--ease);
        z-index: 1100;
        overflow-y: auto;
    }

    .nav.active { right: 0; box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5); }

    .nav__list { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
    .nav__link { color: #ffffff; font-size: 1.08rem; width: 100%; padding: 0.75rem 0; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
    .nav__link:hover { background: none; color: #fff; }
    .nav__link--btn { background: none; color: var(--cyan) !important; }

    .nav__toggle { display: flex; }
    .nav__toggle.active .nav__toggle-span:nth-child(1) { transform: rotate(45deg) translate(6px, 5px); }
    .nav__toggle.active .nav__toggle-span:nth-child(2) { opacity: 0; }
    .nav__toggle.active .nav__toggle-span:nth-child(3) { transform: rotate(-45deg) translate(6px, -5px); }

    .nav__close { display: flex; position: absolute; top: 1.4rem; right: 1.4rem; width: 40px; height: 40px; align-items: center; justify-content: center; }
    .nav__close-span { position: relative; display: block; width: 22px; height: 2px; background: #e8edf6; }
    .nav__close-span::before, .nav__close-span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: #e8edf6; }
    .nav__close-span::before { transform: rotate(45deg); }
    .nav__close-span::after { transform: rotate(-45deg); }

    .buscador { max-width: 170px; }
    .cifras__grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
}

@media (max-width: 600px) {
    .section { padding: 3.8rem 0; }

    .header__container { gap: 0.6rem; }
    .buscador { order: 2; max-width: 100%; width: 100%; margin-top: 0.4rem; }
    .header { height: auto; padding: 0.65rem 0; }

    .hero { height: auto; min-height: 78vh; }
    .hero__cta { flex-direction: column; align-items: stretch; }
    .hero__cta .btn { width: 100%; }

    .slider__btn { width: 42px; height: 42px; }
    .slider__btn--prev { left: 8px; }
    .slider__btn--next { right: 8px; }

    .cards, .portafolio, .galeria { grid-template-columns: 1fr; }
    .galeria__item { height: 340px; }

    .form__row { grid-template-columns: 1fr; }
    .form { padding: 1rem; }
    .info { padding: 1.7rem; }

    .footer__grid { grid-template-columns: 1fr; gap: 1.9rem; }
    .nosotros__img { height: 320px; }
    .nosotros__badge { left: 0.8rem; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .slide .hero__tag, .slide .hero__title, .slide .hero__subtitle, .slide .hero__cta { opacity: 1; transform: none; }
    .marquee__track { animation: none; }
}