/* ══════════════════════════════════════════════════════════════════════
   Túneles de venta — landing pública + panel.
   Todo con las variables de marca de custom.css (vino/oro/crema). Se apoya
   en embudo.css para lo compartido (inputs, checks, botón de WhatsApp).
   La landing se diseña PARA EL MÓVIL: casi todo el tráfico viene de una
   historia de Instagram, en vertical y con una sola mano.
   ══════════════════════════════════════════════════════════════════════ */

.tunel-body {
    background: var(--brand-cream-light);
    color: var(--brand-ink);
}

/* Aviso de vista previa (solo lo ve Diana con su sesión abierta) */
.tunel-preview {
    background: var(--brand-gold);
    color: var(--brand-wine-deep);
    text-align: center;
    font-weight: 600;
    font-size: .9rem;
    padding: .6rem 1rem;
}

/* ─────────────────── Cabecera y pie mínimos ─────────────────── */

.tunel-cabecera {
    padding: 1.1rem 1rem;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid rgba(217, 184, 134, .5);
}

.tunel-marca {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: var(--brand-wine);
    font-family: var(--tunel-heading-font, Georgia, 'Times New Roman', serif);
    font-size: 1.1rem;
    letter-spacing: .02em;
}

.tunel-marca img {
    height: 34px;
    width: auto;
}

.tunel-marca em {
    color: var(--brand-gold);
    font-style: normal;
}

.tunel-pie {
    background: var(--brand-wine-deep);
    color: rgba(255, 255, 255, .7);
    text-align: center;
    font-size: .85rem;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.tunel-pie a {
    color: var(--brand-cream);
    text-decoration: none;
}

.tunel-pie a:hover {
    text-decoration: underline;
}

/* ─────────────────── Cabecera de la landing ─────────────────── */

.tunel-hero {
    padding: 3rem 0 2.5rem;
    background: linear-gradient(180deg, var(--brand-blush), var(--brand-cream-light));
}

.tunel-kicker {
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--brand-gold);
    font-weight: 700;
    margin-bottom: .5rem;
}

.tunel-titular {
    font-family: var(--tunel-heading-font, Georgia, 'Times New Roman', serif);
    color: var(--brand-wine);
    font-size: clamp(1.9rem, 5.5vw, 3.1rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.tunel-promesa {
    font-size: clamp(1.05rem, 2.4vw, 1.25rem);
    line-height: 1.65;
    color: var(--brand-ink);
    max-width: 46ch;
    margin-left: auto;
    margin-right: auto;
}

.tunel-texto {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--brand-ink);
}

.tunel-nota {
    color: var(--brand-muted);
    font-size: .9rem;
    line-height: 1.6;
}

.tunel-h2 {
    font-family: var(--tunel-heading-font, Georgia, 'Times New Roman', serif);
    color: var(--brand-wine);
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
    line-height: 1.25;
}

.tunel-h3 {
    font-family: var(--tunel-heading-font, Georgia, 'Times New Roman', serif);
    color: var(--brand-wine);
    font-size: 1.25rem;
    line-height: 1.3;
}

.tunel-fecha {
    display: inline-block;
    background: #fff;
    border: 1px solid rgba(217, 184, 134, .7);
    border-radius: 999px;
    padding: .45rem 1.1rem;
    color: var(--brand-wine);
    font-weight: 600;
    margin-top: .5rem;
}

.tunel-fecha-sep {
    margin: 0 .45rem;
    color: var(--brand-gold);
}

.tunel-imagen {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid rgba(217, 184, 134, .55);
    box-shadow: 0 18px 45px rgba(75, 21, 19, .12);
}

/* Vídeo responsivo sin librerías */
.tunel-video {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-top: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(217, 184, 134, .55);
    background: var(--brand-wine-deep);
}

.tunel-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ─────────────────── Cuenta atrás ─────────────────── */

.tunel-cuenta {
    display: flex;
    gap: .6rem;
    margin-top: 1.1rem;
    flex-wrap: wrap;
}

.tunel-cuenta-caja {
    background: #fff;
    border: 1px solid rgba(217, 184, 134, .6);
    border-radius: 12px;
    min-width: 68px;
    padding: .55rem .4rem;
    text-align: center;
}

.tunel-cuenta-caja strong {
    display: block;
    font-family: var(--tunel-heading-font, Georgia, 'Times New Roman', serif);
    font-size: 1.6rem;
    color: var(--brand-wine);
    line-height: 1.1;
}

.tunel-cuenta-caja span {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand-muted);
}

