:root {
  --rojo: #D31015;
  --crema: #fcebd5;
  --negro: #1a1a1a;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--crema);
  color: var(--negro);
  line-height: 1.6;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  background: white;
  color: var(--rojo);
  padding: 10px 14px;
  z-index: 2000;
}

/* ===== HEADER ===== */
header {
  background-color: var(--rojo);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 80px;
  width: auto;
}

.qr {
  height: 90px;
  background-color: white;
  border-radius: 8px;
  padding: 5px;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.nav a:hover {
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(to bottom, var(--crema), #fff);
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  color: var(--rojo);
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.eyebrow {
  color: var(--rojo);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .85rem !important;
  margin-bottom: 10px !important;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  color: var(--rojo);
  border: 2px solid var(--rojo);
}

.intent-grid {
  max-width: 1050px;
  margin: -28px auto 20px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
  z-index: 2;
}

.intent-card {
  background: white;
  border-radius: 12px;
  padding: 22px;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(0,0,0,.1);
  border-bottom: 4px solid var(--rojo);
}

.intent-card strong,
.intent-card span { display: block; }
.intent-card strong { color: var(--rojo); margin-bottom: 6px; }
.intent-card span { color: #444; font-size: .92rem; }

.section-intro { max-width: 760px; margin: -25px auto 30px; color: #555; }

.contact-actions {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.text-link { color: var(--rojo); font-weight: 700; }

.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.footer-nav a { color: white; }

.page-hero { padding: 58px 20px 48px; text-align: center; background: linear-gradient(to bottom, var(--crema), #fff); }
.page-hero h1 { font-family: 'Cinzel', serif; color: var(--rojo); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.18; }
.page-hero p { max-width: 760px; margin: 14px auto 0; }
.breadcrumb { max-width: 1050px; margin: 0 auto 18px; font-size: .88rem; }
.breadcrumb a { color: var(--rojo); }
.content-wrap { max-width: 1050px; margin: 0 auto; padding: 48px 20px; }
.content-wrap h2 { font-family: 'Cinzel', serif; color: var(--rojo); margin: 34px 0 14px; }
.content-wrap h2:first-child { margin-top: 0; }
.content-wrap p { margin-bottom: 14px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 26px 0; }
.info-box { background: white; border-radius: 12px; padding: 22px; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.info-box h2, .info-box h3 { color: var(--rojo); margin: 0 0 8px; font-family: 'Cinzel', serif; font-size: 1.1rem; }
.notice { border-left: 5px solid var(--rojo); background: white; padding: 18px 20px; margin: 24px 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0; }
.faq-list details { background: white; border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; }
.faq-list summary { color: var(--rojo); font-weight: 700; cursor: pointer; }
.faq-list details p { margin: 10px 0 0; }
.map-large { width: 100%; height: 420px; border: 0; border-radius: 12px; }
.menu-page .menu { padding-top: 30px; }

.btn {
  background-color: var(--rojo);
  color: white;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.3s ease;
}

.btn:hover {
  background-color: #96281b;
}

/* ===== MENÚ ===== */
.menu {
  padding: 60px 20px;
  text-align: center;
}

.menu h2 {
  font-family: 'Cinzel', serif;
  color: var(--rojo);
  margin-bottom: 40px;
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.item {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

.item h3 {
  font-family: 'Cinzel', serif;
  color: var(--rojo);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.item p {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: #444;
}

.item span {
  display: inline-block;
  background-color: var(--rojo);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
}

/* ===== CONTACTO ===== */
.contacto {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

.contacto h2 {
  font-family: 'Cinzel', serif;
  color: var(--rojo);
  margin-bottom: 20px;
}

.contacto p {
  font-size: 1rem;
  margin-bottom: 30px;
}

.contact-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
}

.contact-form button {
  border: none;
  cursor: pointer;
}

.mapa {
  flex: 1;
  min-width: 300px;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
}

/* ===== BOTÓN FLOTANTE DE WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background-color: #25D366;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-float img {
  width: 36px;
  height: 36px;
  display: block;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebe5d;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--rojo);
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  margin-top: 40px;
}

/* ======== BOTONES DE CATEGORÍAS (VERSIÓN CORREGIDA Y ESTABLE) ======== */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 40px auto;
  padding: 0 10px;
  max-width: 1000px;
}

.tab {
  flex: 1 1 150px; /* Cada botón crece hasta 150px mínimo */
  max-width: 200px; /* Evita botones muy anchos */
  aspect-ratio: 1.4 / 1; /* Mantiene proporción cuadrada rectangular */
  background-color: #fff;
  border: 2px solid var(--rojo);
  border-radius: 10px;
  color: var(--rojo);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.08);
  line-height: 1.2;
}

.tab:hover {
  background-color: var(--rojo);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.15);
}

.tab.active {
  background-color: var(--rojo);
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
}

/* Adaptación a pantallas pequeñas */
@media (max-width: 768px) {
  .tab {
    flex: 1 1 40%;
    font-size: 0.85rem;
    aspect-ratio: 1.6 / 1;
  }
}

@media (max-width: 480px) {
  .tab {
    flex: 1 1 45%;
    font-size: 0.8rem;
    padding: 8px;
  }
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    background-color: var(--rojo);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 20px 0;
  }

  .nav.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .qr {
    display: none;
  }

  .contact-container {
    flex-direction: column;
  }

  .menu-items {
    grid-template-columns: 1fr;
  }

  .intent-grid { grid-template-columns: 1fr; margin-top: 18px; }
  .hero { padding: 55px 18px; }
  .hero h1 { font-size: 2.1rem; line-height: 1.2; }
}

/* ======== CONTENIDO DE CADA CATEGORÍA ======== */
.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Títulos internos de cada sección (como “Pizzas Familiares”) */
.tab-content h3 {
  font-family: 'Cinzel', serif;
  color: var(--rojo);
  margin: 40px 0 20px;
}

/* ===== BOTÓN FLOTANTE PEDIDOSYA ===== */
.pedidosya-float {
  position: fixed;
  bottom: 18px;
  left: 18px;
  background-color: #E60023; /* Rojo PedidosYa */
  color: white;
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  z-index: 1000;
}

.pedidosya-float:hover {
  background-color: #b8001c;
  transform: scale(1.05);
}
/* ===== REDES SOCIALES EN FOOTER ===== */
.social-links {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a img {
  width: 28px;
  height: 28px;
  filter: invert(1);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.social-links a:hover img {
  opacity: 1;
  transform: scale(1.15);
}
