
/* ================================= */
/* 1. ENCABEZADO DEL TALLER */
/* ================================= */

.taller-encabezado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 48px;
    background: #050303;              /* siempre oscuro, también en tema oscuro */
    color: #fff;
    position: relative;
    z-index: 3;
}

.taller-encabezado .marca-nombre { color: #fff; }

.taller-nav { display: flex; gap: 26px; font-size: 14px; }

.taller-nav a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.taller-nav a:hover { color: #fff; border-color: #fff; }

/* ================================= */
/* 2. HERO CON FRASES QUE CAMBIAN */
/* ================================= */

.taller-hero {
    position: relative;
    min-height: 74vh;
    display: flex;
    align-items: center;
    background: #050303;
    color: #fff;
    overflow: hidden;
    padding: 40px 48px 110px;
}

/* Fondo animado: manchas de color + anillos que giran */
.th-fondo { position: absolute; inset: 0; pointer-events: none; }

.th-fondo .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: blobMover 14s ease-in-out infinite alternate;
}

.b1 { width: 460px; height: 460px; background: var(--morado); top: -140px; right: -100px; }
.b2 { width: 380px; height: 380px; background: #c9a53d; bottom: -160px; left: 8%; opacity: 0.4; animation-delay: -6s; }
.b3 { width: 320px; height: 320px; background: var(--morado-2); top: 30%; left: -120px; animation-delay: -10s; }

.th-anillo {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.th-a1 { width: 620px; height: 620px; right: -160px; top: 50%; margin-top: -310px; animation: girarLento 50s linear infinite; border-style: dashed; }
.th-a2 { width: 420px; height: 420px; right: -60px; top: 50%; margin-top: -210px; animation: girarLento 34s linear infinite reverse; }

@keyframes girarLento { to { transform: rotate(360deg); } }

.th-contenido { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; width: 100%; }

.th-pre {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 26px;
}

.th-pre::before {
    content: "";
    width: 38px;
    height: 1px;
    background: var(--acento);
    animation: lineaCrece 1.2s ease both;
}

@keyframes lineaCrece { from { width: 0; } }

/* La frase: cada palabra entra con su retraso (--i) */
.th-frase {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(46px, 8.4vw, 118px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    min-height: 2.1em;
    max-width: 960px;
}

.th-frase span {
    display: inline-block;
    opacity: 0;
    transform: translateY(46px) rotate(3deg);
    filter: blur(10px);
    animation: palabraEntra 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: calc(var(--i) * 0.13s);
}

.th-frase span.destacada { font-style: italic; color: var(--acento); }

/* Al cambiar de frase, las palabras salen hacia arriba */
.th-frase.saliendo span {
    animation: palabraSale 0.5s ease forwards;
    animation-delay: calc(var(--i) * 0.04s);
}

@keyframes palabraEntra { to { opacity: 1; transform: none; filter: blur(0); } }

@keyframes palabraSale {
    from { opacity: 1; transform: none; filter: blur(0); }
    to   { opacity: 0; transform: translateY(-40px); filter: blur(8px); }
}

/* Puntos para saltar a una frase */
.th-puntos { display: flex; gap: 10px; margin: 30px 0 34px; }

.th-puntos button {
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
    transition: background 0.3s ease, width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.th-puntos button:hover { background: rgba(255, 255, 255, 0.5); }
.th-puntos button.activo { width: 56px; background: var(--acento); }

.th-cta { position: relative; }
.th-cta::after {
    content: "";
    position: absolute;
    inset: -6px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    animation: ctaPulso 2.4s ease-out infinite;
}

@keyframes ctaPulso { 0% { transform: scale(0.96); opacity: 0.9; } 100% { transform: scale(1.12); opacity: 0; } }

/* Cinta inferior que se desplaza */
.th-cinta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 16px 0;
    z-index: 2;
}

.th-cinta div { display: flex; gap: 34px; width: max-content; animation: desfilar 26s linear infinite; }

.th-cinta span {
    font-family: var(--serif);
    font-style: italic;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}

/* ================================= */
/* 3. TARJETA DEL ASISTENTE Y PASOS */
/* ================================= */

.registro { background: var(--hueso); padding: 80px 24px 110px; scroll-margin-top: 20px; }

.registro-tarjeta {
    max-width: 780px;
    margin: 0 auto;
    background: var(--blanco);
    border: 1px solid var(--linea-oscura);
    padding: 44px 50px 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
    animation: aparecer 0.7s ease both;
}

.registro-pasos {
    display: flex;
    justify-content: space-between;
    list-style: none;
    gap: 8px;
    margin-bottom: 14px;
}

.registro-pasos li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--niebla);
    transition: color 0.3s ease;
}

.registro-pasos li b { font-weight: 600; }

.registro-pasos li span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--linea-oscura);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: transform 0.4s cubic-bezier(0.2, 1.5, 0.4, 1), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.registro-pasos li.activo { color: var(--negro); }
.registro-pasos li.activo span { background: var(--negro); color: var(--blanco); border-color: var(--negro); transform: scale(1.15); }
.registro-pasos li.hecho span { background: var(--acento); border-color: var(--acento); color: #fff; font-size: 0; }
.registro-pasos li.hecho span::after { content: "✓"; font-size: 14px; }

.registro-barra { height: 2px; background: var(--linea-oscura); margin-bottom: 36px; }

.registro-barra i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--negro), var(--acento));
    transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================================= */
