/* ============================================================
   CONTACTO · Página de contacto AST3C
   Hero con ondas de señal → canales directos → formulario +
   información. Se carga después de styles.css (nav, footer y
   tokens del sistema: --accent-cyan / --accent-purple / --bg-*).
   ============================================================ */

:root {
    --ct-cyan-tint: #b3f9ff;
    --ct-purple-tint: #e2c9ff;
    --ct-error: #ff8a9a;
    --ct-gutter: clamp(1rem, 4vw, 2.5rem);
    --ct-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --ct-card-bg:
        linear-gradient(160deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.015) 45%, rgba(255, 255, 255, 0.01) 100%),
        rgba(16, 12, 24, 0.7);
}

[hidden] {
    display: none !important;
}

body.ct-page {
    background: var(--bg-primary);
}

.ct-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: max(var(--ct-gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--ct-gutter), env(safe-area-inset-right, 0px));
}

/* ---------- Navbar inteligente (igual que en el resto del sitio) ---------- */
.nav {
    will-change: transform;
    transition: background-color 0.35s ease, border-color 0.35s ease;
}
.nav.nav--scrolled {
    background: rgba(10, 10, 10, 0.9);
    border-bottom-color: rgba(176, 38, 255, 0.18);
}
.nav-css .nav { transition: transform 0.35s ease, background-color 0.35s ease; }
.nav-css .nav.nav--hidden { transform: translateY(-100%); }
.nav-link[aria-current="page"] { color: var(--text-primary); }
.nav-link[aria-current="page"]::after { width: 100%; }
.nav-link:focus-visible,
.nav-toggle:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 4px;
}

/* ---------- Hero ---------- */
.ct-hero {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 88vh;
    min-height: 88svh;
    padding: calc(6rem + env(safe-area-inset-top, 0px)) 0 5rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse 55% 45% at 50% 20%, rgba(176, 38, 255, 0.16), transparent 70%),
        radial-gradient(ellipse 40% 40% at 10% 80%, rgba(0, 240, 255, 0.07), transparent 70%),
        radial-gradient(ellipse 40% 40% at 90% 85%, rgba(176, 38, 255, 0.1), transparent 70%);
}

.ct-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 25%;
    background: linear-gradient(180deg, transparent, var(--bg-primary));
    pointer-events: none;
}

.ct-waves {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.ct-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 max(var(--ct-gutter), env(safe-area-inset-right, 0px)) 0 max(var(--ct-gutter), env(safe-area-inset-left, 0px));
    text-align: center;
}

.ct-hero__title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3.4rem, 13vw, 10rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: #ffffff;
    perspective: 900px;
}

.ct-word {
    display: inline-block;
    white-space: nowrap;
}

.ct-letter {
    display: inline-block;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Degradado por letra (seguro con letras transformadas) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .ct-letter {
        background: linear-gradient(180deg, #ffffff 35%, var(--ct-cyan-tint) 80%, var(--ct-purple-tint) 100%);
        -webkit-background-clip: text;
                background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.ct-hero__lead {
    max-width: 620px;
    margin: 1.5rem auto 0;
    color: var(--text-secondary);
    font-size: clamp(1.02rem, 1.5vw, 1.2rem);
    line-height: 1.7;
    text-shadow: 0 2px 18px rgba(10, 10, 10, 0.9);
}

/* Canales directos */
.ct-channels.ct-channels--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 680px;
}

.ct-channels {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 980px;
    margin: clamp(2.5rem, 6vh, 3.5rem) auto 0;
    padding: 0;
}

.ct-channel {
    --mx: 50%;
    --my: 0%;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.95rem;
    height: 100%;
    padding: 1.15rem 1.25rem;
    border-radius: 20px;
    text-align: left;
    text-decoration: none;
    color: #ffffff;
    background: var(--ct-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.09);
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
    box-shadow: 0 20px 45px -30px rgba(0, 0, 0, 0.9);
    transition: translate 0.45s var(--ct-ease), border-color 0.4s ease, box-shadow 0.4s ease;
}

.ct-channel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background: radial-gradient(260px circle at var(--mx) var(--my), rgba(176, 38, 255, 0.22), rgba(0, 240, 255, 0.06) 45%, transparent 70%);
    transition: opacity 0.4s ease;
}

.ct-channel:hover,
.ct-channel:focus-visible {
    translate: 0 -4px;
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 26px 50px -28px rgba(0, 0, 0, 0.9), 0 0 36px -12px rgba(176, 38, 255, 0.55);
}

.ct-channel:hover::before,
.ct-channel:focus-visible::before {
    opacity: 1;
}

.ct-channel:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

.ct-channel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(150deg, rgba(0, 240, 255, 0.14), rgba(176, 38, 255, 0.24));
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: rotate 0.5s var(--ct-ease), scale 0.5s var(--ct-ease);
}

