/* ============================================================
   BULLRIDER — Hoja de estilos
   Dirección de arte: cartel taurino en clave eléctrica, fiel
   al letrero real del local (BULL⚡RIDER, blanco sobre rojo).
   Rojo capote, papel crema, amarillo albero, tinta y fotos
   reales del negocio enmarcadas como en un cartel impreso.
   ============================================================ */

:root {
    --tinta:        #1C120C;   /* negro ruedo, cálido */
    --rojo:         #A8231A;   /* rojo capote */
    --rojo-hondo:   #6E120B;   /* rojo de sombra */
    --crema:        #F3E5C4;   /* papel de cartel */
    --crema-tenue:  rgba(243, 229, 196, 0.35);
    --albero:       #F0A81C;   /* amarillo albero / chispa */

    --fuente-cartel: 'Alfa Slab One', 'Rockwell Extra Bold', serif;
    --fuente-texto:  'Archivo', 'Segoe UI', sans-serif;
    --fuente-mono:   ui-monospace, 'Cascadia Mono', 'Consolas', monospace;

    --alto-barra: 62px;

    /* Textura de grano para el papel */
    --grano: 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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ----------------------- Base ----------------------- */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--fuente-texto);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--crema);
    background: var(--tinta);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: inherit; }

:focus-visible {
    outline: 3px solid var(--albero);
    outline-offset: 3px;
}

/* Las secciones enlazadas quedan por debajo de la barra fija */
section, header { scroll-margin-top: var(--alto-barra); }

/* ----------------------- Rayo del logotipo ----------------------- */

.rayo-mini,
.rayo-titulo { fill: var(--albero); }

.rayo-mini {
    height: 0.85em;
    width: auto;
    margin: 0 0.08em;
    vertical-align: -0.08em;
}

.rayo-titulo {
    height: 0.78em;
    width: auto;
    flex: none;
}

/* Parpadeo eléctrico del rayo del título */
@keyframes chispa {
    0%, 89%, 93%, 100% { opacity: 1; }
    90%, 96%            { opacity: 0.25; }
    91%, 97%            { opacity: 0.8; }
}
.rayo-titulo { animation: chispa 7s infinite; }

/* ----------------------- Barra de navegación ----------------------- */

.barra {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: var(--alto-barra);
    padding: 0.55rem 1.5rem;
    background: var(--tinta);
    border-bottom: 3px solid var(--albero);
}

.barra__logo {
    font-family: var(--fuente-cartel);
    font-size: 1.25rem;
    letter-spacing: 0.03em;
    color: var(--crema);
    text-decoration: none;
    white-space: nowrap;
}

.barra__enlaces {
    display: flex;
    gap: 1.6rem;
    margin-left: auto;
}
.barra__enlaces a {
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: var(--crema);
    opacity: 0.85;
}
.barra__enlaces a:hover {
    opacity: 1;
    color: var(--albero);
}

.barra__tel {
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: var(--tinta);
    background: var(--albero);
    padding: 0.5em 1em;
    box-shadow: 0.2em 0.2em 0 rgba(24, 9, 5, 0.8);
    white-space: nowrap;
}
.barra__tel:hover { transform: translate(-1px, -1px); }

/* ----------------------- Hero / Cartel con foto ----------------------- */

.cartel {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: calc(100svh - var(--alto-barra));
    background:
        radial-gradient(ellipse 120% 90% at 30% 20%, var(--rojo) 0%, var(--rojo-hondo) 100%);
    overflow: hidden;
}

/* Grano de papel sobre el rojo (y sobre la foto, para unificar) */
.cartel::after,
.remate::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--grano);
    opacity: 0.09;
    pointer-events: none;
    z-index: 3;
}

/* Marco doble, como el filete de un cartel impreso */
.cartel__marco {
    position: absolute;
    inset: 16px;
    border: 2px solid var(--crema-tenue);
    pointer-events: none;
    z-index: 4;
}
.cartel__marco::after {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid var(--crema-tenue);
}

.cartel__contenido {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.15rem;
    padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4.5rem);
}

.cartel__plaza {
    font-family: var(--fuente-mono);
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    opacity: 0.85;
}

.cartel__titulo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.05em;
    font-family: var(--fuente-cartel);
    font-weight: 400;
    font-size: clamp(2.7rem, 6.5vw, 6rem);
    line-height: 0.95;
    letter-spacing: 0.01em;
    color: var(--crema);
    text-shadow: 0.05em 0.06em 0 rgba(28, 10, 6, 0.85);
}

/* Filete doble bajo el título, como en el letrero del mostrador */
.cartel__filete {
    width: min(420px, 70%);
    height: 8px;
    border-top: 4px solid var(--crema);
    border-bottom: 1px solid var(--crema);
}

.cartel__lema {
    font-family: var(--fuente-mono);
    font-size: clamp(0.72rem, 1.5vw, 0.95rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.cartel__sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 600;
    max-width: 42ch;
    text-wrap: balance;
    opacity: 0.95;
}

.cartel__acciones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.6rem;
}

