﻿:root {
  --treile-rojo: #881713;
  --treile-amarillo: #f6d264;
  --treile-fondo: var(--treile-rojo);
  --treile-texto: #fffaf3;

  --treile-font-display: "Distro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --treile-font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --treile-font-script: "Poetic Script", ui-serif, "Times New Roman", serif;
}

@font-face {
  font-family: "Distro";
  src: url("../fonts/Distro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DistroL";
  src: url("../fonts/DistroL-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poetic Script";
  src: url("../fonts/PoeticScript-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* BODY – base limpia */
body {
  background-color: var(--treile-fondo);
  color: var(--treile-texto);
  font-family: var(--treile-font-body);
}

/* TITULARES TIPO AFICHE */
h1,
h2,
.navbar-brand {
  font-family: var(--treile-font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* NAVBAR */
.navbar-treile {
  background-color: var(--treile-rojo);
  --treile-nav-logo-h: 42px;
  padding: 0.6rem 0;
  z-index: 1030;
}

/* Asegura que el navbar quede pegado arriba aunque Bootstrap no cargue por algún motivo */
.navbar-treile.sticky-top {
  position: sticky;
  top: 0;
}

.navbar-treile .navbar-brand {
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
}

.navbar-treile .nav-link {
  color: #ffffff;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.55rem 0.9rem;
}

.navbar-treile .nav-link.active,
.navbar-treile .nav-link:hover {
  color: var(--treile-amarillo);
}

/* NAV EN INDEX: aparece al terminar el hero */
body.nav-after-hero [data-nav-after-hero] {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease, visibility 0s linear 180ms;
}

body.nav-after-hero [data-nav-after-hero].is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 180ms ease, opacity 180ms ease;
}

/* BOTONES */
.btn-treile {
  background-color: var(--treile-amarillo);
  border: 2px solid var(--treile-amarillo);
  color: var(--treile-rojo);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-treile:hover,
.btn-treile:focus {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
}

.navbar-treile .treile-logo {
  height: var(--treile-nav-logo-h);
  width: auto;
  display: block;
}

@media (min-width: 992px) {
  .navbar-treile {
    --treile-nav-logo-h: 48px;
    padding: 0.75rem 0;
  }

  .navbar-treile .nav-link {
    font-size: 0.88rem;
    padding: 0.45rem 1rem;
  }
}

/* HERO – franja afiche */
.menu-hero {
  padding: 4rem 0 2.5rem;
  border-bottom: 3px solid var(--treile-amarillo);
  border-top: 8px solid var(--treile-rojo);
  background: linear-gradient(to bottom, #7b1411 0%, var(--treile-rojo) 60%, #5f0f0d 100%);
}

.menu-hero-subtitle {
  font-family: var(--treile-font-script);
  letter-spacing: 0.25em;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--treile-amarillo);
}

.menu-hero h1 {
  color: var(--treile-amarillo);
}

.menu-hero__art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.menu-hero__img {
  width: min(240px, 70vw);
  height: auto;
  max-height: 220px;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.28));
}

/* TÍTULOS DE SECCIÓN MANUSCRITOS */
.menu-section-title {
  font-family: var(--treile-font-script);
  font-size: 1.9rem;
  color: var(--treile-amarillo);
  margin-bottom: 0.5rem;
  letter-spacing: 0.12em;
}

/* CONTENEDOR DE CATEGORÍAS */
.menu-category {
  margin-bottom: 2.3rem;
}

.home-split .menu-section-title {
  margin-bottom: 0.6rem;
}

.home-split__lead {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0;
}

.treile-split-img {
  max-height: 360px;
  width: auto;
}

/* ITEMS DEL MENÚ – línea punteada afiche */
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dotted var(--treile-amarillo);
  padding: 0.25rem 0;
  font-size: 0.95rem;
}

.menu-item-name {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.menu-item-desc {
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.78);
  text-transform: none;
}

.menu-price {
  margin-left: 1rem;
  white-space: nowrap;
  font-weight: 700;
  color: var(--treile-amarillo);
}

/* BLOQUES ILUSTRATIVOS – para dejar espacios a futuro */
.menu-illustration {
  border: 2px solid var(--treile-rojo);
  border-radius: 0.75rem;
  padding: 1.3rem;
  font-size: 0.8rem;
  text-align: center;
  color: #a85a5a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: #fffdf6;
}

.treile-illustration-img {
  width: min(380px, 100%);
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Separadores ilustrados del menú */
.menu-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
  overflow: hidden;
}

.menu-divider__img {
  width: 50%;
  max-width: 520px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.32));
}

/* Imagen dentro de columna: más pequeña */
.menu-divider--small .menu-divider__img {
  max-width: 380px;
}

/* Imagen central entre bloques: más protagonista */
.menu-divider--wide .menu-divider__img {
  max-width: 620px;
}

/* Imagen inferior */
.menu-divider--bottom .menu-divider__img {
  max-width: 560px;
}

/* Si luego agregas imágenes reales, úsalo así:
   <div class="menu-illustration">
     <img src="img/guitarra-treile.svg" alt="Ilustración Treile" class="img-fluid mb-2">
     <p>Texto pequeño si quieres</p>
   </div>
*/

/* =========================
   FOOTER TREILE
========================= */

footer.treile-footer-bg {
  margin-top: 4rem;
  width: 100%;
  background-image: url("../img/backgrounds/footer-bg.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  border-top: 4px solid var(--treile-rojo);
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--treile-font-body);
}

/* capa suave SOLO para legibilidad */
footer.treile-footer-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(136, 23, 19, 0.92) 0%,
    rgba(136, 23, 19, 0.72) 45%,
    rgba(136, 23, 19, 0.38) 100%
  );
  pointer-events: none;
}

