/* site.css — estilos del sitio.
   Dirección: cartel de gira. Tipografía condensada de póster para las cifras y los meses,
   Poppins para todo lo que se lee de corrido, y el rosa de la marca usado con cuentagotas. */

:root {
    --negro:         #000;
    --superficie:    #101012;
    --superficie-2:  #17171a;
    --texto:         #f2f2f3;
    --tenue:         rgba(242, 242, 243, .52);
    --tenue-fuerte:  rgba(242, 242, 243, .72);
    --linea:         rgba(242, 242, 243, .09);
    --linea-fuerte:  rgba(242, 242, 243, .22);
    --rosa:          #ff0244;
    --rosa-oscuro:   #d9013a;
    --rosa-claro:    #ff3363;
    /* Rojo para botones con texto blanco: #ff0244 con blanco da 3.9:1 y no pasa
       el mínimo de accesibilidad; este da 5.2:1 y a simple vista es el mismo rojo. */
    --rosa-boton:    #d9013a;
    --rosa-boton-2:  #b3012f;

    --display: Anton, "Arial Narrow", sans-serif;
    --texto-familia: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;

    --ancho: 1080px;
    --ancho-ancho: 1320px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

body {
    margin: 0;
    background: var(--negro);
    color: var(--texto);
    font-family: var(--texto-familia);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Grano finísimo sobre todo el sitio: le quita el plano al negro puro. */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: .028;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; }

h1, h2, h3 { margin: 0; }

.contenedor {
    width: 100%;
    max-width: var(--ancho);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 28px);
}
.contenedor--ancho { max-width: var(--ancho-ancho); }

:focus-visible {
    outline: 2px solid var(--rosa);
    outline-offset: 3px;
    border-radius: 2px;
}

.salto-contenido {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--rosa);
    color: #fff;
    padding: 10px 18px;
    font-weight: 600;
    text-decoration: none;
}
.salto-contenido:focus { left: 12px; top: 12px; }

.visualmente-oculto {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ================================================================== cabecera */

.cabecera {
    position: sticky;
    top: 0;
    z-index: 50;
    /* Fondo sólido a propósito, sin backdrop-filter: el desenfoque obliga al navegador a
       recomponer toda la página en cada scroll y en algunos motores deja la barra en negro.
       Sobre un fondo negro no se notaba la diferencia. */
    background: var(--negro);
    border-bottom: 1px solid var(--linea);
}

.cabecera__fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 62px;
}

.cabecera__logo { display: inline-flex; align-items: center; }
.cabecera__logo img { display: block; }
.cabecera__logo img { width: clamp(104px, 13vw, 132px); filter: brightness(0) invert(1); }
.cabecera__marca {
    font-family: var(--display);
    font-size: 1.4rem;
    letter-spacing: .01em;
}

.cabecera__nav {
    display: flex;
    align-items: center;
    gap: clamp(.6rem, 2vw, 1.1rem);
}

.enlace-nav {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--tenue-fuerte);
    text-decoration: none;
    padding: .5em 0;
    transition: color .18s ease;
}
.enlace-nav:hover, .enlace-nav:focus-visible { color: var(--texto); }

.redes {
    display: flex;
    align-items: center;
    gap: .35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.redes a {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    color: var(--tenue-fuerte);
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease;
}
.redes svg { width: 17px; height: 17px; fill: currentColor; }
.redes a:hover, .redes a:focus-visible { color: var(--texto); background: var(--superficie-2); }

/* ====================================================================== hero */

.hero { position: relative; }

/* Resplandor rosa detrás del banner: profundidad sin cargar la página. */
.hero::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -12%;
    /* Nunca más ancho que la página: con 120vw se salía 39 px por lado en móvil
       y dejaba la página desplazable de lado. */
    width: min(1100px, 100%);
    aspect-ratio: 2 / 1;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(255, 2, 68, .16), transparent 68%);
    pointer-events: none;
    filter: blur(24px);
}

.hero__banner { position: relative; line-height: 0; }
.hero__banner img { width: 100%; display: block; }

/* Difuminado al pie del banner para que empalme con el negro de la página. */
.hero__banner::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 34%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,.72) 55%, var(--negro));
    pointer-events: none;
}

/* --- tira de datos, montada sobre el banner --- */

