/* ════════════════════════════════════════════
   El Pegolete – Hoja de estilos compartida
════════════════════════════════════════════ */

/* ── Variables ───────────────────────────────────────── */
:root {
  --cream:       #F7EFE4;
  --cream-mid:   #EFE2D2;
  --cream-light: #FBF5EC;
  --brown-dark:  #5B3A21;
  --brown-mid:   #6E4528;
  --brown-hover: #7A4E2C;
  --accent:      #D98A4E;
  --gold:        #C9A15B;
  --gold-dark:   #9C5A2B;
  --text-body:   #6E5236;
  --text-muted:  #7A5C3D;
  --border:      #EAD9C2;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  font-family: 'Mulish', sans-serif;
  color: #4A3320;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

/* ── Animaciones ─────────────────────────────────────── */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ── Layout ──────────────────────────────────────────── */
.container        { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Botones ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
  text-align: center;
}
.btn-primary {
  color: var(--cream-light);
  background: var(--brown-dark);
  box-shadow: 0 12px 26px rgba(91,58,33,.28);
}
.btn-primary:hover { background: var(--brown-hover); transform: translateY(-3px); }

.btn-outline {
  color: var(--brown-dark);
  border: 2px solid var(--gold);
  background: transparent;
}
.btn-outline:hover { background: var(--gold); color: #fff; }

.btn-gold { color: var(--brown-dark); background: #E9C385; }
.btn-gold:hover { transform: translateY(-3px); }

.btn-wa {
  color: #fff;
  background: #25D366;
  box-shadow: 0 10px 22px rgba(37,211,102,.35);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-dark-outline {
  color: #F7EFE4;
  border: 2px solid var(--gold);
  background: transparent;
}
.btn-dark-outline:hover { background: var(--gold); color: var(--brown-dark); }

.btn-sm { font-size: 13px; padding: 11px 20px; }

/* ── Header ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(239,226,210,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 18px rgba(91,58,33,.06);
  overflow: visible;
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px 0;
  height: 72px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-logo img { height: 110px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.nav-link {
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brown-dark);
  cursor: pointer;
  transition: color .2s;
  display: inline-block;
}
.nav-link:hover  { color: var(--accent); }
.nav-link.active { color: var(--gold-dark); font-weight: 700; }

/* ── Etiqueta de sección ─────────────────────────────── */
.eyebrow {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0;
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  background-image: radial-gradient(rgba(91,58,33,.05) 1.4px, transparent 1.4px);
  background-size: 24px 24px;
}
.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 24px 84px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 54px;
  align-items: center;
}
.hero-title {
  font-family: 'Pacifico', cursive;
  font-weight: 400;
  font-size: clamp(42px, 8vw, 64px);
  line-height: 1.05;
  color: var(--brown-dark);
  text-wrap: balance;
}
.hero-subtitle {
  margin-top: 22px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-body);
  max-width: 480px;
}
.hero-btns {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-stats {
  margin-top: 40px;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.stat-num {
  font-family: 'Pacifico', cursive;
  font-size: 30px;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #8A6A47;
  margin-top: 6px;
}
.hero-media { position: relative; }
.hero-main-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 26px;
}
.hero-badge {
  position: absolute;
  bottom: -26px;
  left: -26px;
  width: 170px;
  animation: floaty 6s ease-in-out infinite;
}
.hero-badge img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
}

/* ── Banda intro ─────────────────────────────────────── */
.intro-band {
  position: relative;
  background: #6E4528;
  color: var(--cream);
  overflow: hidden;
}
.intro-band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .9;
  pointer-events: none;
}
.intro-band-inner {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}

/* ── Tarjetas de categoría ───────────────────────────── */
.cats-section { max-width: 1240px; margin: 0 auto; padding: 80px 24px 30px; }
.cats-section-header { text-align: center; }
.cats-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 26px;
}
.cat-card {
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(91,58,33,.07);
  transition: transform .25s, box-shadow .25s;
  display: block;
  color: inherit;
}
.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(91,58,33,.14);
}
.cat-card-img { width: 100%; height: 230px; object-fit: cover; }
.cat-card-body { padding: 24px 24px 28px; }
.cat-card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 23px;
  color: var(--brown-dark);
}
.cat-card-desc {
  margin: 8px 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}