.treile-footer {
  padding-top: 2.5rem;
  padding-bottom: 2.1rem;
  position: relative;
  z-index: 2;
}

/* GRID */
.treile-footer__grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* COLUMNAS */
.treile-footer__column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* LOGO */
.treile-footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.treile-footer__brandmark {
  width: 128px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}

/* TITULOS */
.treile-footer__title {
  font-family: var(--treile-font-display);
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--treile-amarillo);
  margin: 0 0 1rem;
}

/* TEXTOS */
.treile-footer__text {
  margin: 0 0 0.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}

.treile-footer__fine {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* LINKS */
.treile-footer__link {
  display: inline-block;
  margin-bottom: 0.6rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  transition: color 120ms ease, transform 120ms ease;
}

.treile-footer__link:hover {
  color: var(--treile-amarillo);
  transform: translateX(2px);
}

/* REDES */
.treile-social {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.treile-social__link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 140ms ease, background-color 140ms ease;
}

.treile-social__link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.treile-social__icon {
  width: 20px;
  height: 20px;
}

/* COPYRIGHT */
.treile-footer__bottom {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* FOCUS */
.treile-social__link:focus-visible,
.treile-footer__link:focus-visible {
  outline: 3px solid rgba(246, 210, 100, 0.7);
  outline-offset: 3px;
}

/* MOBILE */
@media (max-width: 768px) {
  .treile-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .treile-social {
    justify-content: center;
  }

  .treile-footer__link {
    margin-left: auto;
    margin-right: auto;
  }
}

/* CAROUSEL HOME */
.home-hero {
  position: relative;
  height: 100svh;
  min-height: 100vh;
}

.home-hero__carousel {
  position: relative;
  z-index: 1;
  height: 100%;
}

.home-hero__carousel .carousel-inner,
.home-hero__carousel .carousel-item {
  height: 100%;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  pointer-events: none;
}

.home-hero__logo {
  width: min(560px, 78vw);
  height: auto;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.35));
}

.home-hero__img {
  height: 100%;
  object-fit: cover;
}

.home-cta-float {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 1040;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

body.nav-after-hero {
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
}

#treileCarousel .carousel-inner {
  border: 2px solid var(--treile-rojo);
  border-radius: 0;
  overflow: hidden;
}

#treileCarousel .carousel-caption {
  background-color: rgba(136, 23, 19, 0.85);
  padding: 0.75rem 1rem;
  border-radius: 0;
}

#treileCarousel .carousel-caption h5 {
  font-family: var(--treile-font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#treileCarousel .carousel-caption p {
  font-size: 0.85rem;
}