.tunel-cuenta-ya {
    background: var(--brand-gold);
    color: var(--brand-wine-deep);
    border-radius: 12px;
    padding: .7rem 1.2rem;
    font-weight: 700;
}

/* ─────────────────── Caja del formulario ─────────────────── */

.tunel-caja {
    background: #fff;
    border: 1px solid rgba(217, 184, 134, .6);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(75, 21, 19, .1);
}

.tunel-caja-filete {
    height: 4px;
    background: linear-gradient(90deg, var(--brand-gold), var(--brand-wine), var(--brand-gold));
}

.tunel-form .form-label {
    margin-bottom: .3rem;
}

.tunel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-wine);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: .95rem 2rem;
    min-height: 52px;
    font-weight: 700;
    font-size: 1.02rem;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.tunel-btn:hover,
.tunel-btn:focus {
    background: var(--brand-wine-dark);
    color: #fff;
    transform: translateY(-1px);
}

.tunel-cerrado-icono {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: var(--brand-blush);
    color: var(--brand-wine);
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--brand-gold);
}

/* ─────────────────── Secciones de contenido ─────────────────── */

.tunel-seccion {
    padding: 3.5rem 0;
}

.tunel-punto {
    background: #fff;
    border: 1px solid rgba(217, 184, 134, .5);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    height: 100%;
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    line-height: 1.6;
}

.tunel-punto i {
    color: var(--brand-gold);
    background: var(--brand-blush);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    min-width: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
}

.tunel-lista {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 720px;
}

.tunel-lista li {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    padding: .8rem 0;
    border-bottom: 1px solid rgba(217, 184, 134, .5);
    line-height: 1.6;
}

.tunel-lista li:last-child {
    border-bottom: none;
}

.tunel-lista i {
    color: var(--brand-wine);
    margin-top: .25rem;
}

/* ─────────────────── Diana y testimonios ─────────────────── */

.tunel-diana {
    display: flex;
    gap: 2rem;
    align-items: center;
    max-width: 860px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.tunel-diana-foto {
    width: 210px;
    height: 210px;
    max-width: 100%;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 4px solid var(--brand-gold);
    object-fit: cover;
    box-shadow: 0 14px 35px rgba(75, 21, 19, .18);
}

.tunel-diana-texto {
    flex: 1 1 320px;
}

.tunel-testimonio {
    background: #fff;
    border: 1px solid rgba(217, 184, 134, .5);
    border-radius: 14px;
    padding: 1.4rem;
    height: 100%;
    margin: 0;
}

.tunel-testimonio i {
    color: var(--brand-gold);
    font-size: 1.2rem;
}

.tunel-testimonio blockquote {
    margin: .7rem 0 .9rem;
    font-style: italic;
    line-height: 1.65;
    color: var(--brand-ink);
}

.tunel-testimonio figcaption {
    color: var(--brand-wine);
    font-weight: 600;
    font-size: .9rem;
}

/* ─────────────────── Gracias ─────────────────── */

.tunel-entrega {
    background: var(--brand-blush);
    border: 1px solid rgba(217, 184, 134, .6);
    border-radius: 14px;
    padding: 1.1rem;
    margin-top: 1.4rem;
}

.tunel-entrega-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--brand-muted);
    font-weight: 700;
}

.tunel-entrega-valor {
    font-family: var(--tunel-heading-font, Georgia, 'Times New Roman', serif);
    font-size: 1.4rem;
    color: var(--brand-wine);
}

.tunel-siguiente {
    background: var(--brand-cream-light);
    border: 1px solid rgba(217, 184, 134, .55);
    border-radius: 18px;
    padding: 1.6rem;
}

.tunel-siguiente-foto {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.tunel-precio {
    font-family: var(--tunel-heading-font, Georgia, 'Times New Roman', serif);
    font-size: 1.5rem;
    color: var(--brand-wine);
}

/* ─────────────────── Botón pegajoso del móvil ─────────────────── */

.tunel-sticky {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-wine);
    color: #fff;
    border-radius: 999px;
    min-height: 54px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(47, 14, 13, .35);
}

