/* Estilos de registro.html (crear cuenta). Antes vivían en un <style> de la
   página (regla del 1,500: la página pasaba de 1,500 líneas). Se cargan
   después de las 12 hojas globales, en el mismo lugar que el <style>. */
:root {
    --xt-terracota: #D84315;
    --xt-terracota-dark: #BF360C;
    --xt-jade: #00897B;
    --xt-jade-dark: #00695C;
    --xt-carbon: #2A363D;
    --xt-crema: #FFF8F0;
    --xt-crema-2: #F5ECDD;
    --xt-line: rgba(42,54,61,0.1);
    --xt-muted: #5E5E5E;   /* el del sistema: 5:1 sobre crema (el gris azulado anterior daba 4.1) */
    --xt-radius-md: 8px;
    --xt-radius-lg: 14px;
    --xt-font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --xt-font-body: "DM Sans", system-ui, sans-serif;
    --xt-font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
    --xt-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html, body { height: 100%; }
body {
    overflow-x: hidden;
    background: var(--xt-crema);
    font-family: 'DM Sans', system-ui, sans-serif;
    color: var(--xt-carbon);
}

/* ========== LAYOUT SPLIT ========== */
.split {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "hero"
        "form";
    min-height: 100vh;
    min-height: 100dvh;
}
@media (min-width: 1024px) {
    .split {
        grid-template-columns: 1.05fr 1fr;
        grid-template-areas: "form hero";
    }
}
.panel-form { grid-area: form; }
.panel-hero { grid-area: hero; }

/* ========== PANEL IZQUIERDO (FORM) editorial ========== */
.panel-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.25rem;
    perspective: 1200px;
    background: var(--xt-crema);
}
.form-wrap {
    width: 100%;
    max-width: 560px;
    opacity: 0;
    transform: translateY(18px);
    animation: form-rise 0.7s var(--xt-ease) 0.1s forwards;
}
@keyframes form-rise {
    to { opacity: 1; transform: translateY(0); }
}

/* Volver editorial (eyebrow mono + linea, sin pill) */
.btn-volver-landing {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin-bottom: 24px;
    font-family: var(--xt-font-mono);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--xt-muted);
    background: transparent;
    border: none;
    text-decoration: none;
    transition: color 0.25s var(--xt-ease), transform 0.25s var(--xt-ease);
}
/* La línea crece de 28 a 38 px y el texto se recorre lo mismo, con transform
   (sin animar `width`, que recalcula el layout en cada cuadro). */
.btn-volver-landing::before {
    content: "";
    display: block;
    width: 28px;
    height: 1px;
    background: currentColor;
    transform-origin: left center;
    transition: transform 0.3s var(--xt-ease);
}
.btn-volver-texto { font-family: inherit; transition: transform 0.3s var(--xt-ease); }
.btn-volver-landing:hover {
    color: var(--xt-terracota-texto);
    transform: translateX(-3px);
}
.btn-volver-landing:hover::before { transform: scaleX(1.3571); } /* 38 / 28 */
.btn-volver-landing:hover .btn-volver-texto { transform: translateX(10px); }
.btn-volver-landing svg { display: none; }

/* Tarjeta editorial */
.tilt-card {
    position: relative;
    background: #fff;
    border-radius: 6px;
    padding: 2.25rem 2rem 2rem;
    box-shadow:
        0 30px 60px -28px rgba(42,54,61,0.22),
        0 6px 14px -8px rgba(42,54,61,0.08);
    transform-style: preserve-3d;
    transition: transform 0.5s var(--xt-ease), box-shadow 0.3s ease;
    will-change: transform;
    border: 1px solid var(--xt-line);
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    animation: card-in 0.7s var(--xt-ease) 0.25s forwards;
}
@keyframes card-in {
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.tilt-card .glow {
    position: absolute; inset: 0;
    border-radius: inherit;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(216,67,21,0.10), transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
}
.tilt-card:hover .glow { opacity: 1; }
.tilt-card > * { position: relative; z-index: 1; }

/* Stepper editorial */
.step-dots {
    display: flex; gap: 8px; justify-content: flex-start;
    margin-bottom: 18px;
}
/* La activa se ve de 36 px y las que la siguen se recorren 16 px, con transform
   (mismo dibujo que animar `width`, sin recalcular el layout). */
.step-dots span {
    width: 20px; height: 2px; border-radius: 0;
    background: rgba(42,54,61,0.15);
    transform-origin: left center;
    transform: translateX(0) scaleX(1);
    transition: background 0.3s var(--xt-ease), transform 0.4s var(--xt-ease);
}
.step-dots span.active { background: var(--xt-terracota); transform: translateX(0) scaleX(1.8); }
.step-dots span.active ~ span { transform: translateX(16px) scaleX(1); }

/* Titulo Fraunces + sub */
#step-title {
    font-family: var(--xt-font-display);
    font-weight: 600;
    font-size: clamp(1.8rem, 3vw, 2rem);
    line-height: 1.05;
    letter-spacing: -0.018em;
    color: var(--xt-carbon);
    margin-bottom: 6px;
}
#step-title em {
    font-family: var(--xt-font-display);
    font-style: italic;
    font-weight: 500;
    color: var(--xt-terracota);
}
#step-sub {
    font-size: 14.5px;
    color: var(--xt-muted);
    line-height: 1.5;
}

