/* =========================================================
   CONECTAR PEHUENCO — Sistema de diseño
   Paleta: ciruela profundo + lavanda + dorado sobre crema cálido
   Tipografías: Cormorant Garamond (display), Playball (script/acentos), Poppins (cuerpo)
   ========================================================= */

:root {
  /* Color */
  --plum-900: #34162f;
  --plum-800: #47203f;
  --plum-700: #6b3a63;
  --plum-500: #8f5a86;
  --lilac-300: #b79cc9;
  --lilac-200: #d8c6e0;
  --lilac-100: #eee3f0;
  --gold-600: #a67c3d;
  --gold-500: #c1954f;
  --gold-300: #dcb97e;
  --cream-100: #faf5eb;
  --cream-50: #f6efe1;
  --ink-900: #2b1f2a;
  --ink-600: #5b4a58;
  --white: #fffdf9;

  /* Type */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-script: 'Playball', cursive;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;

  /* Layout */
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 12px 34px rgba(52, 22, 47, 0.14);
  --shadow-card: 0 6px 20px rgba(52, 22, 47, 0.10);
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--plum-900);
  margin: 0 0 .5em;
  font-weight: 600;
  line-height: 1.15;
}

.eyebrow {
  font-family: var(--font-body);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--gold-600);
  font-weight: 600;
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
}

.section {
  padding: 72px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.section-head p {
  color: var(--ink-600);
  font-size: 1.02rem;
}

/* divisor floral (elemento de firma, ecoa el loto de la etiqueta) */
.divider-bloom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px auto 0;
  color: var(--gold-500);
}
.divider-bloom::before,
.divider-bloom::after {
  content: '';
  height: 1px;
  width: 54px;
  background: linear-gradient(90deg, transparent, var(--gold-300));
}
.divider-bloom::after { background: linear-gradient(90deg, var(--gold-300), transparent); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--plum-700);
  color: var(--white);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: var(--plum-800); transform: translateY(-2px); }
.btn-gold {
  background: var(--gold-500);
  color: var(--white);
}
.btn-gold:hover { background: var(--gold-600); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: var(--plum-500);
  color: var(--plum-700);
}
.btn-outline:hover { background: var(--lilac-100); }
.btn-ghost {
  background: transparent;
  color: var(--plum-700);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 6px 4px;
}
.btn-sm { padding: 8px 18px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 235, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(166, 124, 61, 0.18);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo-img {
  height: 64px;
  width: auto;
  display: block;
}
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--plum-700);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-300);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-script);
  font-size: 1.9rem;
  color: var(--plum-800);
  line-height: 1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 600;
  margin-top: 2px;
}

/* Acceso al panel (candado-flor) en el header */
.admin-access {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--lilac-300);
  display: flex; align-items: center; justify-content: center;
  color: var(--plum-700);
  flex-shrink: 0;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.admin-access:hover {
  background: var(--plum-700);
  color: var(--gold-300);
  border-color: var(--plum-700);
}

.main-nav ul { display: flex; gap: 30px; align-items: center; }
.main-nav a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-900);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold-500);
  transition: width .2s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none; border: none;
  color: var(--plum-800);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0 0 0 30%;
    background: var(--white);
    transform: translateX(100%);
    transition: transform .25s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,.15);
    padding: 90px 28px 28px;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
}

/* =========================================================
   HERO / SLIDER
   ========================================================= */
.hero-slider {
  position: relative;
  height: min(78vh, 640px);
  min-height: 420px;
  overflow: hidden;
  background: var(--plum-900);
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-slide::before {
  content: '';
  position: absolute; inset: 0;
}
.hero-caption {
  position: absolute; left: 0; right: 0; bottom: 56px;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  z-index: 2;
}
.hero-caption .eyebrow { color: var(--gold-300); }
.hero-caption h2, .hero-caption h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  text-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.hero-caption p {
  max-width: 560px; margin: 0 auto 20px;
  color: rgba(255,255,255,.88);
}
.hero-dots {
  position: absolute; bottom: 20px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 9px;
  z-index: 3;
}
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7);
  background: transparent;
  padding: 0;
}
.hero-dots button.is-active { background: var(--gold-300); border-color: var(--gold-300); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.hero-arrow:hover { background: rgba(255,255,255,.32); }
.hero-arrow.prev { left: 20px; }
.hero-arrow.next { right: 20px; }
.hero-empty {
  height: 60vh; min-height: 380px;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px;
  background: linear-gradient(160deg, var(--plum-800), var(--plum-900));
  color: var(--white); text-align: center; padding: 24px;
}
.hero-empty h1 { color: var(--white); }

@media (max-width: 600px) {
  .hero-arrow { display: none; }
}

/* =========================================================
   INTRO / ABOUT strip
   ========================================================= */
.intro-strip {
  background: var(--white);
  padding: 54px 0;
  text-align: center;
  border-bottom: 1px solid rgba(166,124,61,.15);
}
.intro-strip p {
  max-width: 720px; margin: 0 auto;
  font-size: 1.08rem; color: var(--ink-600);
}
.pill-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px;
}
.pill-tags span {
  border: 1px solid var(--lilac-300);
  color: var(--plum-700);
  background: var(--lilac-100);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
}

/* =========================================================
   VIDEO
   ========================================================= */
.video-section { background: var(--lilac-100); }
.video-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--plum-900);
  aspect-ratio: 16/10;
}
.video-frame video, .video-frame iframe {
  width: 100%; height: 100%; object-fit: cover; border: 0;
}
.video-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.video-copy p { color: var(--ink-600); }
@media (max-width: 860px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   CARDS — categorías / productos / encuentros
   ========================================================= */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 340px));
  justify-content: center;
  gap: 26px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); }
