/* =================================================================
 * GUÍA "Promociona tus anuncios / ¿Cómo funciona?"
 * Estilos de la guía de anuncios promocionados (clases .tca-ads-guide*,
 * .tca-ads-steps*, .tca-ads-pkg*). Se usa en dos sitios:
 *   - Shortcode [tca_ads_guide] (páginas públicas / Elementor)
 *   - (opcional) tab "ads" del dashboard si se reengancha la guía
 * Por eso vive en su propio archivo: una sola fuente de verdad.
 * ================================================================= */
.tca-ads-guide {
    background: #fff;
    border: 1px solid #e5e7f2;
    border-radius: 12px;
    margin: 0 0 20px;
    box-shadow: 0 1px 4px rgba(10,37,64,.05);
    overflow: hidden;
}
.tca-ads-guide__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
}
.tca-ads-guide__titlewrap { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.tca-ads-guide__icon { color: #e91e63; font-size: 22px; margin-top: 2px; flex: 0 0 auto; }
.tca-ads-guide__title { margin: 0 0 2px; font-size: 17px; font-weight: 700; color: #0a2540; }
.tca-ads-guide__sub { margin: 0; font-size: 13px; color: #6b7280; line-height: 1.4; }
.tca-ads-guide__toggle {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 7px;
    background: #f3f6fb; border: 1px solid #e0e6f0; color: #0a2540;
    font-size: 13px; font-weight: 600; cursor: pointer;
    padding: 7px 12px; border-radius: 999px;
    transition: background .15s ease;
}
.tca-ads-guide__toggle:hover { background: #e7edf6; }
.tca-ads-guide__toggle i { font-size: 12px; transition: transform .2s ease; }

.tca-ads-guide__body {
    padding: 0 18px 18px;
    max-height: 1200px;
    transition: max-height .3s ease, opacity .2s ease, padding .3s ease;
    overflow: hidden;
}
.tca-ads-guide.is-collapsed .tca-ads-guide__body {
    max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0;
}
.tca-ads-guide.is-collapsed .tca-ads-guide__toggle i { transform: rotate(180deg); }

/* Variante sin colapsable (páginas públicas): el toggle se oculta y el cuerpo
   queda siempre abierto, sin transición que recorte la altura. */
.tca-ads-guide--static .tca-ads-guide__toggle { display: none; }
.tca-ads-guide--static .tca-ads-guide__body { max-height: none; transition: none; }

/* 3 pasos */
.tca-ads-steps {
    list-style: none; margin: 0 0 18px; padding: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.tca-ads-step {
    display: flex; align-items: flex-start; gap: 10px;
    background: #f7f9fc; border-radius: 10px; padding: 12px 14px;
}
.tca-ads-step__num {
    flex: 0 0 auto;
    width: 26px; height: 26px; border-radius: 50%;
    background: #0071a9; color: #fff;
    font-weight: 800; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}
.tca-ads-step__txt { font-size: 13px; color: #3a4654; line-height: 1.4; }

/* Paquetes */
.tca-ads-packages__title { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #0a2540; }
.tca-ads-packages__grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
    align-items: stretch; /* todas las cajas a la misma altura */
}
.tca-ads-pkg {
    text-align: left; cursor: pointer;
    background: #fff; border: 1.5px solid #e5e7f2; border-radius: 12px;
    padding: 14px 16px;
    display: flex; flex-direction: column; gap: 5px;
    height: 100%; /* ocupar toda la altura de la celda del grid */
    text-decoration: none; /* por si se renderiza como <a> (contexto público) */
    transition: border-color .15s ease, box-shadow .15s ease, transform .08s ease;
}
.tca-ads-pkg:hover { border-color: #e91e63; box-shadow: 0 4px 14px rgba(233,30,99,.14); }
.tca-ads-pkg:active { transform: scale(.99); }
/* Croquis: dónde aparece el anuncio. Se ve entero (contain) sobre fondo suave. */
.tca-ads-pkg__img {
    display: block; margin: -2px -2px 8px; /* sangra hacia los bordes de la caja */
    background: #f1f5fa; border-radius: 9px;
    overflow: hidden; line-height: 0;
}
.tca-ads-pkg__img .tca-ads-pkg__img-el,
.tca-ads-pkg__img img {
    width: 100%; height: 120px; object-fit: contain;
    display: block; padding: 8px; box-sizing: border-box;
}
.tca-ads-pkg__name { font-size: 15px; font-weight: 700; color: #0a2540; }
.tca-ads-pkg__price { font-size: 18px; font-weight: 800; color: #e91e63; }
.tca-ads-pkg__period { font-size: 12px; font-weight: 600; color: #8a93a0; }
/* Descripción: se ve completa; si es muy larga, scroll interno (cajas igualadas). */
.tca-ads-pkg__desc {
    font-size: 12.5px; color: #6b7280; line-height: 1.4;
    max-height: 84px; overflow-y: auto; padding-right: 4px;
    overscroll-behavior: contain;
}
.tca-ads-pkg__desc::-webkit-scrollbar { width: 5px; }
.tca-ads-pkg__desc::-webkit-scrollbar-thumb { background: #d4dae4; border-radius: 3px; }
/* La CTA queda anclada abajo para alinear todas las cajas. */
.tca-ads-pkg__cta {
    margin-top: auto; padding-top: 8px;
    font-size: 13px; font-weight: 700; color: #e91e63;
    display: inline-flex; align-items: center; gap: 6px;
}
.tca-ads-pkg__cta i { font-size: 11px; transition: transform .15s ease; }
.tca-ads-pkg:hover .tca-ads-pkg__cta i { transform: translateX(3px); }

.tca-ads-guide__nolistings {
    display: flex; align-items: flex-start; gap: 8px;
    margin: 12px 0 0; padding: 10px 14px;
    background: #fff8e6; border: 1px solid #f3e0a8; border-radius: 10px;
    font-size: 13px; color: #7a5a00; line-height: 1.4;
}
.tca-ads-guide__nolistings i { color: #c9920a; margin-top: 1px; flex: 0 0 auto; }

/* Responsive */
@media (max-width: 768px) {
    .tca-ads-steps { grid-template-columns: 1fr; gap: 8px; }
    .tca-ads-guide__head { padding: 14px; flex-wrap: wrap; }
    .tca-ads-guide__body { padding: 0 14px 14px; }
    .tca-ads-packages__grid { grid-template-columns: 1fr; }
    .tca-ads-guide__title { font-size: 16px; }
}
