/* ══════════════════════════════════════════════════════════════════════
   Embudo de venta — captación pública + tablero del panel.
   Todo con las variables de marca (vino/oro/crema) de custom.css: el módulo
   tiene que verse como parte de la academia, no como un CRM cualquiera.
   Botones con altura táctil ≥ 40px porque Diana trabaja desde el móvil.
   ══════════════════════════════════════════════════════════════════════ */

/* ───────────────────────── Captación pública ───────────────────────── */

.embudo-captacion {
    padding: 4rem 0;
}

.embudo-captacion-caja {
    max-width: 760px;
    background: var(--brand-blush);
    border: 1px solid rgba(217, 184, 134, .55);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(75, 21, 19, .08);
}

/* Filete de oro: el detalle que la hace de la academia */
.embudo-captacion-filete {
    height: 4px;
    background: linear-gradient(90deg, var(--brand-gold), var(--brand-wine), var(--brand-gold));
}

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

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

.embudo-subtitulo {
    color: var(--brand-muted);
    font-size: 1rem;
    max-width: 46ch;
    margin-inline: auto;
}

.embudo-label {
    color: var(--brand-ink);
    font-weight: 600;
    font-size: .9rem;
}

.embudo-input,
.embudo-input:focus {
    background: #fff;
    border: 1px solid rgba(141, 32, 31, .18);
    border-radius: 10px;
    min-height: 46px;
    color: var(--brand-ink);
}

.embudo-input:focus {
    border-color: var(--brand-wine);
    box-shadow: 0 0 0 .2rem rgba(141, 32, 31, .12);
}

textarea.embudo-input {
    min-height: 96px;
}

.embudo-check .form-check-label {
    color: var(--brand-muted);
    font-size: .88rem;
}

.embudo-check .form-check-input:checked {
    background-color: var(--brand-wine);
    border-color: var(--brand-wine);
}

.embudo-btn {
    background: var(--brand-wine);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: .8rem 2.1rem;
    min-height: 46px;
    font-weight: 600;
    letter-spacing: .01em;
    transition: background .2s ease, transform .2s ease;
}

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

.embudo-btn-wa {
    background: #fff;
    color: var(--brand-wine);
    border: 1px solid var(--brand-wine);
    border-radius: 999px;
    padding: .8rem 2.1rem;
    min-height: 46px;
    font-weight: 600;
}

.embudo-btn-wa:hover {
    background: var(--brand-wine);
    color: #fff;
}

.embudo-nota {
    color: var(--brand-muted);
    font-size: .88rem;
}

/* Honeypot: fuera de la vista pero accesible para el bot que rellena todo */
.embudo-trampa {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ─────────────────────────── Página de gracias ─────────────────────────── */

.embudo-gracias {
    padding: 5rem 0;
}

.embudo-gracias-caja {
    max-width: 660px;
    background: var(--brand-cream-light);
    border: 1px solid rgba(217, 184, 134, .55);
    border-radius: 18px;
    padding: 3rem 2rem;
}

.embudo-gracias-icono {
    width: 78px;
    height: 78px;
    margin: 0 auto 1.4rem;
    border-radius: 50%;
    background: var(--brand-blush);
    color: var(--brand-wine);
    font-size: 1.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--brand-gold);
}

/* ───────────────────────────── Panel: tablero ───────────────────────────── */

.embudo-kpi {
    background: var(--brand-cream-light);
    border: 1px solid rgba(217, 184, 134, .5);
    border-left: 4px solid var(--brand-wine);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    height: 100%;
}

.embudo-kpi.oro {
    border-left-color: var(--brand-gold);
}

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

.embudo-kpi-valor {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.9rem;
    color: var(--brand-wine);
    line-height: 1.1;
}

/* Kanban: columnas fijas de 260px y scroll lateral (funciona en el móvil) */
.embudo-kanban {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x proximity;
}