.ct-channel__icon svg {
    width: 22px;
    height: 22px;
}

.ct-channel--wa .ct-channel__icon {
    color: #25d366;
    background: linear-gradient(150deg, rgba(37, 211, 102, 0.18), rgba(37, 211, 102, 0.06));
}

.ct-channel:hover .ct-channel__icon {
    rotate: -8deg;
    scale: 1.08;
}

.ct-channel__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ct-channel__text strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.ct-channel__text small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.ct-channel__arrow {
    margin-left: auto;
    flex: none;
    color: var(--text-secondary);
    transition: translate 0.4s var(--ct-ease), color 0.3s ease;
}

.ct-channel__arrow svg {
    display: block;
    width: 18px;
    height: 18px;
}

.ct-channel:hover .ct-channel__arrow {
    translate: 4px 0;
    color: var(--accent-cyan);
}

/* Indicador para bajar al formulario */
.ct-scroll {
    position: absolute;
    left: 50%;
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    z-index: 2;
    width: 26px;
    height: 42px;
    margin-left: -13px;
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.ct-scroll span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--accent-cyan);
    animation: ct-wheel 1.8s ease-in-out infinite;
}

@keyframes ct-wheel {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(14px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

.ct-scroll:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 4px;
}

/* Estado previo a la intro (con animación de seguridad si el JS no llega) */
.js [data-ct-intro],
.js [data-ct-title],
.js [data-ct-channel] {
    opacity: 0;
    animation: ct-failsafe 0.6s ease 2.5s forwards;
}
.ct-live [data-ct-intro],
.ct-live [data-ct-title],
.ct-live [data-ct-channel] {
    animation: none;
}
.ct-static [data-ct-intro],
.ct-static [data-ct-title],
.ct-static [data-ct-channel] {
    opacity: 1;
}
@keyframes ct-failsafe {
    to { opacity: 1; }
}

/* ---------- Formulario + información ---------- */
.ct-main {
    position: relative;
    z-index: 1;
    padding: clamp(2rem, 5vw, 4rem) 0 clamp(5rem, 10vw, 8rem);
}

.ct-main::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 45% 40% at 30% 40%, rgba(176, 38, 255, 0.09), transparent 70%),
        radial-gradient(ellipse 35% 35% at 85% 60%, rgba(0, 240, 255, 0.05), transparent 70%);
    pointer-events: none;
}

.ct-main__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
}

.ct-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.6rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ct-cyan-tint);
}

.ct-eyebrow::before {
    content: '';
    width: 1.6rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan));
}

/* Tarjeta del formulario */
.ct-form-card {
    --mx: 30%;
    --my: 0%;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 28px;
    background: var(--ct-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 40px 80px -45px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
    scroll-margin-top: 90px;
}

.ct-form-card__glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(520px circle at var(--mx) var(--my), rgba(176, 38, 255, 0.14), transparent 65%);
}

.ct-form-card__head {
    margin-bottom: 1.75rem;
}

.ct-form-card__title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #ffffff;
}

.ct-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem 1.15rem;
}

.ct-field {
    position: relative;
    min-width: 0;
}

.ct-field--full {
    grid-column: 1 / -1;
}

.ct-input {
    display: block;
    width: 100%;
    padding: 1.55rem 1rem 0.6rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
            appearance: none;
}

.ct-input--area {
    min-height: 170px;
    padding-top: 1.85rem;
    resize: vertical;
}

.ct-input:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.ct-input:focus {
    border-color: rgba(0, 240, 255, 0.55);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.08);
}

.ct-label {
    position: absolute;
    left: 1rem;
    top: 1.08rem;
    color: var(--text-secondary);
    font-size: 0.98rem;
    pointer-events: none;
    transform-origin: 0 0;
    transition: transform 0.3s var(--ct-ease), color 0.3s ease;
}

.ct-label em {
    font-style: normal;
    font-size: 0.82em;
    opacity: 0.7;
}

.ct-input:focus + .ct-label,
.ct-input:not(:placeholder-shown) + .ct-label {
    transform: translateY(-0.62rem) scale(0.78);
    color: var(--ct-cyan-tint);
}

/* Línea de foco que se dibuja desde la izquierda */
.ct-field__line {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% - 2px);
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.45s var(--ct-ease);
    pointer-events: none;
}

