/* =====================================================
   CANELA CAFÉ — Sistema de Diseño Web
   Colores: Negro #0A0A0A | Amarillo #FFC300 | Crema #F7F0E6
   Tipografía: Playfair Display / Josefin Sans / Nunito Sans
   Identidad: Manual de Identidad, Septiembre 2022
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,400;1,700&family=Josefin+Sans:wght@300;400;600;700&family=Nunito+Sans:ital,opsz,wght@0,6..12,300;0,6..12,400;0,6..12,600;0,6..12,700;0,6..12,800;1,6..12,400&display=swap');

/* ---- Variables ---- */
:root {
  --negro:        #0A0A0A;
  --amarillo:     #FFC300;
  --amarillo-lit: #FFD740;
  --blanco:       #FFFFFF;
  --crema:        #F7F0E6;
  --crema-oscura: #EDE4D6;
  --gris-texto:   #5A5047;
  --gris-sutil:   #9A8F87;
  --nav-height:   72px;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-label:   'Josefin Sans', 'Helvetica Neue', Helvetica, sans-serif;
  --font-body:    'Nunito Sans', 'Helvetica Neue', Helvetica, sans-serif;

  --pad-section:  clamp(80px, 10vw, 140px);
  --pad-page:     clamp(20px, 5vw, 80px);
  --max-w:        1400px;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--negro);
  color: var(--blanco);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ---- Grain overlay ---- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* =====================================================
   NAVEGACIÓN
   ===================================================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.site-nav.scrolled {
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 195, 0, 0.1);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-page);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s;
}
.nav-logo:hover img { opacity: 0.75; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--amarillo);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--blanco); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--amarillo); }
.nav-links a.active::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-lang {
  display: none;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--amarillo);
  color: var(--negro);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 11px 22px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--amarillo-lit); transform: translateY(-1px); }
.nav-cta svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--blanco);
  transition: all 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  color: var(--blanco);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--amarillo); }
.mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 28px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  line-height: 1;
}

/* =====================================================
   MARQUEE
   ===================================================== */
.marquee-strip {
  background: var(--amarillo);
  overflow: hidden;
  padding: 13px 0;
  position: relative;
  z-index: 1;
}
.marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: marqueeRoll 32s linear infinite;
}
.marquee-track span {
  font-family: var(--font-label);
  font-size: clamp(11px, 1.3vw, 14px);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--negro);
  padding: 0 24px;
}
.marquee-sep { padding: 0 6px !important; opacity: 0.35; }
@keyframes marqueeRoll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================================================
   BOTONES
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 18px 40px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-yellow { background: var(--amarillo); color: var(--negro); border: 2px solid var(--amarillo); }
.btn-yellow:hover { background: var(--amarillo-lit); border-color: var(--amarillo-lit); }
.btn-white { background: transparent; color: var(--blanco); border: 2px solid rgba(255,255,255,0.4); }
.btn-white:hover { border-color: var(--blanco); color: var(--blanco); }
.btn-dark { background: transparent; color: var(--negro); border: 2px solid rgba(10,10,10,0.35); }
.btn-dark:hover { background: var(--negro); color: var(--amarillo); border-color: var(--negro); }
.btn-wa { background: transparent; color: var(--blanco); border: 2px solid rgba(255,255,255,0.35); }
.btn-wa:hover { border-color: #25D366; color: #25D366; }
.btn-wa svg { width: 16px; height: 16px; flex-shrink: 0; }

/* =====================================================
   ETIQUETAS DE SECCIÓN
   ===================================================== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amarillo);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--amarillo);
  flex-shrink: 0;
}
.section-label.on-light { color: var(--negro); }
.section-label.on-light::before { background: var(--negro); }

/* =====================================================
   ANIMACIONES SCROLL
   ===================================================== */
.reveal, .reveal-l, .reveal-r, .reveal-scale {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1),
              transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal       { transform: translateY(36px); }
.reveal-l     { transform: translateX(-40px); }
.reveal-r     { transform: translateX(40px); }
.reveal-scale { transform: scale(0.94); }
.reveal.in, .reveal-l.in, .reveal-r.in, .reveal-scale.in {
  opacity: 1;
  transform: none;
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes wordUp {
  from { opacity: 0; transform: translateY(110%); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--negro);
  border-top: 1px solid rgba(255,195,0,0.12);
  padding: clamp(48px,7vw,88px) var(--pad-page) 36px;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
}
.footer-brand .f-logo {
  height: 70px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 18px;
}
.footer-brand p {
  font-size: 15px;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  max-width: 250px;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--amarillo); color: var(--amarillo); }
.footer-col h5 {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amarillo);
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--blanco); }
.footer-col address {
  font-style: normal;
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.85;
}
.footer-hours dt {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 10px;
  margin-bottom: 2px;
}
.footer-hours dd { font-size: 15px; color: rgba(255,255,255,0.6); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-bottom p {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .nav-links { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