.card-img {
  aspect-ratio: 4/3;
  background: var(--lilac-100);
  overflow: hidden;
  position: relative;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--lilac-300);
}
.card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.28rem; margin-bottom: 6px; }
.card-body p { color: var(--ink-600); font-size: .92rem; flex: 1; }
.card-price {
  color: var(--gold-600); font-weight: 700; font-size: 1.05rem; margin: 8px 0;
}
.card-foot { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }

.category-card { position: relative; color: var(--white); }
.category-card .card-img { aspect-ratio: 3/2; }
.category-card .card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(52,22,47,.1), rgba(52,22,47,.82));
}
.category-card .card-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; z-index: 2;
}
.category-card .card-overlay h3 { color: var(--white); margin-bottom: 2px; }
.category-card .card-overlay span { color: var(--gold-300); font-size: .82rem; }

/* Badge de estado (cupo, modalidad) */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .76rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
}
.badge-gold { background: rgba(193,149,79,.15); color: var(--gold-600); }
.badge-plum { background: var(--lilac-100); color: var(--plum-700); }
.badge-full { background: #f3dede; color: #a13d3d; }
.badge-wait { background: #fdeecb; color: #9a6a10; }

/* Encuentro card específica */
.event-card .event-date {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--white); border-radius: 12px;
  padding: 8px 12px; text-align: center; box-shadow: var(--shadow-card);
  min-width: 56px;
}
.event-date .day { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--plum-800); line-height: 1; }
.event-date .month { font-size: .68rem; text-transform: uppercase; color: var(--gold-600); font-weight: 700; letter-spacing: .05em; }
.event-meta { display: flex; flex-direction: column; gap: 5px; font-size: .86rem; color: var(--ink-600); margin: 8px 0 14px; }
.event-meta span { display: flex; align-items: center; gap: 7px; }

/* =========================================================
   FORMULARIOS
   ========================================================= */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 34px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; color: var(--plum-800);
}
.field .hint { font-size: .78rem; color: var(--ink-600); margin-top: 5px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--lilac-200);
  background: var(--cream-100);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink-900);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(193,149,79,.18);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: .92rem; margin-bottom: 20px;
}
.alert-success { background: #e6f2e3; color: #386b2d; border: 1px solid #bfe0b6; }
.alert-error { background: #fbe6e6; color: #a13d3d; border: 1px solid #f0c2c2; }
.alert-info { background: var(--lilac-100); color: var(--plum-700); border: 1px solid var(--lilac-200); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--plum-900);
  color: rgba(255,255,255,.82);
  padding: 60px 0 26px;
  margin-top: 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-grid h4 {
  color: var(--gold-300); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em;
  font-family: var(--font-body); font-weight: 600; margin-bottom: 16px;
}
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,.7); margin-top: 12px; font-size: .92rem; max-width: 320px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--gold-300); }
.footer-social { display: flex; gap: 12px; margin-top: 8px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: rgba(255,255,255,.1); }
.footer-bottom {
  padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .8rem; color: rgba(255,255,255,.55);
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: #3fae5a; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.07); }

/* =========================================================
   Páginas internas (listados / detalle)
   ========================================================= */
.page-hero {
  background: linear-gradient(160deg, var(--plum-800), var(--plum-900));
  color: var(--white);
  padding: 64px 0 46px;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { color: rgba(255,255,255,.78); max-width: 560px; margin: 8px auto 0; }
.breadcrumb { font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 10px; }
.breadcrumb a { color: var(--gold-300); }

.filter-tabs {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px;
}
.filter-tabs a {
  padding: 9px 20px; border-radius: 999px; font-size: .86rem; font-weight: 600;
  border: 1px solid var(--lilac-300); color: var(--plum-700);
}
.filter-tabs a.active, .filter-tabs a:hover { background: var(--plum-700); color: var(--white); border-color: var(--plum-700); }

.detail-grid {
  display: grid; grid-template-columns: .95fr 1.05fr; gap: 52px; align-items: flex-start;
}
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-gallery img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
}
.detail-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.detail-thumbs img {
  width: 74px; height: 74px; object-fit: cover; border-radius: 10px; cursor: pointer;
  border: 2px solid transparent;
}
.detail-thumbs img.active { border-color: var(--gold-500); }
.detail-copy .eyebrow { display: block; margin-bottom: 8px; }
.detail-copy h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.detail-copy .price { font-size: 1.6rem; color: var(--gold-600); font-weight: 700; margin: 14px 0; }
.detail-copy .desc { color: var(--ink-600); white-space: pre-line; margin-bottom: 22px; }
.info-list { display: flex; flex-direction: column; gap: 12px; margin: 22px 0; }
.info-list li, .info-list div { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--ink-900); }
.info-list b { color: var(--plum-800); }

.capacity-bar {
  height: 8px; border-radius: 999px; background: var(--lilac-100); overflow: hidden; margin: 6px 0 4px;
}
.capacity-bar > span { display: block; height: 100%; background: var(--gold-500); }

.empty-state {
  text-align: center; padding: 60px 24px; color: var(--ink-600);
}
.empty-state svg { color: var(--lilac-300); margin-bottom: 14px; }

/* Utilidades */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}.text-center{text-align:center}
.flex{display:flex}.items-center{align-items:center}.gap-8{gap:8px}
.w-full{width:100%}
