/* ============================================
   AROMA CAFÉ - Cafetería Premium
   Diseño propio - Estilo Gráfico
   ============================================ */

:root {
  --crema: #f5efe6;
  --crema-osc: #ece2d2;
  --cafe: #3b2415;
  --cafe-claro: #6b4a2f;
  --cafe-medio: #8a6a4d;
  --dorado: #c9973f;
  --dorado-claro: #e0b96a;
  --texto: #2b1d12;
  --texto-suave: #7a644c;
  --blanco: #fffdf9;
  --sombra: rgba(59, 36, 21, .14);
  --radio: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Jost", system-ui, sans-serif;
  color: var(--texto);
  background: var(--crema);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--cafe);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-ring {
  width: 110px; height: 110px; margin: 0 auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--dorado-claro), var(--dorado) 55%, #9a6f2c);
  display: flex; align-items: center; justify-content: center;
  font-size: 46px;
  box-shadow: 0 0 0 8px rgba(201, 151, 63, .22), 0 0 40px rgba(201, 151, 63, .45);
  animation: preloader-pulse 1.4s ease-in-out infinite;
}
@keyframes preloader-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 8px rgba(201,151,63,.22), 0 0 40px rgba(201,151,63,.45); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(201,151,63,.16), 0 0 55px rgba(201,151,63,.6); }
}
.preloader-text {
  color: var(--crema); font-family: "Playfair Display", serif;
  font-size: 1.35rem; letter-spacing: .06em; margin-bottom: 16px;
}
.preloader-bar {
  width: 200px; height: 4px; margin: 0 auto;
  background: rgba(255, 253, 249, .18); border-radius: 99px; overflow: hidden;
}
.preloader-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--dorado), var(--dorado-claro));
  border-radius: 99px;
  transition: width .25s ease;
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 22px 0;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s;
}
.header.scrolled {
  background: rgba(59, 36, 21, .92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.55rem; font-weight: 700; color: var(--blanco);
  letter-spacing: .02em;
}
.logo span { color: var(--dorado-claro); }
.nav { display: flex; gap: 28px; }
.nav-link {
  color: var(--blanco); font-size: .98rem; font-weight: 500;
  position: relative; padding: 4px 0;
  opacity: .9; transition: opacity .25s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--dorado-claro);
  transition: width .3s var(--ease);
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { width: 100%; }
.btn-reservar {
  background: linear-gradient(135deg, var(--dorado-claro), var(--dorado));
  color: var(--cafe); font-weight: 700; font-size: .92rem;
  padding: 11px 22px; border-radius: 99px;
  box-shadow: 0 6px 18px rgba(201, 151, 63, .4);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.btn-reservar:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201, 151, 63, .55); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--blanco); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-slider {
  position: absolute; inset: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.4s var(--ease);
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(28, 15, 6, .88) 20%, rgba(28, 15, 6, .55) 60%, rgba(28, 15, 6, .35));
}
.hero-content {
  position: relative; z-index: 2;
  padding: 140px 0 90px;
  max-width: 720px;
}
.hero-kicker {
  display: inline-block;
  color: var(--dorado-claro); font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; font-size: .82rem;
  border: 1px solid rgba(224, 185, 106, .5); border-radius: 99px;
  padding: 8px 20px; margin-bottom: 26px;
  opacity: 0; animation: fade-up .9s var(--ease) .15s forwards;
}
.hero-title {
  font-family: "Playfair Display", serif;
  color: var(--blanco);
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  line-height: 1.12; font-weight: 600;
  margin-bottom: 22px;
  opacity: 0; animation: fade-up .9s var(--ease) .3s forwards;
}
.hero-title em { font-style: italic; color: var(--dorado-claro); }
.hero-text {
  color: rgba(255, 253, 249, .85);
  font-size: 1.1rem; font-weight: 300;
  max-width: 560px; margin-bottom: 34px;
  opacity: 0; animation: fade-up .9s var(--ease) .45s forwards;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; animation: fade-up .9s var(--ease) .6s forwards; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
.btn {
  display: inline-block; font-weight: 600; font-size: 1rem;
  padding: 15px 32px; border-radius: 99px;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--dorado-claro), var(--dorado));
  color: var(--cafe); box-shadow: 0 10px 26px rgba(201, 151, 63, .4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(201, 151, 63, .52); }