.tunel-sticky:hover,
.tunel-sticky:focus {
    background: var(--brand-wine-dark);
    color: #fff;
}

/* ─────────────────── Panel: lista de túneles ─────────────────── */

.tunel-tarjeta {
    background: #fff;
    border: 1px solid rgba(217, 184, 134, .55);
    border-radius: 14px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tunel-tarjeta-cab {
    background: var(--brand-cream-light);
    border-bottom: 1px solid rgba(217, 184, 134, .5);
    padding: .9rem 1.1rem;
}

.tunel-estado {
    display: inline-block;
    border-radius: 999px;
    padding: .1rem .65rem;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.tunel-estado--borrador {
    background: #efe7e6;
    color: var(--brand-muted);
}

.tunel-estado--publicado {
    background: var(--brand-gold);
    color: var(--brand-wine-deep);
}

.tunel-estado--cerrado {
    background: var(--brand-muted);
    color: #fff;
}

.tunel-metricas {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: .9rem 1.1rem;
    border-top: 1px solid rgba(217, 184, 134, .4);
    margin-top: auto;
}

.tunel-metrica strong {
    display: block;
    font-family: var(--tunel-heading-font, Georgia, 'Times New Roman', serif);
    font-size: 1.35rem;
    color: var(--brand-wine);
    line-height: 1.1;
}

.tunel-metrica span {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--brand-muted);
}

/* Editor: cada sección con su cabecera y su ayuda */
.tunel-ayuda {
    display: block;
    color: var(--brand-muted);
    font-size: .8rem;
    margin-top: .25rem;
    line-height: 1.5;
}

.tunel-tipo-opcion {
    border: 1px solid rgba(217, 184, 134, .6);
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
    height: 100%;
}

.tunel-tipo-opcion h6 {
    color: var(--brand-wine);
    font-weight: 700;
    margin-bottom: .25rem;
}

/* ─────────────────── Móvil ─────────────────── */

@media (max-width: 991.98px) {
    .tunel-hero { padding: 2rem 0; }
    .tunel-seccion { padding: 2.5rem 0; }
    /* Hueco para que el botón pegajoso no tape el final de la página */
    .tunel-pie { padding-bottom: 5.5rem; }
    .tunel-diana { gap: 1.2rem; justify-content: center; text-align: center; }
    .tunel-diana-foto { width: 150px; height: 150px; margin: 0 auto; }
    .tunel-cuenta-caja { min-width: 60px; flex: 1; }
}

/* ══════════════════════════════════════════════════════════════════════
   Bloques públicos del constructor (Fase 2)
   Pensado para el móvil: mucho aire, tipografía grande, botones de ancho
   completo con área táctil generosa. Nada de librerías: todo CSS propio.
   ══════════════════════════════════════════════════════════════════════ */

/* Secciones más juntas cuando el bloque es pequeño (un botón, un precio) */
.tunel-seccion--corta {
    padding: 2rem 0;
}

/* Cajas de ancho contenido, sin estilos sueltos en cada plantilla */
.tunel-caja--estrecha { max-width: 560px; }
.tunel-caja--media { max-width: 620px; }
.tunel-precio-caja { max-width: 460px; }

/* El botón de ancho completo: el del móvil, el que de verdad se pulsa */
.tunel-btn--ancho {
    width: 100%;
    min-height: 56px;
    text-align: center;
    /* Permitir que el texto del botón salte de línea en móvil: sin esto,
       textos largos como «QUIERO PARTICIPAR AL WORKSHOP GRATUITO» se
       truncan en pantallas estrechas. */
    white-space: normal;
    line-height: 1.3;
    padding: .8rem 1.2rem;
}

/* ── Lista con iconos ── */
.tunel-lista-icono {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(217, 184, 134, .8);
    color: var(--brand-wine);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    margin-top: .1rem;
}

.tunel-lista li {
    font-size: 1.02rem;
}

/* Ancla invisible para que un botón apunte a una sección sin cambiarle el id. */
.tunel-ancla {
    display: block;
}

.tunel-lista-check {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-top: .05rem;
}

/* ══════════════════════ Fondos de caja (titular/texto/lista) ══════════════
   Opción `fondo`: ninguno | rosa | amarillo | crema. «crema» reproduce
   exactamente el tono que ya tenía siempre la lista (var(--brand-blush)), así
   que los datos viejos sin esta clave se pintan igual que hoy. ══════════ */

.tunel-hero.tunel-fondo-rosa,
.tunel-seccion.tunel-fondo-rosa {
    background: rgb(227, 168, 168);
}

.tunel-hero.tunel-fondo-rosa .tunel-kicker,
.tunel-hero.tunel-fondo-rosa .tunel-titular,
.tunel-hero.tunel-fondo-rosa .tunel-promesa,
.tunel-hero.tunel-fondo-rosa .tunel-fecha,
.tunel-seccion.tunel-fondo-rosa .tunel-h2,
.tunel-seccion.tunel-fondo-rosa .tunel-texto,
.tunel-seccion.tunel-fondo-rosa .tunel-lista li {
    color: #fff;
}

.tunel-hero.tunel-fondo-amarillo,
.tunel-seccion.tunel-fondo-amarillo {
    background: rgba(247, 246, 207, .8);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(75, 21, 19, .12);
}

.tunel-hero.tunel-fondo-crema,
.tunel-seccion.tunel-fondo-crema {
    background: var(--brand-blush);
}

/* La imagen de fondo SOLO en móvil del bloque «titular» (imagen_fondo_movil):
   el bloque la pasa como variable CSS en `style`, ya saneada; aquí decidimos
   cuándo y cómo se usa, sin que la plantilla escriba un background a mano.
   En móvil se añade una capa semitransparente oscura para que el texto
   blanco tenga contraste y sea legible. */
@media (max-width: 768px) {
    .tunel-hero[style*="--tunel-hero-bg-movil"] {
        background-image: var(--tunel-hero-bg-movil);
        background-size: cover;
        background-position: center;
        position: relative;
    }
    .tunel-hero[style*="--tunel-hero-bg-movil"]::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0.9) 100%);
        z-index: 0;
    }
    .tunel-hero[style*="--tunel-hero-bg-movil"] > .container {
        position: relative;
        z-index: 1;
    }
    .tunel-hero[style*="--tunel-hero-bg-movil"] .tunel-titular,
    .tunel-hero[style*="--tunel-hero-bg-movil"] .tunel-promesa,
    .tunel-hero[style*="--tunel-hero-bg-movil"] .tunel-kicker {
        color: #fff;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
    }
}