.resumen {
    position: relative;
    z-index: 2;
    /* Sin margen negativo: el título se montaba sobre el logotipo del propio banner
       y quedaban dos "Miel San Marcos" pisándose. El difuminado del pie del banner
       ya hace de transición. */
    margin-top: clamp(1rem, 2vw, 1.7rem);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(1rem, 4vw, 2.5rem);
    padding-bottom: clamp(1.4rem, 3vw, 2.2rem);
    border-bottom: 1px solid var(--linea);
}

.resumen__titulo {
    font-family: var(--display);
    font-size: clamp(2.1rem, 7vw, 4rem);
    line-height: .92;
    letter-spacing: -.015em;
    text-transform: uppercase;
}
.resumen__titulo em {
    display: block;
    font-style: normal;
    font-size: .32em;
    letter-spacing: .3em;
    color: var(--rosa);
    margin-bottom: .5em;
}

.resumen__cifras {
    display: flex;
    gap: clamp(1.2rem, 4vw, 2.6rem);
}
.cifra { line-height: 1.1; }
.cifra__n {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.5rem, 4vw, 2.1rem);
}
.cifra__t {
    font-size: .62rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--tenue);
}

/* ================================================================== filtros */

.seccion-fechas { padding-bottom: clamp(3rem, 7vw, 5rem); }

.barra-filtros {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: clamp(1.4rem, 3vw, 2rem) 0 1rem;
}
.barra-filtros__t {
    flex: 0 0 auto;
    font-size: .62rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--tenue);
}

/* Se desplazan de lado en móvil en vez de amontonarse. */
.filtros {
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.filtros::-webkit-scrollbar { display: none; }

.filtro {
    flex: 0 0 auto;
    border: 1px solid var(--linea-fuerte);
    background: transparent;
    color: var(--tenue-fuerte);
    border-radius: 100px;
    padding: .42em 1em;
    font: inherit;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .04em;
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s, border-color .18s, background-color .18s;
}
.filtro:hover { color: var(--texto); border-color: var(--texto); }
.filtro[aria-pressed="true"] {
    background: var(--texto);
    border-color: var(--texto);
    color: #000;
    font-weight: 600;
}
.filtro__n {
    opacity: .5;
    margin-left: .45em;
    font-variant-numeric: tabular-nums;
}

/* =================================================================== botones */

.btn {
    display: inline-block;
    background: var(--rosa-boton);
    color: #fff;
    border-radius: 4px;
    padding: .62em 1.5em;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .18s ease, transform .18s ease;
}
.btn:hover, .btn:focus-visible {
    background: var(--rosa-boton-2);
    color: #fff;
    transform: translateY(-1px);
}
.btn--libre {
    background: transparent;
    border: 1px solid var(--linea-fuerte);
    color: var(--tenue-fuerte);
    cursor: default;
}
.btn--libre:hover { background: transparent; transform: none; }

/* ================================================================= nosotros */

.seccion-nosotros {
    border-top: 1px solid var(--linea);
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.nosotros {
    display: grid;
    grid-template-columns: minmax(0, .62fr) minmax(0, 1fr);
    gap: clamp(1.8rem, 6vw, 5rem);
    align-items: start;
}

.nosotros__intro {
    margin: 0 0 .7rem;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--rosa);
}
.nosotros__titulo {
    font-family: var(--display);
    font-size: clamp(2.2rem, 5.2vw, 3.6rem);
    line-height: .92;
    text-transform: uppercase;
    letter-spacing: -.01em;
}

/* Párrafo de entrada: un punto de apoyo antes del texto largo. */
.nosotros__entrada {
    font-size: clamp(1.02rem, 1.7vw, 1.22rem) !important;
    line-height: 1.5;
    color: var(--texto) !important;
}

.nosotros__texto p {
    margin: 0 0 1.15rem;
    color: var(--tenue-fuerte);
    font-size: clamp(.92rem, 1.35vw, 1rem);
    max-width: 66ch;
}
.nosotros__texto p:last-child { margin-bottom: 0; }

/* Las cifras van bajo el título, en la columna izquierda: llenan el hueco que
   dejaba el título corto frente a un texto largo. */
.datos {
    display: grid;
    gap: 0;
    margin-top: clamp(1.8rem, 4vw, 2.6rem);
    border-top: 1px solid var(--linea);
}
.dato {
    margin: 0;
    padding: clamp(.9rem, 2vw, 1.15rem) 0;
    border-bottom: 1px solid var(--linea);
    display: flex;
    align-items: baseline;
    gap: .9rem;
}
.dato__n {
    flex: 0 0 auto;
    min-width: 3.2em;
    font-family: var(--display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1;
    color: var(--texto);
}
.dato__t {
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tenue);
    line-height: 1.4;
}

/* ====================================================================== pie */

.pie {
    border-top: 1px solid var(--linea);
    padding: clamp(2.4rem, 5vw, 3.4rem) 0 clamp(1.6rem, 3vw, 2.2rem);
}
.pie__fila {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
}
.pie__logo img { width: 92px; filter: brightness(0) invert(1); opacity: .9; }
.pie__marca { font-family: var(--display); font-size: 1.5rem; }

.pie__legal {
    margin: clamp(1.6rem, 3vw, 2.2rem) 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid var(--linea);
    font-size: .68rem;
    letter-spacing: .06em;
    color: var(--tenue);
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.2rem;
    justify-content: space-between;
}

/* ============================================================ chat whatsapp */

.chat-boton {
    position: fixed;
    right: 18px; bottom: 18px;
    z-index: 60;
    width: 54px; height: 54px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
    cursor: pointer;
    transition: transform .18s ease;
}
.chat-boton:hover { transform: scale(1.07); }
.chat-boton svg { width: 32px; height: 32px; }

.chat-panel {
    position: fixed;
    right: 18px; bottom: 82px;
    z-index: 61;
    width: min(320px, calc(100vw - 36px));
    border-radius: 14px;
    overflow: hidden;
    background: #ece5dd;
    color: #111;
    box-shadow: 0 16px 44px rgba(0, 0, 0, .6);
    animation: chat-entra .22s ease;
}
.chat-panel[hidden] { display: none; }
@keyframes chat-entra {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
}

.chat-panel__cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #075e54;
    color: #fff;
    padding: 12px 14px;
}
.chat-panel__cabecera p { margin: 0; font-size: .88rem; line-height: 1.3; }
.chat-panel__cabecera small { opacity: .85; }