.ct-field:has(.ct-input--area) .ct-field__line {
    top: auto;
    bottom: calc(1.3rem + 2px);
}

.ct-input:focus ~ .ct-field__line {
    transform: scaleX(1);
}

.ct-field__count {
    position: absolute;
    right: 1rem;
    top: 0.55rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.ct-field__count.is-near {
    color: var(--accent-cyan);
}

.ct-field__error {
    min-height: 1.3rem;
    margin: 0.3rem 0.25rem 0;
    font-size: 0.8rem;
    line-height: 1.3;
    color: var(--ct-error);
}

.ct-field.is-invalid .ct-input {
    border-color: rgba(255, 138, 154, 0.7);
    box-shadow: 0 0 0 4px rgba(255, 138, 154, 0.08);
}

.ct-field.is-invalid .ct-label {
    color: var(--ct-error);
}

.ct-field.is-valid .ct-input:not(:focus) {
    border-color: rgba(0, 240, 255, 0.28);
}

/* Selección de servicio (chips) */
.ct-services {
    border: 0;
    margin: 0;
    padding: 0;
}

.ct-services__legend {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.ct-services__legend em {
    font-style: normal;
    opacity: 0.7;
}

.ct-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ct-chip {
    position: relative;
    cursor: pointer;
}

.ct-chip input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.ct-chip span {
    display: inline-block;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: #cfcfd8;
    font-size: 0.86rem;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, scale 0.3s var(--ct-ease);
}

.ct-chip:hover span {
    border-color: rgba(0, 240, 255, 0.45);
    color: #ffffff;
}

.ct-chip input:checked + span {
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.55), rgba(176, 38, 255, 0.7));
    box-shadow: 0 8px 22px -10px rgba(176, 38, 255, 0.8);
    animation: ct-pop 0.4s var(--ct-ease);
}

.ct-chip input:focus-visible + span {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

@keyframes ct-pop {
    40% { scale: 1.08; }
    100% { scale: 1; }
}

.ct-honeypot {
    display: none !important;
}

.ct-form__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    margin-top: 1.25rem;
}

/* Botón de envío */
.ct-submit {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-width: 220px;
    padding: 1.05rem 1.9rem;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(110deg, #00c8e0 0%, #6b4dff 45%, #b026ff 70%, #00c8e0 100%);
    background-size: 220% 100%;
    background-position: 0% 50%;
    box-shadow: 0 14px 34px -14px rgba(176, 38, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: background-position 0.7s var(--ct-ease), box-shadow 0.4s ease, translate 0.3s var(--ct-ease);
}

.ct-submit:hover,
.ct-submit:focus-visible {
    background-position: 100% 50%;
    translate: 0 -2px;
    box-shadow: 0 18px 40px -14px rgba(0, 240, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ct-submit:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

.ct-submit:disabled {
    cursor: progress;
    translate: 0 0;
}

.ct-submit__icon {
    width: 18px;
    height: 18px;
    transition: translate 0.4s var(--ct-ease), opacity 0.3s ease;
}

.ct-submit:hover .ct-submit__icon {
    translate: 3px -3px;
}

.ct-submit__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    animation: ct-spin 0.8s linear infinite;
}

.ct-submit.is-loading .ct-submit__spinner { display: inline-block; }
.ct-submit.is-loading .ct-submit__icon { display: none; }
.ct-submit.is-loading .ct-submit__label { opacity: 0.75; }

@keyframes ct-spin {
    to { transform: rotate(360deg); }
}

.ct-ripple {
    position: absolute;
    z-index: -1;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transform: translate(-50%, -50%) scale(0);
    animation: ct-ripple 0.65s ease-out forwards;
    pointer-events: none;
}

@keyframes ct-ripple {
    to { transform: translate(-50%, -50%) scale(28); opacity: 0; }
}

.ct-form__status {
    flex: 1 1 220px;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.ct-form__status[data-state="error"] {
    color: var(--ct-error);
}

/* Confirmación */
.ct-success {
    padding: clamp(1.5rem, 5vw, 3rem) 0 1rem;
    text-align: center;
    outline: none;
}

.ct-success__check {
    width: 92px;
    height: 92px;
    margin: 0 auto 1.25rem;
    display: block;
    filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.45));
}

.ct-success__title {
    margin: 0 0 0.6rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #ffffff;
}

.ct-success__text {
    max-width: 420px;
    margin: 0 auto 1.75rem;
    color: var(--text-secondary);
}

.ct-btn-ghost {
    padding: 0.85rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ct-btn-ghost:hover,
.ct-btn-ghost:focus-visible {
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.08);
    outline: none;
}

/* Columna de información */
.ct-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* En escritorio la columna acompaña al formulario mientras se hace scroll */
@media (min-width: 1024px) {
    .ct-info {
        position: sticky;
        top: 110px;
    }
}

.ct-info__card {
    --mx: 50%;
    --my: 0%;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 20px;
    background: var(--ct-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.4s ease, translate 0.45s var(--ct-ease);
}

.ct-info__card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background: radial-gradient(240px circle at var(--mx) var(--my), rgba(176, 38, 255, 0.18), transparent 70%);
    transition: opacity 0.4s ease;
}

.ct-info__card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    translate: 0 -3px;
}

.ct-info__card:hover::before {
    opacity: 1;
}

.ct-info__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(150deg, rgba(0, 240, 255, 0.12), rgba(176, 38, 255, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ct-info__icon svg {
    width: 22px;
    height: 22px;
}

.ct-info__body {
    min-width: 0;
    grid-column: 2 / -1;
}

.ct-info__card:has(.ct-copy) .ct-info__body {
    grid-column: 2;
}

.ct-info__title {
    margin: 0 0 0.3rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.ct-link {
    color: var(--text-secondary);
    text-decoration: none;
    word-break: break-word;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple)) no-repeat 0 100% / 0% 1px;
    padding-bottom: 2px;
    transition: background-size 0.4s var(--ct-ease), color 0.3s ease;
}

.ct-link:hover,
.ct-link:focus-visible {
    color: #ffffff;
    background-size: 100% 1px;
}

.ct-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, scale 0.3s var(--ct-ease);
}

.ct-copy svg {
    width: 17px;
    height: 17px;
}

.ct-copy:hover,
.ct-copy:focus-visible {
    color: #ffffff;
    border-color: rgba(0, 240, 255, 0.5);
    outline: none;
}

.ct-copy.is-copied {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.12);
    scale: 1.08;
}