/* 4. PANELES DEL ASISTENTE */
/* ================================= */

.reg-panel { display: none; }
.reg-panel.activo { display: block; animation: regEntra 0.55s cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes regEntra {
    from { opacity: 0; transform: translateX(34px); }
    to   { opacity: 1; transform: none; }
}

.reg-panel h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 32px;
    margin-bottom: 8px;
}

.reg-sub { color: var(--niebla); line-height: 1.6; margin-bottom: 26px; }

.reg-botones { display: flex; gap: 12px; margin-top: 10px; }
.reg-botones .btn-ancho { flex: 1; }
.reg-botones-centro { justify-content: center; flex-wrap: wrap; }
.reg-botones .btn-secundario { padding: 14px 22px; }

/* ================================= */
/* 5. ÉXITO Y ESTADO */
/* ================================= */

.reg-exito, .reg-estado { text-align: center; }

.exito-avatar {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 6px auto 22px;
}

/* Anillo de color que gira alrededor de la foto */
.exito-avatar::before {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--acento), #ffb36b, var(--acento));
    animation: fabGiro 3s linear infinite;
}

.exito-avatar img {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--blanco);
    animation: avatarAparece 0.9s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

@keyframes avatarAparece { from { opacity: 0; transform: scale(0.3) rotate(-20deg); } }

.exito-check {
    position: absolute;
    right: -2px;
    bottom: 6px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--acento);
    color: #fff;
    border: 4px solid var(--blanco);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    animation: checkPop 0.7s 0.7s cubic-bezier(0.2, 1.8, 0.4, 1) both;
}

@keyframes checkPop { from { transform: scale(0) rotate(-90deg); } }

.reg-exito .reg-sub { max-width: 520px; margin-left: auto; margin-right: auto; }
.exito-cuenta { margin-top: 16px; font-size: 13px; color: var(--niebla); }

.estado-icono {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: var(--acento-suave);
    color: var(--acento);
    animation: estadoLatido 2.2s ease-in-out infinite;
}

@keyframes estadoLatido { 50% { transform: scale(1.1); box-shadow: 0 0 0 16px rgba(var(--morado-rgb), 0.08); } }

/* ================================= */
/* 6. PANEL DE LA CREADORA (MARCA) */
/* ================================= */

.marca-cabecera { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.marca-cabecera h3 { margin: 0; }

.marca-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--acento);
    background: var(--hueso);
}

/* ================================= */
/* 7. RESPONSIVE */
/* ================================= */

@media (max-width: 720px) {
    .taller-encabezado { padding: 20px 22px; }
    .taller-hero { padding: 30px 22px 100px; min-height: 68vh; }
    .registro { padding: 50px 14px 80px; }
    .registro-tarjeta { padding: 30px 22px 36px; }
    .registro-pasos li b { display: none; }          /* en móvil solo se ven los números */
    .reg-panel h2 { font-size: 26px; }
    .reg-botones { flex-direction: column-reverse; }
    .th-a1, .th-a2 { opacity: 0.5; }
}
