/* ============================================================
   AYG PASTELERÍA — index.css
   Estilos exclusivos de la página principal
   Depende de: ayg-variables.css
   ============================================================ */

/* Importar fuentes si no vienen del header */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,400&family=Lato:wght@400;700&display=swap');


/* ============================================================
   UTILIDADES COMPARTIDAS (van en components.css en el futuro)
============================================================ */

.seccion-oscura  { background: var(--ayg-negro-base); color: var(--ayg-blanco); }
.seccion-clara   { background: var(--ayg-crema-base); color: var(--ayg-negro-base); }
.text-oro        { color: var(--ayg-oro-principal); }
.text-oro-oscuro { color: var(--ayg-oro-oscuro); }

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ayg-oro-principal);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 15px;
  opacity: 0.65;
  max-width: 480px;
  margin: 0 auto;
}




/* ============================================================
   ANIMACIONES DE SCROLL — Reveal al entrar en viewport
============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease calc(var(--delay, 0s)),
              transform 0.65s ease calc(var(--delay, 0s));
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   HERO
============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Imagen de fondo */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: hero-zoom 14s ease-out forwards;
}
@keyframes hero-zoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.00); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,0.80) 0%,
    rgba(0,0,0,0.55) 50%,
    rgba(13,9,2,0.75) 100%
  );
}

/* Contenido */
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 6rem;
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ayg-oro-principal);
  border: 1px solid rgba(201,168,76,0.40);
  padding: 6px 16px;
  border-radius: 999px;
  animation: fade-up 0.8s ease 0.2s both;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--ayg-blanco);
  line-height: 1.05;
  animation: fade-up 0.8s ease 0.4s both;
}
.hero-title-oro {
  display: block;
  background: linear-gradient(90deg, #E8C96A, #C9A84C, #8B6914, #C9A84C, #E8C96A);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fade-up 0.8s ease 0.4s both,
             shimmer 4s linear 1.5s infinite;
}
@keyframes shimmer {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}

.hero-sub {
  font-size: clamp(15px, 2vw, 17px);
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-width: 440px;
  animation: fade-up 0.8s ease 0.6s both;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fade-up 0.8s ease 0.8s both;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--ayg-oro-principal);
  color: var(--ayg-negro-base);
  padding: 14px 26px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 250ms ease, transform 200ms ease, box-shadow 250ms ease;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}
.btn-hero-primary:hover {
  background: var(--ayg-oro-brillante);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.50);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ayg-blanco);
  padding: 14px 26px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.35);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 250ms ease, background 250ms ease;
}
.btn-hero-secondary:hover {
  border-color: var(--ayg-oro-principal);
  background: rgba(201,168,76,0.10);
  color: var(--ayg-oro-brillante);
}

/* Scroll hint */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
  animation: fade-up 1s ease 1.2s both;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(201,168,76,0.8), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.6); opacity: 0.4; }
}
.scroll-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.60);
}

/* Animación base del hero */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   STATS BAR
============================================================ */

.stats-bar {
  background: var(--ayg-negro-suave);
  border-top: 1px solid var(--ayg-negro-medio);
  border-bottom: 1px solid var(--ayg-negro-medio);
  padding: 28px 0;
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--ayg-oro-principal);
  line-height: 1;
}
.stat-plus {
  font-size: 1.4rem;
  color: var(--ayg-oro-oscuro);
  font-weight: 700;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--ayg-negro-medio);
}


/* ============================================================
   CATEGORÍAS
============================================================ */

.section-categorias {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.cat-card {
  background: var(--ayg-negro-suave);
  border: 1px solid var(--ayg-negro-medio);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}
.cat-card:hover {
  border-color: var(--ayg-oro-oscuro);
  transform: translateY(-4px);
  box-shadow: var(--sombra-dorada-md);
}

.cat-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, #2a1f0a, #3d2d0e);
}
.cat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.cat-card:hover .cat-img { transform: scale(1.06); }

/* Overlay con botón WhatsApp que aparece en hover */
.cat-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,9,2,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 280ms ease;
}
.cat-card:hover .cat-overlay { opacity: 1; }

.cat-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(8px);
  transition: transform 280ms ease, background 200ms ease;
}
.cat-card:hover .cat-wa-btn { transform: translateY(0); }
.cat-wa-btn:hover { background: #1ebe5c; color: #fff; }

.cat-body { padding: 20px; }
.cat-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--ayg-blanco);
  margin-bottom: 8px;
}
.cat-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 14px;
}
.cat-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--ayg-oro-principal);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 200ms ease;
}
.cat-link:hover { color: var(--ayg-oro-brillante); }


/* ============================================================
   POR QUÉ ELEGIRNOS
============================================================ */

