/* ============================================
   GRUPO DEL PACO - Estilos compartidos
   ============================================ */

:root {
  --red: #c8102e;
  --red-dark: #8a0a1f;
  --bg: #0e0b09;
  --bg-2: #161210;
  --cream: #f7efe2;
  --muted: rgba(247, 239, 226, 0.72);
  --border: rgba(247, 239, 226, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--cream);
  line-height: 1.55;
}

h1,
h2,
h3 {
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  font-weight: 700;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  background: rgba(14, 11, 9, 0.97);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}
.cookie-banner p {
  margin: 0;
  color: var(--cream);
  font-size: 14px;
  line-height: 1.5;
  flex: 1 1 320px;
}
.cookie-banner a {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-actions .btn {
  padding: 10px 20px;
  font-size: 12px;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.container-wide {
  width: min(1600px, calc(100% - 24px));
  margin: 0 auto;
}

/* ============================================
   NAVBAR
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 11, 9, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 26px;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--red);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--cream);
  font-size: 26px;
  cursor: pointer;
}

/* ============================================
   HERO (homepage)
   ============================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  background: #000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
}

.hero h1 {
  font-size: clamp(56px, 10vw, 140px);
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero .tagline {
  margin-top: 14px;
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.9;
}

.hero-buttons {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   PAGE HERO (subpáginas)
   ============================================ */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: #000;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1a0d0a;
  filter: brightness(0.55);
  z-index: 0;
}

.page-hero[data-bg="empanada"]::before {
  background-image: url("Imagenes/EMPANADA 22.jpg");
}
.page-hero[data-bg="locales"]::before {
  background-image: url("Imagenes/UBICACIONES%20LOCALES.jpg");
}

/* Page-hero variante: foto al lado en vez de fondo */
.page-hero.split {
  min-height: auto;
  display: block;
  text-align: left;
  background: var(--bg);
  padding: 40px 32px;
  border-bottom: 1px solid var(--border);
}

.page-hero.split::before {
  display: none;
}

.page-hero.split .split-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: stretch;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.page-hero.split .split-img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.page-hero.split .split-text {
  padding: 40px 24px 40px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 680px;
}

.page-hero.split .crumbs {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 18px;
}

.page-hero.split .crumbs a {
  color: var(--muted);
  transition: color 0.2s;
}

.page-hero.split .crumbs a:hover {
  color: var(--red);
}

.page-hero.split .page-eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 14px;
}

.page-hero.split h1 {
  font-size: clamp(44px, 5vw, 72px);
  color: var(--cream);
  line-height: 1.02;
  margin-bottom: 22px;
}

.page-hero.split .page-lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 36px;
  max-width: 540px;
}

.page-hero.split .page-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  margin-bottom: 36px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  width: fit-content;
}

.page-hero.split .page-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-hero.split .page-stats strong {
  font-family: "Bebas Neue", sans-serif;
  font-size: 38px;
  color: var(--red);
  letter-spacing: 0.02em;
  line-height: 1;
}

.page-hero.split .page-stats span {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.page-hero.split .page-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .page-hero.split .split-grid {
    grid-template-columns: 1fr;
  }
  .page-hero.split .split-img {
    min-height: 320px;
    aspect-ratio: 16 / 10;
  }
  .page-hero.split .split-text {
    padding: 50px 28px;
    max-width: 100%;
  }
  .page-hero.split .page-stats {
    gap: 26px;
    width: 100%;
  }
  .page-hero.split .page-stats strong {
    font-size: 30px;
  }
}
.page-hero[data-bg="galeria"]::before {
  background-image: url("Imagenes/EMPANADA%2020.jpg");
}
.page-hero[data-bg="contacto"]::before {
  background-image: url("Imagenes/ENCUENTASNOS%20EN.jpg");
}
.page-hero[data-bg="menu"]::before {
  background-image: url("Imagenes/EMPANADA%204.jpg");
}

.page-hero .inner {
  position: relative;
  z-index: 2;
  padding: 70px 20px;
}

.page-hero h1 {
  font-size: clamp(48px, 7vw, 90px);
  color: #fff;
}

.page-hero .crumbs {
  margin-top: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  transition: transform 0.15s, background 0.2s, color 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-outline {
  border-color: var(--cream);
  color: var(--cream);
}

.btn-outline:hover {
  background: var(--cream);
  color: var(--bg);
}

/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: 90px 0;
}

.section-eyebrow {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(40px, 6vw, 72px);
}

.section-head {
  text-align: center;
  margin-bottom: 50px;
}

/* ============================================
   STORY (split section)
   ============================================ */
.story {
  background: var(--bg-2);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story img {
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.story p {
  color: var(--muted);
  margin: 18px 0 26px;
}

/* ============================================
   LOCATIONS - Tarjetas grandes y pegadas
   ============================================ */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 8px;
}

.loc-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #222;
  cursor: pointer;
}

.loc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.loc-card:hover img {
  transform: scale(1.06);
}

.loc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.9) 100%);
}

.loc-card h3 {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  z-index: 2;
  color: #fff;
  font-size: 38px;
}

.loc-card .loc-sub {
  position: absolute;
  bottom: 70px;
  left: 22px;
  right: 22px;
  z-index: 2;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews {
  background: var(--bg-2);
  text-align: center;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.review {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  text-align: left;
}

.stars {
  color: #f5b400;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review p {
  color: var(--muted);
  margin: 0 0 16px;
  font-style: italic;
}

.review .author {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* ============================================
   GALLERY - tight grid, fotos grandes
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s, filter 0.4s, box-shadow 0.3s;
}

.gallery-grid img:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.gallery-grid.tall img {
  aspect-ratio: 3 / 4;
}

/* ============================================
   PAGE CONTENT (about, contacto, etc.)
   ============================================ */
.content {
  padding: 80px 0;
}

.content p {
  color: var(--muted);
  font-size: 17px;
  max-width: 780px;
}

.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.content-split img {
  border-radius: 12px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

.value-card h3 {
  font-size: 28px;
  color: var(--red);
  margin-bottom: 8px;
}

.value-card p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

/* ============================================
   LOCATION DETAIL CARDS (locales.html)
   ============================================ */
.loc-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.loc-detail {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.loc-detail img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
  background: #1a0d0a;
}

.loc-detail-body {
  padding: 22px;
}

.loc-detail h3 {
  font-size: 30px;
  color: var(--cream);
  margin-bottom: 8px;
}

.loc-detail .city {
  color: var(--red);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}

.loc-detail ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.loc-detail li::before {
  content: "📍 ";
  margin-right: 4px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 30px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-item .ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.info-item h4 {
  margin: 0 0 4px;
  font-size: 18px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.08em;
}

.info-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

form.contact-form {
  display: grid;
  gap: 14px;
  background: var(--bg-2);
  padding: 28px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

form.contact-form label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--cream);
  font-family: inherit;
  font-size: 15px;
  margin-top: 6px;
  transition: border-color 0.2s;
}

form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
}

form.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #050403;
  padding: 50px 0 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

footer .tag {
  font-family: "Bebas Neue", sans-serif;
  font-size: 22px;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

footer .small {
  color: var(--muted);
  font-size: 13px;
}

.socials {
  margin: 18px 0;
  display: flex;
  gap: 14px;
  justify-content: center;
}

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--cream);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.socials a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.socials a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 18px 20px;
    gap: 14px;
    border-bottom: 1px solid var(--border);
  }
  .story-grid,
  .content-split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  section,
  .content {
    padding: 64px 0;
  }
  .loc-card h3 {
    font-size: 30px;
  }
}