.btn-ghost {
  border: 1.5px solid rgba(255, 253, 249, .55); color: var(--blanco);
  background: transparent;
}
.btn-ghost:hover { background: rgba(255, 253, 249, .12); transform: translateY(-3px); }
.scroll-down {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--blanco); opacity: .85;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  transition: opacity .25s, transform .25s;
}
.scroll-down svg { animation: bounce 1.8s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.scroll-down:hover { opacity: 1; transform: translateX(-50%) translateY(3px); }

/* ---------- Secciones ---------- */
.section { padding: 110px 0; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  color: var(--cafe-claro); font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; font-size: .8rem;
  margin-bottom: 12px;
}
.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  color: var(--cafe); font-weight: 600;
}

/* ---------- Historia ---------- */
.historia { background: var(--blanco); }
.historia-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px;
  align-items: center;
}
.historia-foto { position: relative; }
.historia-foto img {
  border-radius: var(--radio);
  box-shadow: 0 24px 60px var(--sombra);
  height: 440px; width: 100%; object-fit: cover;
}
.historia-foto-badge {
  position: absolute; bottom: -22px; right: 22px;
  background: var(--cafe); color: var(--blanco);
  padding: 18px 26px; border-radius: 14px;
  box-shadow: 0 14px 34px rgba(59, 36, 21, .35);
  text-align: center;
}
.historia-foto-badge strong {
  display: block; font-family: "Playfair Display", serif;
  font-size: 1.5rem; color: var(--dorado-claro);
}
.historia-foto-badge span { font-size: .85rem; opacity: .8; }
.historia-texto p {
  color: var(--texto-suave); font-size: 1.02rem;
  margin-bottom: 18px;
}
.historia-texto p:first-child { color: var(--texto); font-size: 1.12rem; }
.historia-puntos { margin-top: 28px; display: grid; gap: 14px; }
.historia-puntos li {
  display: flex; align-items: center; gap: 14px;
  font-weight: 500; color: var(--cafe);
}
.punto-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--crema); border-radius: 12px;
  font-size: 1.3rem;
  box-shadow: 0 6px 16px var(--sombra);
}

/* ---------- Menu ---------- */
.menu { background: var(--crema); }
.menu-tabs {
  display: flex; justify-content: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 46px;
}
.menu-tab {
  border: 1.5px solid var(--cafe-medio); background: transparent;
  color: var(--cafe-claro); font-weight: 600; font-size: .95rem;
  padding: 11px 26px; border-radius: 99px;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.menu-tab:hover { transform: translateY(-2px); }
.menu-tab.active {
  background: var(--cafe); border-color: var(--cafe); color: var(--blanco);
}
.menu-panel { display: none; }
.menu-panel.active { display: grid; gap: 18px; animation: fade-up .5s var(--ease); }
.menu-item {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--blanco);
  border: 1px solid rgba(138, 106, 77, .16);
  border-left: 4px solid var(--dorado);
  border-radius: 14px;
  padding: 22px 28px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.menu-item:hover { transform: translateX(6px); box-shadow: 0 12px 30px var(--sombra); }
.menu-info h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.18rem; color: var(--cafe); margin-bottom: 4px;
}
.menu-info p { color: var(--texto-suave); font-size: .94rem; }
.menu-precio {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem; font-weight: 700; color: var(--dorado);
  white-space: nowrap;
}

