/* =========================================================
   Sabores con Eli — estilos
   Paleta: cacao, rosa empolvado, dorado
   Tipografía: Fraunces (display) / Work Sans (texto) / Space Mono (datos)
   ========================================================= */

:root {
  --cacao: #3b2417;
  --cacao-suave: #5c3a26;
  --rosa: #e3b9b1;
  --rosa-suave: #f3e2dd;
  --dorado: #c79a4b;
  --crema: #faf6f0;
  --texto: #2c1c12;

  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-handwritten: 'Caveat', cursive;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--texto);
  background: var(--crema);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--cacao);
  line-height: 1.15;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cacao);
  margin-bottom: 8px;
}

/* ---------- BRAND HERO (logo + texto arriba del header) ---------- */
.brand-hero {
  text-align: center;
  padding: 48px 24px 36px;
  background: linear-gradient(180deg, var(--rosa-suave), var(--crema));
}

.brand-hero-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 16px;
  display: inline-block;
  position: relative;
  animation: logoPulse 3s ease-in-out infinite;
}

.brand-hero-logo::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.7) 50%, transparent 60%);
  animation: logoSparkle 3s ease-in-out infinite;
}

.brand-hero-title {
  width: min(400px, 80vw);
  height: auto;
  display: block;
  margin: 0 auto;
  position: relative;
  animation: titlePulse 4s ease-in-out infinite;
}

.brand-hero-title::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.6) 50%, transparent 60%);
  animation: titleSparkle 4s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes titlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes titleSparkle {
  0%, 70%, 100% { left: -100%; }
  85% { left: 130%; }
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes logoSparkle {
  0%, 70%, 100% { left: -100%; }
  85% { left: 130%; }
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--crema);
  border-bottom: 1px solid var(--rosa-suave);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--cacao);
  text-decoration: none;
  font-weight: 600;
}
.logo span { color: var(--dorado); font-style: italic; }

/* ---------- NAV / MENÚ HAMBURGUESA ---------- */
.main-nav {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--crema);
  border-bottom: 1px solid var(--rosa-suave);
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.main-nav.active { max-height: 300px; }

.main-nav a {
  display: block;
  text-decoration: none;
  color: var(--cacao-suave);
  font-size: 0.95rem;
  padding: 14px 24px;
  border-top: 1px solid var(--rosa-suave);
}
.main-nav a:hover,
.main-nav a.active-page { color: var(--dorado); }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 20;
  position: absolute;
  right: 24px;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cacao);
  border-radius: 2px;
  transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* En pantallas grandes, menú horizontal normal */
@media (min-width: 768px) {
  .hamburger { display: none; }
  .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    max-height: none;
    overflow: visible;
    width: auto;
    background: none;
    border-bottom: none;
  }
  .main-nav a { border-top: none; padding: 0; }
  .main-nav { gap: 28px; }
}

/* ---------- HERO ---------- */
.hero {
  padding: 120px 0 90px;
  background: linear-gradient(180deg, var(--rosa-suave), var(--crema));
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 20px;
}
.hero-text {
  max-width: 520px;
  margin: 0 auto 32px;
  color: var(--cacao-suave);
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-cartel img {
  max-width: 40%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--dorado); color: var(--cacao); }
.btn-outline { border: 1px solid var(--cacao); color: var(--cacao); }

/* ---------- SECTIONS ---------- */
.section { padding: 90px 0; }
.nosotros { text-align: center; }
.nosotros p:not(.eyebrow) { max-width: 640px; margin: 0 auto; color: var(--cacao-suave); }
.menu h2, .nosotros h2 { margin-bottom: 24px; }

/* ---------- MENU TABS ---------- */
.menu { text-align: center; }
.menu-tabs {
  display: inline-flex;
  gap: 8px;
  background: var(--rosa-suave);
  padding: 6px;
  border-radius: 999px;
  margin: 0 auto 48px;
}
.tab-btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--cacao-suave);
  cursor: pointer;
}
.tab-btn.active { background: var(--cacao); color: var(--crema); }