.cartel__resena {
    font-family: var(--fuente-mono);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--crema);
    text-decoration: none;
    border-bottom: 1px solid var(--crema-tenue);
    padding-bottom: 2px;
}
.cartel__resena:hover { border-color: var(--albero); }
.estrellas { color: var(--albero); letter-spacing: 0.15em; margin-right: 0.4em; }

/* Foto del local pegada en el cartel */
.cartel__foto {
    position: relative;
    min-height: 320px;
}
.cartel__foto img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.02) contrast(1.05);
}
/* Viñeta roja y filete para fundir la foto con el cartel */
.cartel__foto::after {
    content: "";
    position: absolute;
    inset: 0;
    border-left: 2px solid var(--crema-tenue);
    box-shadow: inset 0 0 110px rgba(110, 18, 11, 0.35);
    pointer-events: none;
}

/* Aparición escalonada al cargar (estilo impresión por tandas) */
@keyframes aparecer {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}
.revela-carga {
    opacity: 0;
    animation: aparecer 0.7s ease-out forwards;
    animation-delay: calc(var(--orden, 0) * 130ms);
}

/* ----------------------- Botones ----------------------- */

.boton {
    display: inline-block;
    font-family: var(--fuente-texto);
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    padding: 0.95em 1.7em;
    border: 2px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease,
                background-color 0.15s ease, color 0.15s ease;
}

.boton--albero {
    background: var(--albero);
    color: var(--tinta);
    box-shadow: 0.3em 0.3em 0 rgba(24, 9, 5, 0.8);
}
.boton--albero:hover {
    transform: translate(-2px, -2px);
    box-shadow: 0.45em 0.45em 0 rgba(24, 9, 5, 0.8);
}
.boton--albero:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 rgba(24, 9, 5, 0.8);
}

.boton--borde {
    border-color: var(--crema);
    color: var(--crema);
}
.boton--borde:hover {
    background: var(--crema);
    color: var(--rojo-hondo);
}

.boton--grande {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    padding: 1em 1.8em;
}

/* ----------------------- Cinta corrida ----------------------- */

.cinta {
    background: var(--albero);
    color: var(--tinta);
    border-top: 3px solid var(--tinta);
    border-bottom: 3px solid var(--tinta);
    overflow: hidden;
}
.cinta__pista {
    display: flex;
    width: max-content;
    animation: rodar 26s linear infinite;
}
.cinta__grupo {
    display: inline-block;
    white-space: nowrap;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    padding: 0.8em 0;
}
.cinta__grupo i {
    font-style: normal;
    color: var(--rojo);
    margin: 0 0.9em;
}
@keyframes rodar {
    to { transform: translateX(-50%); }
}

/* ----------------------- Secciones ----------------------- */

.seccion { padding: clamp(4rem, 9vw, 7rem) 1.5rem; }

.seccion--tinta { background: var(--tinta); color: var(--crema); }

.seccion--crema { background: var(--crema); color: var(--tinta); }

.seccion--rojo {
    position: relative;
    background: radial-gradient(ellipse 120% 100% at 50% 0%, var(--rojo) 0%, var(--rojo-hondo) 100%);
    color: var(--crema);
    overflow: hidden;
}

.contenido {
    max-width: 1100px;
    margin: 0 auto;
}

.etiqueta {
    font-family: var(--fuente-mono);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.etiqueta::before {
    content: "\2605  ";  /* estrella de cartel */
    color: var(--albero);
}
.seccion--crema .etiqueta::before { color: var(--rojo); }

.titulo {
    font-family: var(--fuente-cartel);
    font-weight: 400;
    font-size: clamp(1.9rem, 5.5vw, 3.4rem);
    line-height: 1.05;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
    max-width: 20ch;
}

/* ----------------------- Servicios (tarjetas con foto) ----------------------- */

.servicios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.servicio {
    border: 1px solid var(--crema-tenue);
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.servicio:hover {
    border-color: var(--albero);
    transform: translateY(-4px);
}

.servicio__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-bottom: 2px solid var(--albero);
}
.servicio__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.02) contrast(1.04);
    transition: transform 0.35s ease;
}
.servicio:hover .servicio__media img { transform: scale(1.05); }

.servicio__cuerpo { padding: 1.5rem 1.6rem 1.8rem; }

.servicio h3 {
    font-family: var(--fuente-cartel);
    font-weight: 400;
    font-size: 1.35rem;
    margin-bottom: 0.7rem;
}

.servicio p {
    font-size: 0.98rem;
    opacity: 0.88;
}

/* ----------------------- Parte de taller ----------------------- */

.parte {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 3rem;
}

.parte li {
    border-top: 2px solid var(--tinta);
    padding: 1.2rem 0 1.4rem;
}

.parte b {
    display: block;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 1.02rem;
    margin-bottom: 0.25rem;
}
.parte b::before {
    content: "\26A1 ";   /* rayo */
    color: var(--rojo);
}

.parte span {
    font-size: 0.95rem;
    opacity: 0.8;
}

