/* ═══════════════════════════════════════════════════════════════════════════
   home-afiliados.css — Portada: «¿Tienes una web? Gana dinero con Transotel»
   Ubicacion: Transotel.Web/wwwroot/css/home-afiliados.css

   LOTE AFILIADOS-PORTADA · 20/11/2026. Fichero NUEVO. Lo carga Index.cshtml
   solo cuando el bloque sale (hay titulo y boton en el CMS), igual que
   home-gancho.css.

   Va entre «Para hoteles» (fondo azul marino) y los telefonos (fondo gris
   claro), sobre fondo blanco: panel crema con borde dorado, iconos verdes
   (#008572) y el boton dorado (#dfbb3e) de toda la web.

   TODO EL PREFIJO ES .haf- : ni una regla puede escaparse a otra seccion.

   RESPONSIVE: una columna en movil (texto y boton, y debajo los tres
   puntos); dos columnas desde 900 px.
   ═══════════════════════════════════════════════════════════════════════════ */

.haf *,
.haf *::before,
.haf *::after { box-sizing: border-box; }

.haf-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
    padding: clamp(1.4rem, 1rem + 2.4vw, 2.6rem);
    border: 1px solid rgba(223, 187, 62, .55);
    border-radius: 18px;
    background: linear-gradient(160deg, #fffdf6 0%, #fbf3da 100%);
    color: #111827;
    box-shadow: 0 10px 30px rgba(11, 31, 58, .08);
}

.haf-panel > * { min-width: 0; }

.haf-titulo {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    margin: 0 0 .8rem;
    font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
    font-weight: 800;
    line-height: 1.25;
    color: #0B1F3A;
    overflow-wrap: break-word;
}

.haf-titulo i {
    flex: none;
    font-size: .85em;
    color: #008572;
}

.haf-parrafo {
    margin: 0 0 1.4rem;
    max-width: 62ch;
    color: #374151;
    line-height: 1.65;
}

.haf-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    max-width: 100%;
    padding: .8rem 1.4rem;
    border-radius: 999px;
    border: 2px solid transparent;
    background: #dfbb3e;
    color: #1d2b28;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color .15s ease;
}

.haf-boton:hover,
.haf-boton:focus-visible {
    background: #c9a52f;
    color: #1d2b28;
    text-decoration: none;
}

.haf-boton:focus-visible {
    outline: 3px solid #008572;
    outline-offset: 2px;
}

.haf-puntos {
    display: grid;
    gap: .7rem;
    align-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.haf-puntos li {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .8rem 1rem;
    border: 1px solid rgba(0, 133, 114, .16);
    border-radius: 12px;
    background: #fff;
    color: #1f2937;
    line-height: 1.45;
    overflow-wrap: break-word;
}

.haf-puntos li > span:last-child { min-width: 0; }

.haf-puntos__icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    background: rgba(0, 133, 114, .12);
    color: #008572;
}

/* Desde 900 px: texto y boton a la izquierda, los tres puntos a la derecha. */
@media (min-width: 900px) {
    .haf-panel--con-puntos {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        gap: 2.6rem;
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .haf-boton { transition: none; }
}

/* Impresion: sin fondo de color ni boton. */
@media print {
    .haf-panel { background: none !important; border-color: #999 !important; box-shadow: none !important; }
    .haf-titulo,
    .haf-parrafo,
    .haf-puntos li { color: #000 !important; }
    .haf-puntos li { border-color: #999 !important; background: none !important; }
    .haf-boton { display: none !important; }
}