/* ══════════════════════ Estilos de botón y su subtexto ══════════════════
   Opción `estilo`: principal (el vino de siempre, sin clase extra) | rosa |
   vino | suave. Son colores fijos (no dependen del tema): Diana los elige
   bloque a bloque, como en la landing de systeme.io. ══════════════════ */

.tunel-btn--rosa {
    background: #db6a8f;
}

.tunel-btn--rosa:hover,
.tunel-btn--rosa:focus {
    background: #c85a7d;
    color: #fff;
}

.tunel-btn--vino {
    background: rgb(107, 17, 1);
}

.tunel-btn--vino:hover,
.tunel-btn--vino:focus {
    background: rgb(80, 12, 0);
    color: #fff;
}

/* «suave»: rosa muy claro. Con el texto vino para que se lea (en systeme el
   texto blanco sobre este rosa no tenía contraste suficiente). */
.tunel-btn--suave {
    background: rgb(255, 214, 214);
    color: rgb(107, 17, 1);
}

.tunel-btn--suave:hover,
.tunel-btn--suave:focus {
    background: rgb(255, 196, 196);
    color: rgb(107, 17, 1);
}

.tunel-boton-fecha {
    margin: .7rem 0 0;
    font-size: .88rem;
    color: var(--brand-muted);
    text-align: center;
}

/* ══════════════════════ Portada (réplica de systeme.io) ══════════════════ */

.tunel-portada-logo {
    height: 44px;
    width: auto;
    margin-bottom: 1.5rem;
}

.tunel-portada-filas {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
    align-items: center;
}