.cat-card-cta {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
}
.cat-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ── Producto estrella ───────────────────────────────── */
.star-section { max-width: 1240px; margin: 0 auto; padding: 66px 24px; }
.star-box {
  background: linear-gradient(135deg, #FBF5EC 0%, #FDF2E6 100%);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
  align-items: center;
  overflow: hidden;
}
.star-img { width: 100%; height: 420px; object-fit: cover; border-radius: 22px; }
.star-content { padding: 18px 30px 18px 6px; }
.star-title {
  font-family: 'Pacifico', cursive;
  font-size: 48px;
  line-height: 1.05;
  color: var(--brown-dark);
  margin-top: 10px;
}
.star-desc { margin-top: 18px; font-size: 18px; line-height: 1.7; color: var(--text-body); }
.star-tags { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.star-tag {
  font-size: 14px;
  font-weight: 600;
  color: var(--brown-dark);
  background: #F2E4CF;
  padding: 8px 15px;
  border-radius: 999px;
}

/* ── Sobre nosotros (teaser) ─────────────────────────── */
.about-band { background: var(--cream-mid); }
.about-band-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 44px;
  align-items: center;
}
.about-img { width: 100%; height: 430px; object-fit: cover; border-radius: 20px; }

/* ── Reseñas ─────────────────────────────────────────── */
.reviews-section { background: var(--cream-mid); padding: 74px 0; }
.reviews-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 12px 26px rgba(91,58,33,.06);
}
.review-stars { color: #E0A23C; font-size: 18px; letter-spacing: 2px; }
.review-text  { margin-top: 14px; font-size: 16px; line-height: 1.65; color: var(--brown-dark); }
.review-author {
  margin-top: 16px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--gold-dark);
}