.menu-panel { display: none; text-align: left; }
.menu-panel.active { display: block; }

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.ticket-card {
  position: relative;
  background: #fdf8f0;
  border: none;
  border-radius: 4px;
  padding: 28px 24px;
  transform: rotate(-0.8deg);
  box-shadow: 2px 3px 10px rgba(59,36,23,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ticket-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 4px 6px 16px rgba(59,36,23,0.18);
}
.ticket-card::before {
  content: "";
  position: absolute;
  top: -5px; right: -5px; bottom: -5px; left: -5px;
  border: 2px solid var(--rosa);
  border-radius: 6px;
  pointer-events: none;
}
.ticket-card::after {
  content: "";
  position: absolute;
  bottom: 10px;
  right: 14px;
  width: 36px;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(199,154,75,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ticket-code {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--dorado);
}
.ticket-card h3 {
  font-family: var(--font-handwritten);
  font-size: 1.5rem;
  color: var(--cacao);
  margin: 2px 0 6px;
  font-weight: 500;
}
.ticket-card p {
  color: var(--cacao-suave);
  font-size: 0.88rem;
  font-style: italic;
  margin-bottom: 12px;
}
.ticket-price {
  font-family: var(--font-handwritten);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--cacao);
  display: block;
  text-align: right;
}

/* ---------- TRABAJOS ---------- */
.pedidos {
  background: var(--cacao);
  color: var(--crema);
  text-align: center;
}
.pedidos h2 { color: var(--crema); }
.pedidos p:not(.eyebrow) { max-width: 480px; margin: 0 auto 32px; color: var(--rosa-suave); }
.pedidos .btn-primary { background: var(--dorado); color: var(--cacao); }
.pedidos .btn-outline { border: 1px solid var(--crema); color: var(--crema); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--crema);
  padding: 60px 0 24px;
  border-top: 1px solid var(--rosa-suave);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.footer-logo { margin-bottom: 10px; }
.footer-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--cacao-suave);
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .brand-hero-logo { animation: none; }
  .brand-hero-logo::after { animation: none; }
  .brand-hero-title { animation: none; }
  .brand-hero-title::after { animation: none; }
  .ticket-card { transform: none; }
  .ticket-card:hover { transform: translateY(-4px); }
}

/* ---------- GALERÍA DE TRABAJOS ---------- */
.trabajos-galeria { text-align: center; }
.galeria-intro { max-width: 480px; margin: 0 auto 40px; color: var(--cacao-suave); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  text-align: left;
}

.gallery-item {
  position: relative;
  border: none;
  padding: 0;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--rosa-suave);
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
}

@media (min-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* ---------- LIGHTBOX (visor a pantalla completa) ---------- */
.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox::backdrop {
  background: rgba(20, 12, 8, 0.92);
}

.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-caption {
  position: absolute;
  bottom: 28px;
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--crema);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0 24px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--crema);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}

/* ---------- LOGO IMG ---------- */
.logoImg {
  width: 70px;
  height: 70px;
  padding-left: 15px;
  object-fit: contain;
}

/* ---------- CONTACTO ---------- */
.contacto { text-align: center; }
.contacto h2 { margin-bottom: 40px; }

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  text-align: left;
}

.contacto-bloque { margin-bottom: 24px; }
.contacto-bloque h3 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 6px;
}
.contacto-bloque p { color: var(--cacao-suave); }
.contacto-bloque a {
  color: var(--cacao-suave);
  text-decoration: none;
  transition: color 0.2s;
}
.contacto-bloque a:hover { color: var(--dorado); }

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacto-form input,
.contacto-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 18px;
  border: 1px solid var(--rosa);
  border-radius: 10px;
  background: #fff;
  color: var(--texto);
  outline: none;
  transition: border-color 0.2s;
}
.contacto-form input:focus,
.contacto-form textarea:focus {
  border-color: var(--dorado);
}
.contacto-form textarea { resize: vertical; }
.contacto-form .btn { align-self: flex-start; cursor: pointer; }

@media (max-width: 700px) {
  .contacto-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- FOOTER SOCIAL ---------- */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.footer-social a {
  color: var(--cacao-suave);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--dorado); }
.footer-inner a { text-decoration: none; }

/* ---------- WHATSAPP FLOTANTE ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
  .hero { padding: 90px 0 60px; }
}