.steps-viewport {
    position: relative;
    overflow: hidden;
    margin-top: 6px;
}
.step {
    transition: transform 0.55s var(--xt-ease), opacity 0.35s ease;
}
.step.hidden-left { position: absolute; inset: 0; transform: translateX(-30%); opacity: 0; pointer-events: none; }
.step.hidden-right { position: absolute; inset: 0; transform: translateX(30%); opacity: 0; pointer-events: none; }

/* Inputs editoriales */
.field {
    position: relative;
    margin-bottom: 14px;
}
.field label {
    display: block;
    font-family: var(--xt-font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--xt-muted);
    margin-bottom: 6px;
}
.field.optional label::after {
    content: " · OPCIONAL";
    font-weight: 400;
    opacity: 0.65;
}
.field .ico {
    position: absolute; left: 14px;
    bottom: 14px;
    color: var(--xt-muted);
    transition: color 0.25s var(--xt-ease);
    pointer-events: none;
}
.field input,
.field select {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: 1px solid var(--xt-line);
    border-radius: 4px;
    background: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 15.5px;
    color: var(--xt-carbon);
    outline: none;
    transition: border-color 0.25s var(--xt-ease), box-shadow 0.25s var(--xt-ease);
}
.field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%232A363D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.field input::placeholder { color: var(--xt-muted); opacity: 0.85; }
.field input:focus,
.field select:focus {
    border-color: var(--xt-terracota);
    box-shadow: 0 0 0 3px rgba(216,67,21,0.12);
}
.field:focus-within .ico { color: var(--xt-terracota); }
.field .toggle-pass {
    position: absolute; right: 6px; bottom: 6px;
    background: transparent; border: 0; padding: 8px;
    cursor: pointer; border-radius: 4px;
    color: var(--xt-muted);
    transition: color 0.25s var(--xt-ease), background 0.25s var(--xt-ease);
}
.field .toggle-pass:hover { color: var(--xt-terracota-texto); background: rgba(216,67,21,0.08); }

/* Label de seccion editorial (Tipo de negocio) */
.field-label {
    display: block;
    font-family: var(--xt-font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--xt-muted);
    margin-bottom: 10px;
}

/* Tipo de negocio (cards) */
.tipo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
@media (min-width: 480px) {
    .tipo-grid { grid-template-columns: repeat(3, 1fr); }
}
.tipo-card {
    position: relative;
    padding: 14px;
    border: 1px solid var(--xt-line);
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.25s var(--xt-ease), background 0.25s var(--xt-ease), box-shadow 0.25s var(--xt-ease);
    display: flex; flex-direction: column; gap: 8px;
}
.tipo-card:hover { border-color: rgba(216,67,21,0.4); }
.tipo-card input { position: absolute; opacity: 0; pointer-events: none; }
.tipo-card .icon-box {
    width: 36px; height: 36px;
    border-radius: 4px;
    background: var(--xt-crema-2);
    color: var(--xt-terracota);
    display: grid; place-items: center;
    transition: background 0.25s var(--xt-ease), color 0.25s var(--xt-ease);
}
.tipo-card h4 {
    font-family: var(--xt-font-display);
    font-weight: 600;
    color: var(--xt-carbon);
    font-size: 15px;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.tipo-card p {
    font-size: 12.5px;
    color: var(--xt-muted);
    line-height: 1.4;
}
.tipo-card.activa {
    border-color: var(--xt-terracota);
    background: rgba(216,67,21,0.04);
    box-shadow: 0 0 0 3px rgba(216,67,21,0.10);
}
.tipo-card.activa .icon-box {
    background: var(--xt-terracota-dark, #BF360C);
    color: #fff;
}
.tipo-card .check {
    position: absolute; top: 10px; right: 10px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--xt-terracota-dark, #BF360C);
    color: #fff;
    display: none;
    place-items: center;
}
.tipo-card.activa .check { display: grid; }

/* Requisitos password editoriales */
.pw-reqs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin: 6px 0 16px;
    padding: 12px 14px;
    background: var(--xt-crema-2);
    border-radius: 4px;
    border: 1px solid var(--xt-line);
}
.pw-reqs span {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--xt-font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--xt-muted);
    transition: color 0.25s var(--xt-ease);
}
.pw-reqs span.ok { color: var(--xt-jade-dark); }
.pw-reqs span svg { flex-shrink: 0; }