.section-valores {
  padding: 6rem 0;
}
.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.valor-card {
  background: var(--ayg-blanco);
  border: 1px solid var(--ayg-crema-medio);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 250ms ease, box-shadow 250ms ease, transform 250ms ease;
}
.valor-card:hover {
  border-color: var(--ayg-oro-oscuro);
  box-shadow: 0 4px 24px rgba(139,105,20,0.15);
  transform: translateY(-3px);
}
.valor-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}
.valor-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--ayg-negro-base);
  margin-bottom: 10px;
}
.valor-desc {
  font-size: 13px;
  color: var(--ayg-negro-gris);
  line-height: 1.7;
}


/* ============================================================
   TESTIMONIOS — Carrusel auto-scroll infinito
============================================================ */

.section-testimonios {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.testi-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}
.testi-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll-testi 28s linear infinite;
}
.testi-track:hover { animation-play-state: paused; }
@keyframes scroll-testi {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.testi-card {
  background: var(--ayg-negro-suave);
  border: 1px solid var(--ayg-negro-medio);
  border-radius: 12px;
  padding: 28px;
  width: 300px;
  flex-shrink: 0;
  transition: border-color 250ms ease;
}
.testi-card:hover { border-color: var(--ayg-oro-oscuro); }

.testi-stars {
  color: var(--ayg-oro-principal);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.testi-text {
  font-size: 14px;
  color: rgba(255,255,255,0.70);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 20px;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ayg-oro-oscuro), var(--ayg-oro-principal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ayg-negro-base);
  flex-shrink: 0;
}
.testi-name {
  display: block;
  font-size: 13px;
  color: var(--ayg-blanco);
}
.testi-loc {
  font-size: 11px;
  color: rgba(255,255,255,0.40);
  margin-top: 2px;
  display: block;
}


/* ============================================================
   CTA WHATSAPP
============================================================ */

.section-cta {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  background: #0D0D0D;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--ayg-blanco);
  line-height: 1.2;
}
.cta-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  max-width: 440px;
  line-height: 1.7;
}
.btn-cta-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--ayg-blanco);
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(37,211,102,0.35);
  transition: transform 250ms ease, box-shadow 250ms ease, background 250ms ease;
  animation: pulse-wa 3s ease-in-out infinite;
}
.btn-cta-wa:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 36px rgba(37,211,102,0.50);
  background: #1ebe5c;
  color: var(--ayg-blanco);
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 24px rgba(37,211,102,0.35); }
  50%       { box-shadow: 0 4px 36px rgba(37,211,102,0.55); }
}
.cta-note {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}


/* ============================================================
   MAPA Y HORARIOS
============================================================ */

.section-mapa {
  padding: 6rem 0;
}
.mapa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.mapa-info { display: flex; flex-direction: column; gap: 1.5rem; }
.horario-grid { display: flex; flex-direction: column; gap: 10px; }
.horario-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--ayg-blanco);
  border: 1px solid var(--ayg-crema-medio);
  border-radius: 8px;
  font-size: 14px;
}
.horario-dia  { color: var(--ayg-negro-base); font-weight: 700; }
.horario-horas {
  color: var(--ayg-oro-oscuro);
  font-weight: 700;
  font-size: 13px;
}
.direccion-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ayg-negro-gris);
  background: var(--ayg-blanco);
  border: 1px solid var(--ayg-crema-medio);
  border-radius: 8px;
  padding: 12px 16px;
}
.btn-mapa-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ayg-oro-oscuro);
  color: var(--ayg-blanco);
  padding: 12px 26px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 250ms ease, transform 200ms ease;
  align-self: flex-start;
}
.btn-mapa-wa:hover {
  background: var(--ayg-oro-principal);
  transform: translateX(4px);
  color: var(--ayg-negro-base);
}
.mapa-embed {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--ayg-crema-medio);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.mapa-embed iframe {
  width: 100%;
  height: 360px;
  display: block;
  border: none;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 900px) {
  .mapa-grid { grid-template-columns: 1fr; }
  .mapa-embed { order: -1; }
  .mapa-embed iframe { height: 260px; }
  .stat-divider { display: none; }
}

@media (max-width: 640px) {
  .hero-content { align-items: center; text-align: center; }
  .hero-title, .hero-title-oro { text-align: center; }
  .hero-sub { text-align: center; }
  .hero-ctas { justify-content: center; }
  .scroll-hint { display: none; }
  .section-categorias,
  .section-valores,
  .section-testimonios,
  .section-cta,
  .section-mapa { padding: 4rem 0; }
  .stats-inner { gap: 16px; }
  .cat-grid { grid-template-columns: 1fr; }
  .valores-grid { grid-template-columns: 1fr 1fr; }
  .section-head { margin-bottom: 2rem; }
}

@media (max-width: 420px) {
  .valores-grid { grid-template-columns: 1fr; }
  .btn-hero-primary,
  .btn-hero-secondary { width: 100%; justify-content: center; }
}