.chat-panel__cerrar {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
}

.chat-panel__cuerpo { padding: 16px 14px; }

.chat-burbuja {
    background: #fff;
    border-radius: 0 10px 10px 10px;
    padding: 10px 12px;
    font-size: .86rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .14);
}
.chat-burbuja__autor {
    display: block;
    color: #075e54;
    font-weight: 600;
    font-size: .72rem;
    margin-bottom: 2px;
}

.chat-panel__pie {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: #f6f6f6;
}
.chat-panel__pie input {
    flex: 1;
    min-width: 0;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 9px 14px;
    font: inherit;
    font-size: .86rem;
}
.chat-panel__pie button {
    flex: 0 0 auto;
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #25d366;
    cursor: pointer;
}
.chat-panel__pie button svg { width: 17px; height: 17px; fill: #fff; }

/* ==================================================================== móvil */

@media (max-width: 899px) {
    .nosotros { grid-template-columns: 1fr; }
}

@media (max-width: 719px) {
    .cabecera__fila { min-height: 56px; }
    .enlace-nav { display: none; }
    .resumen {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 1.1rem;
    }
    .barra-filtros { flex-direction: column; align-items: flex-start; gap: .6rem; }
    .filtros { width: 100%; }
    .pie__fila { justify-content: center; text-align: center; }
    .pie__legal { justify-content: center; text-align: center; }

    /* Micro-etiquetas legibles en pantalla chica. */
    .cifra__t,
    .barra-filtros__t { font-size: .68rem; }
    .dato__t { font-size: .72rem; }
    .pie__legal { font-size: .74rem; }
}

/* Objetivos táctiles cómodos en cualquier pantalla que se toque con el dedo.
   Va por tipo de puntero y no por ancho: una tablet de 800 px también es táctil,
   y con un corte por ancho se quedaba con botones de 28 px. */
@media (pointer: coarse) {
    .filtro {
        min-height: 44px;
        padding: .5em 1.05em;
        font-size: .78rem;
    }
    .redes a { width: 44px; height: 44px; }
    .enlace-nav { padding: .85em 0; }
    .btn { padding: .75em 1.5em; }

    /* Los logos son anchos pero bajitos (25–29 px): se les da alto para tocarlos cómodo. */
    .cabecera__logo,
    .pie__logo { padding: .55rem 0; }
}