/* Redes */
.ct-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.4rem;
}

.ct-social__link {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #d6d6de;
    font-size: 0.84rem;
    text-decoration: none;
    transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.ct-social__link:hover,
.ct-social__link:focus-visible {
    color: #ffffff;
    border-color: rgba(0, 240, 255, 0.5);
    background: rgba(0, 240, 255, 0.06);
    outline: none;
}

/* Aviso flotante */
.ct-toast {
    position: fixed;
    left: 50%;
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    z-index: 1200;
    max-width: calc(100% - 2rem);
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    background: rgba(14, 11, 20, 0.95);
    border: 1px solid rgba(0, 240, 255, 0.4);
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.9), 0 0 24px -8px rgba(0, 240, 255, 0.5);
    color: #ffffff;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 16px);
    transition: opacity 0.35s ease, transform 0.45s var(--ct-ease);
}

.ct-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------- Footer (complementos al estilo de styles.css) ---------- */
.footer {
    position: relative;
    z-index: 1;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand img {
    height: 28px;
    width: auto;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.75rem;
    font-size: 0.95rem;
}

.home-link {
    color: inherit;
    text-decoration: none;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple)) no-repeat 0 100% / 0% 1px;
    padding-bottom: 2px;
    transition: background-size 0.4s var(--ct-ease), color 0.3s ease;
}

.home-link:hover,
.home-link:focus-visible {
    background-size: 100% 1px;
    color: #ffffff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
    .ct-main__grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .ct-info {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .ct-channels,
    .ct-channels.ct-channels--two {
        grid-template-columns: minmax(0, 1fr);
        max-width: 460px;
    }
}

@media (max-width: 640px) {
    .ct-hero {
        min-height: auto;
        padding-top: calc(7.25rem + env(safe-area-inset-top, 0px));
        padding-bottom: 7rem;
    }
    .ct-form__grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .ct-info {
        grid-template-columns: minmax(0, 1fr);
    }
    .ct-submit {
        width: 100%;
    }
    .ct-channel,
    .ct-info__card,
    .ct-form-card {
        -webkit-backdrop-filter: none;
                backdrop-filter: none;
    }
    .footer-nav {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-brand {
        flex-direction: column;
    }
}

@media (max-height: 560px) and (orientation: landscape) {
    .ct-hero {
        min-height: auto;
    }
    .ct-scroll {
        display: none;
    }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
    .ct-scroll span,
    .ct-chip input:checked + span {
        animation: none;
    }
    .ct-channel,
    .ct-info__card,
    .ct-submit,
    .ct-label,
    .ct-field__line,
    .ct-toast {
        transition: none;
    }
}