.parte__nota {
    margin-top: 2.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    border-left: 4px solid var(--rojo);
    padding-left: 1rem;
}

/* ----------------------- Galería de la tienda ----------------------- */

.galeria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.galeria figure { margin: 0; }

.galeria img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 2px solid var(--crema-tenue);
    filter: saturate(1.02) contrast(1.04);
    transition: border-color 0.2s ease;
}
.galeria figure:hover img { border-color: var(--albero); }

.galeria figcaption {
    font-family: var(--fuente-mono);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 0.7rem;
    opacity: 0.8;
}
.galeria figcaption::before {
    content: "\2605 ";
    color: var(--albero);
}

.galeria__nota {
    margin-top: 2.5rem;
    font-weight: 600;
    border-left: 4px solid var(--albero);
    padding-left: 1rem;
}

/* ----------------------- Dónde estamos ----------------------- */

.donde {
    display: grid;
    grid-template-columns: minmax(280px, 2fr) 3fr;
    gap: 2.5rem;
    align-items: stretch;
}

.donde__datos h3 {
    font-family: var(--fuente-mono);
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--albero);
    margin: 1.8rem 0 0.5rem;
}
.donde__datos h3:first-child { margin-top: 0; }

.donde__datos .boton { margin-top: 2rem; }

.horario {
    border-collapse: collapse;
    width: 100%;
}
.horario td {
    padding: 0.35rem 0;
    vertical-align: top;
}
.horario td:first-child {
    font-weight: 600;
    padding-right: 1.5rem;
    white-space: nowrap;
}

.enlace {
    color: var(--crema);
    text-decoration-color: var(--albero);
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}
.enlace:hover { color: var(--albero); }

.donde__mapa {
    border: 2px solid var(--crema-tenue);
    min-height: 420px;
}
.donde__mapa iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(0.85) contrast(1.03);
}

/* ----------------------- Remate (CTA final) ----------------------- */

.remate { text-align: center; }
.remate > .contenido { position: relative; z-index: 1; }

.remate__titulo {
    font-family: var(--fuente-cartel);
    font-weight: 400;
    font-size: clamp(2.2rem, 7vw, 4.8rem);
    line-height: 1.05;
    text-shadow: 0.05em 0.06em 0 rgba(28, 10, 6, 0.7);
    margin-bottom: 1.2rem;
}

.remate__texto {
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    margin-bottom: 2.2rem;
}

.remate__acciones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
}

/* ----------------------- Pie ----------------------- */

.pie {
    background: var(--tinta);
    color: var(--crema);
    text-align: center;
    padding: 3rem 1.5rem;
    font-size: 0.95rem;
    border-top: 1px solid var(--crema-tenue);
}

.pie__marca {
    font-family: var(--fuente-cartel);
    font-size: 1.5rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
}

.pie p { margin-bottom: 0.4rem; }

.pie__anyo {
    margin-top: 0.8rem;
    opacity: 0.55;
    font-size: 0.85rem;
}

/* ----------------------- Botón flotante WhatsApp ----------------------- */

.flotante {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 50;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--albero);
    color: var(--tinta);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease;
}
.flotante:hover { transform: scale(1.08); }
.flotante svg { width: 32px; height: 32px; }

/* ----------------------- Aparición al hacer scroll ----------------------- */

/* Solo se ocultan los elementos si hay JavaScript (clase .js en <html>) */
.js .revela {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.js .revela.visible {
    opacity: 1;
    transform: none;
}

/* ----------------------- Movimiento reducido ----------------------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .revela-carga { animation: none; opacity: 1; }
    .rayo-titulo { animation: none; }
    .cinta__pista { animation: none; }
    .js .revela { opacity: 1; transform: none; transition: none; }
    .boton, .servicio, .servicio__media img, .flotante { transition: none; }
}

/* ----------------------- Adaptación a tableta y móvil ----------------------- */

@media (max-width: 980px) {
    .cartel { grid-template-columns: 1fr; }
    .cartel__foto {
        min-height: 42vh;
        order: 2;
    }
    .cartel__foto::after {
        border-left: 0;
        border-top: 2px solid var(--crema-tenue);
    }
}

@media (max-width: 900px) {
    .barra__enlaces { display: none; }
    .servicios { grid-template-columns: 1fr; }
    .galeria { grid-template-columns: 1fr; }
    .galeria img { aspect-ratio: 4 / 3; }
    .donde { grid-template-columns: 1fr; }
    .donde__mapa { min-height: 320px; }
}

@media (max-width: 640px) {
    .cartel__contenido { padding: 3rem 1.2rem; gap: 0.9rem; }
    .cartel__marco { inset: 10px; }
    .cartel__plaza { letter-spacing: 0.22em; font-size: 0.72rem; }
    .cartel__lema { letter-spacing: 0.12em; }
    .parte { grid-template-columns: 1fr; }
    .boton { width: 100%; text-align: center; }
    .cartel__acciones, .remate__acciones { width: 100%; }
    .remate__acciones .boton { width: 100%; }
}