/* Botones editoriales */
.btn-cta {
    width: 100%;
    padding: 15px 22px;
    border-radius: 4px;
    background: var(--xt-terracota-dark, #BF360C);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    border: 0; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    box-shadow: 0 12px 26px -12px rgba(216,67,21,0.55);
    transition: transform 0.2s var(--xt-ease), box-shadow 0.25s var(--xt-ease), background 0.25s var(--xt-ease);
}
.btn-cta:not(:disabled):hover {
    transform: translateY(-2px);
    background: #A52E0A;
    box-shadow: 0 18px 32px -12px rgba(216,67,21,0.6);
}
.btn-cta:not(:disabled):active { transform: translateY(0); }
.btn-cta:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-cta svg { transition: transform 0.25s var(--xt-ease); }
.btn-cta:not(:disabled):hover svg { transform: translateX(4px); }
.btn-cta .spinner {
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff; border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
}
.btn-cta.cargando .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn-secondary {
    padding: 10px 16px;
    border-radius: 4px;
    background: transparent;
    color: var(--xt-muted);
    border: 1px solid var(--xt-line);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600; font-size: 13px;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    transition: border-color 0.25s var(--xt-ease), color 0.25s var(--xt-ease), background 0.25s var(--xt-ease);
}
.btn-secondary:hover {
    border-color: var(--xt-terracota);
    color: var(--xt-terracota-texto);
    background: rgba(216,67,21,0.04);
}

.btn-ghost-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 4px;
    border: 1px dashed rgba(216,67,21,0.35);
    color: var(--xt-terracota-texto);
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px; font-weight: 600;
    text-decoration: none;
    transition: background 0.25s var(--xt-ease), border-color 0.25s var(--xt-ease);
}
.btn-ghost-link:hover {
    background: rgba(216,67,21,0.06);
    border-color: var(--xt-terracota);
}

/* Alert editorial */
.alert {
    border: 1px solid #E53935;
    background: rgba(229,57,53,0.08);
    color: #C62828;
    padding: 11px 14px;
    border-radius: 4px;
    font-size: 13.5px;
    line-height: 1.45;
    margin-bottom: 16px;
    animation: alert-in 0.4s var(--xt-ease);
}
.alert.ok {
    border-color: var(--xt-jade);
    background: rgba(0,137,123,0.08);
    color: var(--xt-jade-dark);
}
@keyframes alert-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Texto auxiliar bajo el card */
.post-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--xt-muted);
    text-align: center;
    margin-top: 24px;
    line-height: 1.55;
}
.post-text a {
    color: var(--xt-terracota-texto);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s var(--xt-ease);
}
.post-text a:hover { border-bottom-color: var(--xt-terracota); }
.post-text-mini {
    font-family: var(--xt-font-mono);
    font-size: 12px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--xt-muted);
    text-align: center;
    margin-top: 16px;
    opacity: 0.6;
}
.post-text-cifrado {
    font-family: var(--xt-font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--xt-muted);
}