/* ── CTA ─────────────────────────────────────────────── */
.cta-section { max-width: 1240px; margin: 0 auto; padding: 60px 24px 86px; }
.cta-box {
  background: var(--brown-dark);
  border-radius: 30px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta-btns {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Página: Quiénes somos ───────────────────────────── */
.page-header { border-bottom: 1px solid #E0CDB4; }
.page-header-cream { background: var(--cream-mid); }
.page-header-inner { max-width: 1240px; margin: 0 auto; padding: 54px 24px 46px; text-align: center; }

.nos-bio-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 46px;
  align-items: center;
}
.nos-bio-img { width: 100%; height: 460px; object-fit: cover; border-radius: 20px; }

.nos-pillars { background: var(--brown-dark); }
.nos-pillars-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}
.pillar { text-align: center; }
.pillar-name { font-family: 'Pacifico', cursive; font-size: 34px; color: #E9A86A; }
.pillar-desc { margin-top: 10px; font-size: 15px; line-height: 1.6; color: #E4CDB2; }

/* ── Página: Galería ─────────────────────────────────── */
.gal-section { max-width: 1240px; margin: 0 auto; padding: 46px 24px 86px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gal-img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.span-2c { grid-column: span 2; }
.span-2r { grid-row: span 2; }

/* ── Página: Contacto ────────────────────────────────── */
.contact-hero-section {
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  min-height: 250px;
}
.contact-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-overlay { position: absolute; inset: 0; background: rgba(91,58,33,.72); }
.contact-hero-content {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 74px 24px;
  text-align: center;
}
.contact-body { max-width: 1240px; margin: 0 auto; padding: 56px 24px 80px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: start;
}
.map-frame {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(91,58,33,.1);
}
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 32px;
  background: var(--cream-mid);
}
.map-placeholder p { font-size: 14px; line-height: 1.6; color: var(--text-body); max-width: 320px; margin: 0; }
.map-placeholder a { font-size: 13px; color: var(--gold-dark); }
.contact-info h3 {
  font-family: 'Pacifico', cursive;
  font-size: 30px;
  color: var(--brown-dark);
  margin-bottom: 14px;
}
.contact-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.contact-icon { font-size: 22px; flex-shrink: 0; }
.contact-row h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--brown-dark);
  margin-bottom: 2px;
}
.contact-row p { font-size: 15px; line-height: 1.4; color: var(--text-muted); }
.contact-row a { color: var(--gold-dark); }
.schedule { padding: 16px 0; }
.schedule h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--brown-dark);
  margin-bottom: 12px;
}
.schedule-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 15px;
  color: var(--text-muted);
}
.schedule-row:last-child { border-bottom: none; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer { background: #FDF2E6; border-top: 4px solid var(--gold); }
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  align-items: start;
}
.footer-brand img { height: 96px; width: auto; }
.footer-tagline { font-family: 'Pacifico', cursive; font-size: 24px; color: var(--brown-dark); margin-top: 14px; }
.footer-sub { font-size: 15px; color: var(--text-muted); margin-top: 4px; }
.footer-col-title {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.footer-nav { display: flex; flex-direction: column; gap: 9px; }
.footer-nav-link { font-size: 15px; color: var(--brown-dark); transition: color .2s; }
.footer-nav-link:hover { color: var(--accent); }
.footer-bottom { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.footer-funded {
  border-top: 1px solid #EAD6BE;
  padding: 26px 0;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.footer-funded-label {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9C7E5A;
  font-weight: 600;
}
.footer-funded img { width: 150px; height: 64px; object-fit: contain; }
.footer-funded-text { font-size: 12px; line-height: 1.5; color: #9C7E5A; max-width: 360px; }
.footer-legal {
  border-top: 1px solid #EAD6BE;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-legal span { font-size: 13px; color: #9C7E5A; }
.footer-legal a { color: inherit; text-decoration: none; }
.footer-legal a:hover { color: var(--accent); text-decoration: underline; }

/* ── WhatsApp FAB ────────────────────────────────────── */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(37,211,102,.45);
  transition: transform .2s;
}
.wa-fab:hover { transform: scale(1.1); }

/* ── Páginas legales ─────────────────────────────────── */
.legal-content { max-width: 820px; margin: 0 auto; padding: 56px 24px 90px; }
.legal-content h2 { font-family: 'Poppins', sans-serif; font-size: 22px; color: var(--brown-dark); margin: 40px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { font-size: 16px; line-height: 1.75; color: var(--text-body); }
.legal-content ul { padding-left: 22px; margin: 10px 0; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--gold-dark); }
.legal-content strong { color: var(--brown-dark); }
.legal-updated { font-size: 14px; color: var(--text-muted); margin-top: -4px; }

/* ── Banner de cookies ───────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--brown-dark);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  box-shadow: 0 -6px 24px rgba(0,0,0,.2);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-text { font-size: 14px; line-height: 1.6; color: #E4CDB2; max-width: 640px; }
.cookie-banner-text a { color: var(--gold); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner-actions button {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 11px 22px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s, border-color .2s;
}
.cookie-btn-accept { background: var(--accent); color: #fff; }
.cookie-btn-accept:hover { background: var(--brown-hover); }
.cookie-btn-reject { background: transparent; color: #E4CDB2; border-color: rgba(255,255,255,.35); }
.cookie-btn-reject:hover { border-color: #fff; color: #fff; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .span-2c, .span-2r { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 680px) {
  .site-nav { gap: 14px; }
  .nav-link  { font-size: 12px; letter-spacing: .03em; }
  .btn-sm    { font-size: 11px; padding: 9px 14px; }
  .hero-inner { padding: 48px 24px 56px; }
  .hero-main-img { height: 300px; }
  .hero-badge { width: 110px; bottom: -14px; left: -14px; }
  .hero-badge img { width: 110px; height: 110px; }
  .star-content { padding: 0 6px 12px; }
  .cta-box  { padding: 40px 24px; }
  .nos-bio-img { height: 320px; }
}

@media (max-width: 480px) {
  .site-logo img { height: 62px; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
}