.tunel-portada-imagen img {
    width: 100%;
    max-width: 440px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.tunel-portada-texto {
    text-align: center;
}

.tunel-h1-portada {
    font-family: var(--tunel-heading-font, Georgia, 'Times New Roman', serif);
    color: var(--brand-wine);
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (min-width: 992px) {
    .tunel-portada-filas {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .tunel-portada-filas--derecha {
        flex-direction: row-reverse;
    }

    .tunel-portada-imagen,
    .tunel-portada-texto {
        flex: 1 1 50%;
        min-width: 0;
    }

    .tunel-portada-texto {
        text-align: left;
    }
}

/* ══════════════════════ Perfil (coach) ══════════════════════════════════ */

.tunel-perfil-filas {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.tunel-perfil-texto {
    text-align: center;
}

.tunel-perfil-cargo {
    color: var(--brand-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tunel-perfil-foto img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 16px;
}

@media (min-width: 992px) {
    .tunel-perfil-filas {
        flex-direction: row-reverse;
        text-align: left;
    }

    .tunel-perfil-filas--izquierda {
        flex-direction: row;
    }

    .tunel-perfil-texto,
    .tunel-perfil-foto {
        flex: 1 1 50%;
        min-width: 0;
    }

    .tunel-perfil-texto {
        text-align: left;
    }
}

/* ══════════════════════ Galería ══════════════════════════════════════════ */

.tunel-galeria-columna {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.tunel-galeria-columna img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .25);
}

.tunel-galeria-rejilla {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tunel-galeria-rejilla img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .25);
}

@media (min-width: 768px) {
    .tunel-galeria-rejilla { grid-template-columns: repeat(3, 1fr); }
}

/* ══════════════════════ Pie con contacto ══════════════════════════════════ */

.tunel-pie-contacto {
    background: rgba(244, 207, 223, .5);
}

.tunel-pie-contacto-filas {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tunel-pie-contacto-iconos {
    display: flex;
    gap: .9rem;
    font-size: 1.3rem;
}

.tunel-pie-contacto-iconos a {
    color: var(--brand-wine);
}

.tunel-pie-contacto-iconos a:hover {
    color: var(--brand-wine-dark);
}

.tunel-pie-contacto-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--brand-muted);
}

.tunel-pie-contacto-lista li {
    margin-bottom: .4rem;
}

@media (min-width: 768px) {
    .tunel-pie-contacto-filas {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ── Testimonios ── */
.tunel-testimonio {
    background: var(--brand-cream-light);
    position: relative;
}

.tunel-testimonio-comilla {
    color: var(--brand-gold);
    font-size: 1.5rem;
    line-height: 1;
}

/* ── Precio ── */
.tunel-precio-antes {
    color: var(--brand-muted);
    font-size: 1.1rem;
    margin-bottom: .1rem;
}

.tunel-precio-antes del {
    text-decoration-color: var(--brand-rose);
}

.tunel-precio-ahora {
    font-family: var(--tunel-heading-font, Georgia, 'Times New Roman', serif);
    font-size: clamp(2.4rem, 8vw, 3.4rem);
    line-height: 1.05;
    color: var(--brand-wine);
    margin-bottom: .5rem;
}

/* ── Preguntas frecuentes (plegables, sin JavaScript) ── */
.tunel-faq {
    background: #fff;
    border: 1px solid rgba(217, 184, 134, .6);
    border-radius: 14px;
    margin-bottom: .7rem;
    overflow: hidden;
}

.tunel-faq > summary {
    list-style: none;
    cursor: pointer;
    padding: 1.05rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--brand-wine);
    min-height: 56px;
    line-height: 1.45;
}

.tunel-faq > summary::-webkit-details-marker { display: none; }

.tunel-faq > summary i {
    color: var(--brand-gold);
    transition: transform .2s ease;
    margin-left: auto;
}

.tunel-faq[open] > summary {
    background: var(--brand-blush);
}

.tunel-faq[open] > summary i {
    transform: rotate(180deg);
}

.tunel-faq-respuesta {
    padding: 1rem 1.2rem 1.2rem;
    line-height: 1.7;
    color: var(--brand-ink);
    border-top: 1px solid rgba(217, 184, 134, .45);
}

/* ══════════════════════════════════════════════════════════════════════
   Panel: el constructor (mapa del embudo y editor de un paso)
   ══════════════════════════════════════════════════════════════════════ */

/* ── El mapa: la cadena de pasos ── */
.tunel-mapa {
    max-width: 760px;
}

.tunel-paso-tarjeta {
    background: #fff;
    border: 1px solid rgba(217, 184, 134, .6);
    border-radius: 14px;
    overflow: hidden;
}

.tunel-paso-tarjeta.arrastrando {
    opacity: .5;
}

.tunel-paso-tarjeta.encima {
    border-color: var(--brand-wine);
    box-shadow: 0 0 0 3px rgba(141, 32, 31, .15);
}

.tunel-paso-cab {
    display: flex;
    align-items: center;
    gap: .7rem;
    background: var(--brand-cream-light);
    border-bottom: 1px solid rgba(217, 184, 134, .5);
    padding: .8rem 1rem;
}

.tunel-paso-num {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    background: var(--brand-wine);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tunel-paso-icono {
    color: var(--brand-gold);
    font-size: 1.05rem;
}

.tunel-paso-nombre {
    font-weight: 700;
    color: var(--brand-wine);
    line-height: 1.3;
}

.tunel-arrastre {
    color: var(--brand-muted);
    cursor: grab;
}

.tunel-paso-cifras {
    display: flex;
    gap: 1.3rem;
    flex-wrap: wrap;
}

.tunel-paso-cifras strong {
    display: block;
    font-family: var(--tunel-heading-font, Georgia, 'Times New Roman', serif);
    font-size: 1.3rem;
    color: var(--brand-wine);
    line-height: 1.1;
}

.tunel-paso-cifras span {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--brand-muted);
}

/* La flecha entre paso y paso: el número que hay que mirar */
.tunel-flecha {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    padding: .6rem 0 .6rem 1.2rem;
    margin: .35rem 0 .35rem 1.1rem;
    border-left: 3px solid rgba(217, 184, 134, .8);
    color: var(--brand-muted);
}

.tunel-flecha > i {
    color: var(--brand-gold);
}

.tunel-flecha-cifra {
    font-family: var(--tunel-heading-font, Georgia, 'Times New Roman', serif);
    font-size: 1.3rem;
    color: var(--brand-wine);
}

.tunel-flecha-nota {
    font-size: .85rem;
}

.tunel-flecha--fuga {
    border-left-color: #c0392b;
    background: #fdeceb;
    border-radius: 0 10px 10px 0;
}

.tunel-flecha--fuga .tunel-flecha-cifra,
.tunel-flecha--fuga > i {
    color: #c0392b;
}

.tunel-flecha-aviso {
    background: #c0392b;
    color: #fff;
    border-radius: 999px;
    padding: .1rem .7rem;
    font-size: .74rem;
    font-weight: 700;
}

/* ── Añadir (paso o bloque): el catálogo plegable ── */
.tunel-anadir > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    background: var(--brand-wine);
    color: #fff;
    border-radius: 999px;
    padding: .6rem 1.4rem;
    font-weight: 700;
    min-height: 44px;
}

.tunel-anadir > summary::-webkit-details-marker { display: none; }

.tunel-anadir > summary:hover {
    background: var(--brand-wine-dark);
}

.tunel-catalogo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: .8rem;
    margin-top: 1rem;
}

.tunel-catalogo-item {
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid rgba(217, 184, 134, .65);
    border-radius: 12px;
    padding: .9rem 1rem;
    line-height: 1.45;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.tunel-catalogo-item:hover {
    border-color: var(--brand-wine);
    box-shadow: 0 6px 18px rgba(75, 21, 19, .1);
}

.tunel-catalogo-item i {
    color: var(--brand-gold);
    margin-right: .45rem;
}

.tunel-catalogo-item strong {
    color: var(--brand-wine);
}

.tunel-catalogo-item span {
    display: block;
    color: var(--brand-muted);
    font-size: .82rem;
    margin-top: .2rem;
}

/* ── Editor de un paso: cada bloque, una tarjeta plegable ── */
.tunel-bloque {
    border: 1px solid rgba(217, 184, 134, .6);
    border-radius: 12px;
    margin-bottom: .9rem;
    background: #fff;
    overflow: hidden;
}

.tunel-bloque-cab {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1rem;
    background: var(--brand-cream-light);
    min-height: 48px;
}

.tunel-bloque-cab::-webkit-details-marker { display: none; }

.tunel-bloque-cab i {
    color: var(--brand-gold);
}

.tunel-bloque-cab strong {
    color: var(--brand-wine);
}

.tunel-bloque-pista {
    color: var(--brand-muted);
    font-size: .84rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tunel-bloque-cuerpo {
    padding: 1rem;
    border-top: 1px solid rgba(217, 184, 134, .45);
}

.tunel-bloque-pie {
    display: flex;
    gap: .4rem;
    justify-content: flex-end;
    padding: .5rem 1rem;
    border-top: 1px solid rgba(217, 184, 134, .35);
    background: #fffdfb;
}

/* Filas que se repiten (testimonios, preguntas frecuentes, encuesta) */
.tunel-fila-repetida {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    border-left: 3px solid rgba(217, 184, 134, .7);
    padding-left: .8rem;
}

.tunel-fila-repetida > * {
    flex: 1 1 240px;
}

.tunel-miniatura {
    max-height: 130px;
    border-radius: 10px;
    border: 1px solid rgba(217, 184, 134, .6);
}

/* Saltar de un paso a otro sin volver al mapa */
.tunel-saltos {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tunel-saltos a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .7rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--brand-ink);
    line-height: 1.3;
}

.tunel-saltos a:hover {
    background: var(--brand-cream-light);
}

.tunel-saltos a.activo {
    background: var(--brand-blush);
    font-weight: 700;
    color: var(--brand-wine);
}

.tunel-saltos i {
    color: var(--brand-gold);
    width: 18px;
    text-align: center;
}

.tunel-lateral {
    position: sticky;
    top: 1rem;
}

/* Las tres entregas posibles del paso de gracias, separadas */
.tunel-entrega-bloque {
    border-top: 1px dashed rgba(217, 184, 134, .8);
    padding-top: .6rem;
}

/* Estadísticas: una fila por paso, con su barra */
.tunel-fila-embudo {
    padding: .8rem 0;
    border-bottom: 1px solid rgba(217, 184, 134, .35);
}

.tunel-fila-embudo:last-of-type {
    border-bottom: none;
}

@media (max-width: 991.98px) {
    .tunel-lateral { position: static; }
    .tunel-paso-cifras { gap: 1rem; }
    .tunel-catalogo { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════
   El constructor rediseñado (2026-09-10): una etapa cada vez, y el editor
   con el panel de elementos a la izquierda, como en systeme.io.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── El mapa vacío: lo primero que ve Diana al crear el embudo ── */
.tunel-vacio {
    text-align: center;
    background: #fff;
    border: 1px dashed rgba(217, 184, 134, .9);
    border-radius: 18px;
    padding: 2.6rem 1.5rem;
}

.tunel-vacio-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--brand-blush);
    color: var(--brand-wine);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tunel-vacio-texto {
    max-width: 62ch;
    margin: 0 auto 1.6rem;
}

.tunel-vacio-caja {
    background: var(--brand-blush);
    border: 1px solid rgba(217, 184, 134, .55);
    border-radius: 16px;
    padding: 1.4rem 1.5rem;
}

/* El atajo de las plantillas: existe, pero no compite con el botón grande. */
.tunel-atajo > summary {
    list-style: none;
    cursor: pointer;
    color: var(--brand-muted);
    font-size: .88rem;
    text-decoration: underline;
}

.tunel-atajo > summary::-webkit-details-marker { display: none; }
.tunel-atajo > summary:hover { color: var(--brand-wine); }

.tunel-siguiente-etapa {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

/* ── El asistente de crear una etapa ── */
.tunel-pasitos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--brand-muted);
    font-size: .9rem;
}

.tunel-pasitos li {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.tunel-pasitos span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(217, 184, 134, .3);
    color: var(--brand-wine);
    font-weight: 700;
    font-size: .82rem;
}

.tunel-pasitos li.activo { color: var(--brand-wine); font-weight: 700; }
.tunel-pasitos li.activo span { background: var(--brand-wine); color: #fff; }
.tunel-pasitos li.hecho span { background: var(--brand-gold); color: #fff; }

.tunel-tipos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.tunel-tipo-tarjeta {
    display: block;
    background: #fff;
    border: 1px solid rgba(217, 184, 134, .7);
    border-radius: 14px;
    padding: 1.2rem 1.3rem;
    text-decoration: none;
    color: var(--brand-ink);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.tunel-tipo-tarjeta:hover {
    border-color: var(--brand-wine);
    box-shadow: 0 10px 26px rgba(75, 21, 19, .12);
    transform: translateY(-2px);
    color: var(--brand-ink);
}

.tunel-tipo-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-blush);
    color: var(--brand-wine);
    font-size: 1.1rem;
    margin-bottom: .7rem;
}

.tunel-tipo-tarjeta strong {
    display: block;
    color: var(--brand-wine);
    font-size: 1.05rem;
}

.tunel-tipo-frase {
    display: block;
    margin-top: .2rem;
    line-height: 1.5;
}

.tunel-tipo-ejemplo {
    display: block;
    margin-top: .6rem;
    padding-top: .6rem;
    border-top: 1px dashed rgba(217, 184, 134, .8);
    color: var(--brand-muted);
    font-size: .84rem;
    line-height: 1.5;
}

/* ── La barra de arriba del editor: siempre a la vista ── */
.tunel-barra-sup {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .9rem;
    background: #fff;
    border: 1px solid rgba(217, 184, 134, .7);
    border-radius: 14px;
    padding: .7rem 1rem;
    box-shadow: 0 6px 18px rgba(75, 21, 19, .08);
}

.tunel-barra-titulo {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 220px;
    flex: 1 1 260px;
}

.tunel-barra-titulo > i { color: var(--brand-gold); font-size: 1.2rem; }
.tunel-barra-titulo strong { color: var(--brand-wine); }

.tunel-barra-enlace { flex: 1 1 260px; max-width: 460px; }

.tunel-barra-botones {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-left: auto;
}

/* El submit que solo existe para que Intro guarde en vez de añadir algo. */
.tunel-submit-fantasma {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

/* ── El panel de elementos (la izquierda) ── */
.tunel-elementos { position: sticky; top: 5.6rem; }

.tunel-elementos-grupo {
    color: var(--brand-muted);
    font-size: .74rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    font-weight: 700;
    margin: .9rem 0 .45rem;
}

.tunel-elementos-lista {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .4rem;
}

.tunel-elemento {
    display: flex;
    align-items: center;
    gap: .45rem;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 1px solid rgba(217, 184, 134, .65);
    border-radius: 10px;
    padding: .5rem .6rem;
    font-size: .84rem;
    line-height: 1.25;
    color: var(--brand-ink);
    transition: border-color .15s ease, background .15s ease;
}

.tunel-elemento:hover {
    border-color: var(--brand-wine);
    background: var(--brand-blush);
}

.tunel-elemento i {
    color: var(--brand-gold);
    width: 16px;
    text-align: center;
    flex: 0 0 auto;
}

/* Una cabecera de panel que además pliega (los ajustes, las etapas) */
.tunel-panel-plegable {
    list-style: none;
    cursor: pointer;
}

.tunel-panel-plegable::-webkit-details-marker { display: none; }

/* ── Cada elemento de la página: su barra arriba, como en systeme.io ── */
.tunel-bloque { position: relative; }

.tunel-bloque-det > summary.tunel-bloque-cab {
    padding-right: 190px;   /* el hueco de los botones de la barra */
}

.tunel-bloque-flecha {
    transition: transform .15s ease;
    font-size: .8rem;
}

.tunel-bloque-det[open] .tunel-bloque-flecha { transform: rotate(90deg); }

.tunel-bloque-acciones {
    position: absolute;
    top: 0;
    right: .6rem;
    height: 48px;
    display: flex;
    align-items: center;
    gap: .3rem;
}

.tunel-pagina-vacia {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--brand-blush);
    border-radius: 12px;
    padding: 1.2rem 1.3rem;
    color: var(--brand-muted);
}

.tunel-pagina-vacia > i { color: var(--brand-wine); font-size: 1.3rem; }

@media (max-width: 991.98px) {
    .tunel-elementos { position: static; }
    .tunel-elementos-lista { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 575.98px) {
    .tunel-elementos-lista { grid-template-columns: 1fr 1fr; }
    .tunel-barra-sup { position: static; }
    .tunel-bloque-det > summary.tunel-bloque-cab { padding-right: 1rem; }
    .tunel-bloque-acciones {
        position: static;
        height: auto;
        justify-content: flex-end;
        padding: .5rem .8rem;
        border-top: 1px solid rgba(217, 184, 134, .35);
        background: #fffdfb;
    }
    .tunel-pagina-vacia > i { display: none; }
}