/* ========== PANEL DERECHO (HERO) editorial carbon ========== */
.panel-hero {
    display: block;
    position: relative;
    overflow: hidden;
    background: linear-gradient(170deg, #2A363D 0%, #1C262C 100%);
    color: #fff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.hero-greca {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,60 V0 H60 V40 H20 V20 H40 V60' fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='2.5'/%3E%3Cpath d='M60,0 V60 H120 V20 H80 V40 H100 V0' fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='2.5'/%3E%3C/svg%3E");
    background-size: 220px auto;
    animation: greca-move 60s linear infinite;
}
@keyframes greca-move {
    from { background-position: 0 0; }
    to   { background-position: 440px 0; }
}
.hero-sun {
    position: absolute;
    top: -160px; right: -160px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(216,67,21,0.28), transparent 65%);
    filter: blur(12px);
    animation: pulse 8s ease-in-out infinite;
}
.hero-jade-glow {
    position: absolute;
    bottom: -180px; left: -120px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(0,137,123,0.22), transparent 60%);
    filter: blur(14px);
    animation: pulse 9s ease-in-out infinite reverse;
}
@keyframes pulse {
    0%,100% { transform: scale(1); opacity: 0.7; }
    50%     { transform: scale(1.08); opacity: 0.95; }
}
.hero-iso-wm {
    position: absolute;
    top: 50%;
    right: -8%;
    transform: translateY(-50%) rotate(-8deg);
    width: 48%;
    max-width: 460px;
    aspect-ratio: 1 / 1;
    color: #fff;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}
.hero-iso-wm svg { width: 100%; height: 100%; }

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.75rem 1.25rem 3rem;
    max-width: 520px;
    margin: 0 auto;
}
@media (min-width: 1024px) {
    .hero-content {
        height: 100%;
        justify-content: space-between;
        align-items: stretch;
        gap: 0;
        padding: 3.5rem 3.5rem 5.5rem;
        max-width: none;
    }
}
.hero-brand { text-align: center; }
.hero-brand img {
    height: 32px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
    opacity: 0;
    transform: translateX(-32px);
    animation: hero-slide-in 0.7s var(--xt-ease) 0.4s forwards;
}
@keyframes hero-slide-in {
    to { opacity: 1; transform: translateX(0); }
}
@media (min-width: 1024px) {
    .hero-brand { text-align: left; }
    .hero-brand img { height: 44px; }
}

/* Bloque hero-stage (bullets + eyebrow editorial) */
.hero-stage {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
}
@media (min-width: 1024px) {
    .hero-stage { flex: 1; justify-content: center; }
}

/* Eyebrow editorial sobre los bullets */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--xt-font-mono);
    font-size: 12px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.62);
    margin: 0 auto 14px;
}
@media (min-width: 1024px) {
    .hero-eyebrow { margin: 0 0 24px; }
}
.hero-eyebrow::before {
    content: "";
    display: block;
    width: 38px;
    height: 1px;
    background: rgba(255,255,255,0.5);
}

.check-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
}
@media (min-width: 1024px) {
    .check-list {
        display: flex; flex-direction: column; gap: 12px;
    }
}
.check-list li {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 4px;
    opacity: 0;
    transform: translateY(12px);
    animation: slide-in 0.6s var(--xt-ease) both;
}
.check-list li:nth-child(1) { animation-delay: 0.7s; }
.check-list li:nth-child(2) { animation-delay: 0.82s; }
.check-list li:nth-child(3) { animation-delay: 0.94s; }
.check-list li:nth-child(4) { animation-delay: 1.06s; }
@keyframes slide-in {
    to { opacity: 1; transform: translateY(0); }
}
.check-list .bullet {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.22);
    color: #fff;
    display: grid; place-items: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.check-list .bullet svg { width: 12px; height: 12px; }
.check-list .txt h4 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 12.5px;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 2px;
}
.check-list .txt p {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255,255,255,0.72);
}
@media (min-width: 1024px) {
    .check-list li { padding: 14px 16px; gap: 14px; }
    .check-list .bullet { width: 28px; height: 28px; }
    .check-list .bullet svg { width: 13px; height: 13px; }
    .check-list .txt h4 { font-size: 14px; }
    .check-list .txt p { font-size: 13px; }
}

/* Taglines rotativas editoriales */
.tagline-area {
    position: relative;
    min-height: 70px;
    text-align: center;
    width: 100%;
}
@media (min-width: 1024px) {
    .tagline-area { min-height: 90px; text-align: left; }
}
.tagline {
    position: absolute; inset: 0;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s var(--xt-ease), transform 0.6s var(--xt-ease);
}
.tagline.visible { opacity: 1; transform: translateY(0); }
.tagline h3 {
    font-family: var(--xt-font-display);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: #fff;
    margin-bottom: 8px;
}
.tagline h3 em {
    font-family: var(--xt-font-display);
    font-style: italic;
    color: rgba(255,255,255,0.78);
    font-weight: 500;
}
.tagline p {
    opacity: 0.72;
    font-size: 13px;
    line-height: 1.5;
    color: #fff;
}
@media (min-width: 1024px) {
    .tagline h3 { font-size: 30px; }
    .tagline p { font-size: 14.5px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