.embudo-columna {
    flex: 0 0 auto;
    min-width: 260px;
    width: 280px;
    background: var(--brand-cream-light);
    border: 1px solid rgba(217, 184, 134, .45);
    border-radius: 14px;
    overflow: hidden;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.embudo-columna-cab {
    background: var(--brand-wine);
    color: var(--brand-cream);
    padding: .7rem .9rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
}

/* La columna "Alumno" es la meta: se marca en oro */
.embudo-columna--alumno .embudo-columna-cab {
    background: var(--brand-gold);
    color: var(--brand-wine-deep);
}

.embudo-columna--perdido .embudo-columna-cab {
    background: var(--brand-muted);
    color: #fff;
}

.embudo-columna-cuenta {
    background: rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: .05rem .55rem;
    font-size: .8rem;
}

.embudo-columna--alumno .embudo-columna-cuenta {
    background: rgba(47, 14, 13, .14);
}

.embudo-columna-cuerpo {
    padding: .7rem;
    display: flex;
    flex-direction: column;
    gap: .7rem;
    min-height: 90px;
    max-height: 70vh;
    overflow-y: auto;
}

.embudo-tarjeta {
    background: #fff;
    border: 1px solid rgba(141, 32, 31, .14);
    border-radius: 10px;
    padding: .7rem .8rem;
}

.embudo-tarjeta-nombre {
    font-weight: 600;
    color: var(--brand-wine);
    text-decoration: none;
    display: block;
    line-height: 1.3;
}

.embudo-tarjeta-nombre:hover {
    color: var(--brand-wine-dark);
    text-decoration: underline;
}

.embudo-tarjeta-meta {
    font-size: .78rem;
    color: var(--brand-muted);
    line-height: 1.5;
}

.embudo-chip {
    display: inline-block;
    background: var(--brand-blush);
    color: var(--brand-wine);
    border: 1px solid rgba(217, 184, 134, .6);
    border-radius: 999px;
    padding: .05rem .5rem;
    font-size: .72rem;
    margin-top: .25rem;
}

/* Iconos rápidos: WhatsApp / correo / ficha, con área táctil cómoda */
.embudo-acciones {
    display: flex;
    gap: .35rem;
    margin-top: .55rem;
}

.embudo-icono {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    border: 1px solid rgba(141, 32, 31, .2);
    color: var(--brand-wine);
    background: #fff;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.embudo-icono:hover {
    background: var(--brand-wine);
    color: #fff;
}

.embudo-icono.wa:hover {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

.embudo-mover {
    margin-top: .55rem;
}

.embudo-mover select {
    font-size: .8rem;
    min-height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(141, 32, 31, .2);
    color: var(--brand-ink);
}

.embudo-vacio {
    color: var(--brand-muted);
    font-size: .82rem;
    text-align: center;
    padding: 1rem .5rem;
}

/* ───────────────────────── Panel: lo que toca hoy ───────────────────────── */

.embudo-hoy {
    background: var(--brand-blush);
    border: 1px solid rgba(217, 184, 134, .55);
    border-left: 5px solid var(--brand-gold);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
}

.embudo-hoy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    padding: .55rem 0;
    border-bottom: 1px solid rgba(217, 184, 134, .4);
    flex-wrap: wrap;
}

.embudo-hoy-item:last-child {
    border-bottom: none;
}

.embudo-hoy-vencido {
    color: var(--brand-clay);
    font-weight: 600;
}

/* ───────────────────────── Panel: ficha y badges ───────────────────────── */

.embudo-badge {
    display: inline-block;
    border-radius: 999px;
    padding: .18rem .7rem;
    font-size: .78rem;
    font-weight: 600;
    background: var(--brand-blush);
    color: var(--brand-wine);
    border: 1px solid rgba(217, 184, 134, .7);
}

.embudo-badge--alumno {
    background: var(--brand-gold);
    color: var(--brand-wine-deep);
    border-color: var(--brand-gold);
}

.embudo-badge--perdido {
    background: #efe7e6;
    color: var(--brand-muted);
    border-color: #e0d2d0;
}

.embudo-panel {
    background: #fff;
    border: 1px solid rgba(217, 184, 134, .5);
    border-radius: 14px;
}

.embudo-panel-cab {
    background: var(--brand-cream-light);
    border-bottom: 1px solid rgba(217, 184, 134, .5);
    padding: .8rem 1.1rem;
    font-weight: 600;
    color: var(--brand-wine);
    border-radius: 14px 14px 0 0;
}

.embudo-linea {
    border-left: 2px solid rgba(217, 184, 134, .7);
    padding: 0 0 1.1rem 1.1rem;
    position: relative;
}

.embudo-linea::before {
    content: '';
    position: absolute;
    left: -6px;
    top: .35rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-wine);
}

.embudo-linea:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

/* ─────────────────────── Panel: campañas (barras CSS) ─────────────────────── */

.embudo-barra {
    background: var(--brand-blush);
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
}

.embudo-barra span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--brand-wine), var(--brand-rose));
    border-radius: 999px;
}

.embudo-barra span.oro {
    background: linear-gradient(90deg, var(--brand-gold), #eccfa4);
}

.embudo-tabla th {
    background: var(--brand-cream-light);
    color: var(--brand-wine);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}

.embudo-tabla td {
    vertical-align: middle;
}

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

@media (max-width: 767.98px) {
    .embudo-captacion { padding: 2.5rem 0; }
    .embudo-columna { width: 260px; }
    .embudo-columna-cuerpo { max-height: none; }
    .embudo-gracias-caja { padding: 2rem 1.2rem; }
}