/* ---------- Galeria ---------- */
.galeria { background: var(--blanco); }
.galeria-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.galeria-item {
  position: relative; border-radius: var(--radio); overflow: hidden;
  height: 240px; cursor: pointer;
}
.galeria-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.galeria-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28, 15, 6, .62), transparent 55%);
  opacity: 0; transition: opacity .4s;
}
.galeria-item figcaption {
  position: absolute; left: 18px; bottom: 14px; z-index: 2;
  color: var(--blanco); font-weight: 500; font-size: .95rem;
  transform: translateY(10px); opacity: 0;
  transition: transform .4s var(--ease), opacity .4s;
}
.galeria-item:hover img { transform: scale(1.08); }
.galeria-item:hover::after { opacity: 1; }
.galeria-item:hover figcaption { transform: none; opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(20, 10, 4, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-figure {
  max-width: min(90vw, 1100px);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  transform: scale(0.94);
  transition: transform .35s var(--ease);
}
.lightbox.open .lightbox-figure img { transform: scale(1); }
.lightbox-figure figcaption {
  color: rgba(255, 253, 249, 0.85);
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
}
.lightbox-close {
  position: absolute; top: 20px; right: 26px;
  width: 46px; height: 46px;
  background: rgba(255, 253, 249, 0.1);
  border: 1px solid rgba(255, 253, 249, 0.25);
  border-radius: 50%;
  color: #fffdf9; font-size: 1.6rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .25s;
}
.lightbox-close:hover { background: rgba(255, 253, 249, 0.22); transform: rotate(90deg); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  background: rgba(255, 253, 249, 0.08);
  border: 1px solid rgba(255, 253, 249, 0.22);
  border-radius: 50%;
  color: #fffdf9; font-size: 2rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .25s;
  cursor: pointer;
}
.lightbox-nav:hover { background: rgba(201, 151, 63, 0.35); border-color: var(--dorado-claro); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(3px); }
@media (max-width: 640px) {
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-nav { width: 44px; height: 44px; font-size: 1.6rem; }
}

/* ---------- Testimonios ---------- */
.testimonios { background: var(--crema); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card {
  background: var(--blanco); border-radius: var(--radio);
  padding: 32px 28px;
  border: 1px solid rgba(138, 106, 77, .14);
  box-shadow: 0 14px 40px var(--sombra);
  transition: transform .35s var(--ease);
}
.testi-card:hover { transform: translateY(-8px); }
.testi-estrellas { color: var(--dorado); letter-spacing: 3px; margin-bottom: 16px; }
.testi-texto { color: var(--texto-suave); font-size: .98rem; margin-bottom: 24px; font-style: italic; }
.testi-autor { display: flex; align-items: center; gap: 14px; }
.testi-autor img {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--dorado-claro);
}
.testi-autor strong { display: block; color: var(--cafe); font-size: 1.02rem; }
.testi-autor span { font-size: .85rem; color: var(--texto-suave); }

/* ---------- Contacto ---------- */
.contacto { background: var(--blanco); }
.contacto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 54px; }
.contacto-card {
  text-align: center; padding: 36px 24px;
  background: var(--crema); border-radius: var(--radio);
  border: 1px solid rgba(138, 106, 77, .14);
  transition: transform .35s var(--ease);
}
.contacto-card:hover { transform: translateY(-6px); }
.contacto-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; margin-bottom: 18px;
  background: var(--cafe); border-radius: 50%;
  font-size: 1.6rem;
  box-shadow: 0 10px 26px rgba(59, 36, 21, .3);
}
.contacto-card h3 { font-family: "Playfair Display", serif; color: var(--cafe); font-size: 1.25rem; margin-bottom: 8px; }
.contacto-card p { color: var(--texto-suave); }
.contacto-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--cafe), var(--cafe-claro));
  border-radius: var(--radio);
  padding: 46px 30px;
}
.contacto-cta p { color: rgba(255, 253, 249, .9); font-size: 1.1rem; margin-bottom: 22px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--cafe); color: var(--crema);
  padding: 40px 0 56px; text-align: center;
  position: relative;
}
.footer-logo { display: inline-block; margin-bottom: 10px; }
.footer-text { font-size: .9rem; opacity: .7; }
/* Pie inferior: copyright a la izquierda y credito a la derecha (patron Barber House) */
.footer-bottom {
  max-width: 1240px; margin: 18px auto 0; padding: 18px 0 0;
  border-top: 1px solid rgba(245,239,230,.14);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; text-align: left;
}
/* Credito de diseno: Estilo Grafico (mismo patron que Barber House) */
.footer-diseno { margin: 0; font-size: .9rem; color: rgba(245,239,230,.75); opacity: 1; }
.footer-diseno a {
  color: var(--dorado-claro); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .25s ease;
}
.footer-diseno a:hover { color: #fff; }
.back-top {
  position: absolute; right: 30px; top: -24px;
  width: 48px; height: 48px;
  background: var(--dorado); color: var(--cafe);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
  box-shadow: 0 10px 24px rgba(201, 151, 63, .45);
  transition: transform .3s var(--ease);
}
.back-top:hover { transform: translateY(-4px); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 26px; bottom: 26px; z-index: 950;
  width: 58px; height: 58px;
  background: #25d366; color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .45);
  transition: transform .3s var(--ease);
  animation: wa-pulse 2.4s ease-in-out infinite;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.1); }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(37, 211, 102, .45); }
  50% { box-shadow: 0 12px 34px rgba(37, 211, 102, .65); }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .historia-grid { grid-template-columns: 1fr; gap: 46px; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .nav {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 330px;
    background: var(--cafe); flex-direction: column; justify-content: center;
    padding: 60px 40px; gap: 22px;
    transition: right .45s var(--ease);
    box-shadow: -20px 0 60px rgba(0, 0, 0, .3);
  }
  .nav.open { right: 0; }
  .nav-link { font-size: 1.15rem; }
  .nav-toggle { display: flex; }
  .btn-reservar { display: none; }
  .hero-content { padding-top: 110px; }
  .section { padding: 80px 0; }
  .menu-item { flex-direction: column; align-items: flex-start; gap: 10px; }
}
