:root {
  --cream: #FBF6EE;
  --pearl: #FFFDF9;
  --pink: #F3D2DC;
  --pink-deep: #E3A8BE;
  --gold: #C6A35D;
  --gold-deep: #A8853E;
  --ink: #3A2E2A;
  --ink-soft: #6E5E58;
  --line: rgba(198,163,93,0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 300;
}

h1, h2, h3, .script {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
}

/* ---------- Ornamento: corona lineal ---------- */
.corona {
  width: 46px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.corona path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.corona .gem {
  fill: var(--gold);
  stroke: none;
}
.corona-img {
  display: block;
  width: auto;
  margin: 0 auto;
}
.corona-img--hero {
  height: 200px;
  margin-bottom: 1px;
}
.corona-img--about {
  height: 80px;
  opacity: 0.5;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto;
}
.divider .stroke {
  height: 1px;
  width: 64px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- Header ---------- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  position: relative;
}
.brand {
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .corona { width: 28px; }
.brand-logo {
  height: 70px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--gold-deep); }
.nav-cta {
  background: var(--gold);
  color: var(--pearl);
  padding: 10px 24px;
  border-radius: 2px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-deep); }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 8px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: border-color 0.2s, color 0.2s;
}
.menu-toggle:hover { border-color: var(--gold); color: var(--gold-deep); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .brand-logo { height: 100px; }
}

/* ---------- Hero (NUEVO DISEÑO FULL SCREEN) ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  position: relative;
  /* Gradiente placeholder simulando la foto del vestido */
  background: linear-gradient(135deg, #e3a8be 0%, #d5bba8 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Overlay suave rosado/crema */
  background: linear-gradient(to bottom, rgba(243, 210, 220, 0.4), rgba(251, 246, 238, 0.85));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
}

.hero .corona-big { width: 64px; margin-bottom: 28px; }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.08;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-deep);
}
.hero p.lead {
  margin-top: 24px;
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  font-weight: 400;
}
.hero-ctas {
  margin-top: 42px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--pearl);
  border: 1px solid var(--gold);
}
.btn-primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn-ghost {
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  background: transparent;
}
.btn-ghost:hover { background: rgba(198, 163, 93, 0.1); }

/* Focus-visible: keyboard navigation ring — gold outline, 2px offset */
:is(.btn, .btn-primary, .btn-ghost, .nav-cta,
    .nav-links a, .social-link, .brand, .category-block,
    .demo-btn, .btn-wa-demo, .btn-wa-inline, .wa-float,
    .catalog-retry-btn):focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.hero-foot {
  position: absolute;
  bottom: 36px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  z-index: 2;
}
.hero-foot .divider { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Secciones (estructura general) ---------- */
section { padding: 110px 24px; }
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  margin-bottom: 18px;
}
.section-head p { color: var(--ink-soft); }
.section-head .divider { margin-top: 22px; }

/* ---------- Nosotros ---------- */
.about {
  background: var(--pearl);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-frame {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--pink) 0%, var(--cream) 100%);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-frame::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid var(--gold);
  opacity: 0.6;
  border-radius: 2px;
  z-index: 2;
  pointer-events: none;
}
.about-frame::after {
  content: '';
  position: absolute;
  inset: 22px;
  border: 1px solid var(--gold);
  opacity: 0.25;
  border-radius: 1px;
  z-index: 2;
  pointer-events: none;
}
.about-frame .corona { width: 72px; opacity: 0.5; }
.about-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.about-text h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 22px; }
.about-text p { color: var(--ink-soft); margin-bottom: 16px; }
.about-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--ink);
}
.about-item .mark {
  color: var(--gold-deep);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.4;
}

@media (max-width: 860px) {
  .about-wrap { grid-template-columns: 1fr; gap: 40px; }
  .about-frame { aspect-ratio: 16/9; }
}

/* ==========================================
   NUEVO: SECCIÓN CATEGORÍAS
   ========================================== */
.categories-section {
  background: var(--cream);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.category-block {
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 30px -15px rgba(58, 46, 42, 0.15);
  border: 1px solid var(--line);
}

.category-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--pink) 0%, var(--cream) 100%); /* Placeholder temporal */
  transition: transform 0.6s ease;
  z-index: 1;
}

.category-block:hover .category-placeholder {
  transform: scale(1.05);
}
.category-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.4s ease;
}
.category-block:hover .category-img {
  transform: scale(1.05);
}

.category-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 24px;
  background: linear-gradient(to top, rgba(58, 46, 42, 0.75) 0%, transparent 60%);
  color: var(--pearl);
}

.category-content h3 {
  font-size: 2.2rem;
  margin-bottom: 4px;
  color: var(--pearl);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.category-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}

.category-link::after {
  content: '→';
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.category-block:hover .category-link::after {
  transform: translateX(6px);
}

@media (max-width: 860px) {
  .categories-grid { grid-template-columns: 1fr; max-width: 450px; }
  .category-block { aspect-ratio: 4/3; }
}

/* ==========================================
   CATÁLOGO (Paquetes + Individuales)
   ========================================== */
.catalog-section {
  background: var(--pearl);
  border-top: 1px solid var(--line);
}

.catalog-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  margin-bottom: 72px;
}

.dress-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.dress-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -24px rgba(58, 46, 42, 0.35);
}
.dress-img {
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, var(--pink) 0%, var(--cream) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.dress-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dress-img .corona { width: 46px; opacity: 0.45; }

.dress-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent, var(--cream));
  pointer-events: none;
  z-index: 1;
}
.dress-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--pearl);
  color: var(--gold-deep);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  z-index: 2;
}
.dress-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.dress-body h3 { font-size: 1.35rem; margin-bottom: 8px; color: var(--gold-deep); }
.dress-body p { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 18px; flex-grow: 1; }
.dress-price {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.dress-price .from { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.dress-price .amount { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--gold-deep); }

@media (max-width: 620px) {
  .catalog-grid { grid-template-columns: 1fr; max-width: 420px; }
}

.dress-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  gap: 10px;
}
.dress-price-row .amount {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--gold-deep);
}

.catalog-empty-note {
  grid-column: 1 / -1;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  color: var(--ink-soft);
  padding: 40px 0;
}

.catalog-note {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.catalog-note strong { color: var(--ink); font-weight: 500; }

/* ---------- Artículos sueltos ---------- */
.accessories-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}
.accessories-header h3 {
  font-size: 1.9rem;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.accessories-header p { color: var(--ink-soft); font-size: 0.92rem; }

.accessories-grid {
  max-width: 1140px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 18px;
}

.accessory-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.3s;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}
.accessory-card:hover {
  transform: scale(1.05);
  border-color: var(--gold);
}
.accessory-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.accessory-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 96px;
  border-radius: 4px;
  margin-bottom: 12px;
  background: linear-gradient(160deg, var(--pink) 0%, var(--pearl) 70%);
  color: var(--gold-deep);
  font-size: 1.6rem;
  overflow: hidden;
}
.accessory-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.accessory-card h4 {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

/* ---------- Contacto + redes ---------- */
.contact-section {
  background: radial-gradient(ellipse at 50% 0%, rgba(243, 210, 220, 0.5) 0%, transparent 55%), var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.contact-section h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 12px;
}
.contact-location {
  margin-bottom: 24px;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 500;
}
.contact-location i {
  color: var(--gold);
  margin-right: 6px;
}
.contact-section p:not(.contact-location p) {
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 32px;
}
.contact-divider {
  display: flex;
  justify-content: center;
  margin: 48px auto 36px;
}
.contact-divider .stroke {
  height: 1px;
  width: 64px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--pearl);
  padding: 16px 28px;
  border-radius: 2px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  transition: border-color 0.25s, color 0.25s;
}
.social-link:hover { border-color: var(--gold); color: var(--gold-deep); }
.social-link .icon {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

/* ---------- Footer ---------- */
.footer-logo-wrap {
  text-align: center;
  padding-bottom: 48px;
  max-width: 1080px;
  margin: 0 auto;
}
.footer-logo {
  height: 130px;
  width: auto;
}

footer {
  background: var(--ink);
  color: rgba(251, 246, 238, 0.65);
  padding: 60px 24px 40px;
}
.footer-wrap {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .corona path { stroke: var(--gold); }
.footer-brand span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--cream);
  letter-spacing: 0.06em;
}
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col p, .footer-col a {
  display: block;
  color: rgba(251, 246, 238, 0.65);
  text-decoration: none;
  font-size: 0.86rem;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-address-txt {
  margin-top: 14px !important;
  font-style: italic;
  opacity: 0.8;
  max-width: 200px;
}
.footer-bottom {
  max-width: 1080px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(251, 246, 238, 0.12);
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: rgba(251, 246, 238, 0.4);
}
.footer-bottom a { color: rgba(251, 246, 238, 0.55); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 14px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.35);
  transition: transform 0.2s;
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 20px; height: 20px; fill: #fff; }
@media (max-width: 540px) {
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
}

/* ---------- Estado: menú móvil abierto ---------- */
.nav-links.open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  flex-direction: column;
  background: var(--pearl);
  border-bottom: 1px solid var(--line);
  padding: 20px 28px;
  gap: 18px;
}

/* ---------- Asistente IA ---------- */
.ia-assistant-avatar {
  position: fixed;
  bottom: 26px;
  left: 26px;
  z-index: 200;
  background: var(--ink);
  color: var(--gold);
  padding: 14px 20px;
  border-radius: 50px;
  border: 1px solid var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s;
  white-space: nowrap;
}
.ia-assistant-avatar:hover { transform: translateY(-3px); }
.pulse-ring {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(198, 163, 93, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(198, 163, 93, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(198, 163, 93, 0); }
}
@media (max-width: 540px) {
  .ia-assistant-avatar span { display: none; }
  .ia-assistant-avatar { padding: 14px; left: 20px; bottom: 20px; }
}

/* ==========================================
   MODAL DE ARTÍCULO
   ========================================== */
.item-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.item-modal[hidden] { display: none; }

.item-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(58, 46, 42, 0.55);
  backdrop-filter: blur(2px);
}

.item-modal-card {
  position: relative;
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 520px;
  width: 100%;
  padding: 32px;
  text-align: center;
  z-index: 1;
}

.item-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.item-modal-close:hover { border-color: var(--gold); color: var(--gold-deep); }

.item-modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.item-modal-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--pink) 0%, var(--cream) 70%);
}
.item-modal-gallery .gallery-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--pink) 0%, var(--cream) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  font-size: 1.8rem;
}

.item-modal-card h3 {
  font-size: 1.6rem;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.item-modal-note {
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.btn-wa-inline {
  background-color: #25D366;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s;
}
.btn-wa-inline:hover {
  background-color: #128C7E;
}

/* ==========================================
   LIGHTBOX DE IMÁGENES
   ========================================== */
.lightbox-card {
  position: relative;
  background: var(--ink);
  border-radius: 8px;
  max-width: 820px;
  width: 100%;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 32px 80px -20px rgba(0,0,0,0.55);
}

.lightbox-img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  padding: 12px 20px 16px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: rgba(251, 246, 238, 0.6);
  background: var(--ink);
}

/* ==========================================
   APARTADO CALLOUT
   ========================================== */
.apartado-section {
  background: var(--pearl);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.apartado-inner {
  max-width: 680px;
  margin: 0 auto;
}

.apartado-inner h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 20px;
  text-wrap: balance;
}

.apartado-inner > p {
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.75;
}

.apartado-divider {
  margin: 36px auto;
}

.apartado-steps {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.apartado-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 160px;
  max-width: 200px;
}

.apartado-step .mark {
  color: var(--gold-deep);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 6px;
}

.apartado-step-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.apartado-step-desc {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .apartado-steps { gap: 32px; }
  .apartado-step { min-width: 140px; }
}

/* ==========================================
   DEMOS: Invitaciones y Álbumes Digitales
   ========================================== */
.demos-section {
  background: var(--pearl);
}

.demos-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.demo-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.demo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -24px rgba(58, 46, 42, 0.35);
}

.demo-preview {
  aspect-ratio: 16/9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.demo-preview--xv   { background: linear-gradient(140deg, #e3a8be 0%, #f3d2dc 55%, #fbf6ee 100%); }
.demo-preview--boda { background: linear-gradient(140deg, #d5bba8 0%, #e8ddd5 55%, #fffdf9 100%); }
.demo-preview--cumple { background: linear-gradient(140deg, #c6a35d 0%, #e0c98f 55%, #fbf6ee 100%); }

.demo-preview-icon {
  height: 60px;
  width: auto;
  opacity: 0.38;
}
.demo-preview--cumple .demo-preview-icon {
  filter: brightness(0);
  opacity: 0.45;
}
.demo-preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--pearl);
  color: var(--gold-deep);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.demo-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.demo-body .eyebrow { margin-bottom: 4px; }
.demo-body h3 {
  font-size: 1.5rem;
  color: var(--gold-deep);
  margin-bottom: 10px;
}
.demo-body p {
  font-size: 0.86rem;
  color: var(--ink-soft);
  flex-grow: 1;
  margin-bottom: 20px;
}
.demo-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-wa-demo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 15px 20px;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.25s;
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #1a7a40;
  background: rgba(37, 211, 102, 0.04);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
}
.btn-wa-demo:hover {
  background: rgba(37, 211, 102, 0.11);
  border-color: rgba(37, 211, 102, 0.75);
}

@media (max-width: 860px) {
  .demos-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==========================================
   SKELETON LOADING — catalog placeholder cards
   ========================================== */

@keyframes valq-shimmer {
  from { background-position: -200% 0; }
  to   { background-position:  200% 0; }
}

.catalog-skeleton .dress-img,
.skeleton-line {
  background: linear-gradient(
    90deg,
    var(--cream) 25%,
    rgba(198, 163, 93, 0.13) 50%,
    var(--cream) 75%
  );
  background-size: 200% 100%;
  animation: valq-shimmer 1.8s ease-in-out infinite;
  border-radius: 4px;
}

.catalog-skeleton .dress-img {
  aspect-ratio: 4/3;
  border-radius: 0;
}

.catalog-skeleton .dress-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-line { height: 1em; }
.skeleton-line--wide { width: 72%; }
.skeleton-line--mid  { width: 55%; }
.skeleton-line--sm   { width: 38%; }

@media (prefers-reduced-motion: reduce) {
  .catalog-skeleton .dress-img,
  .skeleton-line {
    animation: none;
    background: rgba(198, 163, 93, 0.1);
  }
}

/* ==========================================
   CATALOG ERROR STATE — on-brand recovery
   ========================================== */

.catalog-error {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 32px;
  background: var(--pearl);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 520px;
  margin: 0 auto;
}

.catalog-error-corona {
  height: 48px;
  width: auto;
  margin-bottom: 20px;
  opacity: 0.38;
}

.catalog-error-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}

.catalog-error-sub {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 340px;
  margin-bottom: 28px;
}

.catalog-error-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================
   MOTION SYSTEM — El Vestidor Dorado
   Choreographed entrances; the occasion
   deserves ceremony on first load.
   ========================================== */

:root {
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Keyframes --- */
@keyframes valq-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes valq-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes valq-logo-enter {
  from { opacity: 0; transform: translateY(-12px) scale(0.88); }
  to   { opacity: 1; transform: none; }
}
@keyframes valq-card-enter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* --- Hero choreography (CSS only, no JS) --- */
header {
  animation: valq-fade-in 400ms var(--ease-out-quart) both;
}
.hero-content .corona-img--hero {
  animation: valq-logo-enter 800ms var(--ease-out-expo) 200ms both;
}
.hero .eyebrow {
  animation: valq-fade-in 500ms var(--ease-out-quart) 500ms both;
}
.hero h1 {
  animation: valq-fade-up 700ms var(--ease-out-expo) 700ms both;
}
.hero p.lead {
  animation: valq-fade-in 600ms var(--ease-out-quart) 1000ms both;
}
.hero-ctas {
  animation: valq-fade-up 500ms var(--ease-out-quart) 1200ms both;
}
.hero-foot {
  animation: valq-fade-in 400ms var(--ease-out-quart) 1500ms both;
}

/* --- Scroll reveal (requires .js class on <html>) ---
   Progressive enhancement: without JS, elements are
   fully visible. JS adds opacity-0 via .js selector. */
.js [data-scroll] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity  600ms var(--ease-out-quart),
    transform 600ms var(--ease-out-quart);
  transition-delay: calc(var(--scroll-delay, 0) * 1ms);
}
.js [data-scroll="from-left"] {
  transform: translateX(-32px);
}
.js [data-scroll].in-view,
.js [data-scroll="from-left"].in-view {
  opacity: 1;
  transform: none;
}

/* --- Stagger groups --- */
.js [data-scroll-stagger] > [data-scroll-item] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity   500ms var(--ease-out-quart),
    transform 500ms var(--ease-out-quart);
  transition-delay: calc(var(--i, 0) * 100ms);
}
.js [data-scroll-stagger].in-view > [data-scroll-item] {
  opacity: 1;
  transform: none;
}

/* --- Dynamic catalog card entrance --- */
.catalog-card-enter {
  animation: valq-card-enter 500ms var(--ease-out-quart) calc(var(--i, 0) * 80ms) both;
}
.accessory-card-enter {
  animation: valq-card-enter 400ms var(--ease-out-quart) calc(var(--i, 0) * 50ms) both;
}

/* --- Modal / lightbox animation --- */
.item-modal {
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-out-quart);
}
.item-modal.is-open {
  opacity: 1;
  pointer-events: all;
}
.item-modal-card,
.lightbox-card {
  transform: scale(0.95) translateY(10px);
  opacity: 0;
  transition:
    transform 350ms var(--ease-out-quart) 50ms,
    opacity   350ms var(--ease-out-quart) 50ms;
}
.item-modal.is-open .item-modal-card,
.item-modal.is-open .lightbox-card {
  transform: none;
  opacity: 1;
}

/* --- Button press feedback --- */
.btn:active,
.nav-cta:active {
  transform: scale(0.97);
}

/* --- Reduced motion ---
   Global suppressor; explicit overrides ensure
   animated elements that start invisible become
   visible for users who need it. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  header,
  .hero-content .corona-img--hero,
  .hero .eyebrow,
  .hero h1,
  .hero p.lead,
  .hero-ctas,
  .hero-foot {
    opacity: 1 !important;
    transform: none !important;
  }

  .js [data-scroll],
  .js [data-scroll="from-left"],
  .js [data-scroll-stagger] > [data-scroll-item] {
    opacity: 1 !important;
    transform: none !important;
  }

  .catalog-card-enter,
  .accessory-card-enter {
    opacity: 1 !important;
    transform: none !important;
  }

  .item-modal-card,
  .lightbox-card {
    transform: none !important;
    opacity: 0;
  }
  .item-modal.is-open .item-modal-card,
  .item-modal.is-open .lightbox-card {
    opacity: 1 !important;
  }
}
/* ==========================================
   GALERÍA CLOUDINARY
   ========================================== */
.gallery-section {
  background: var(--pearl);
  border-top: 1px solid var(--line);
}

.gallery-grid {
  max-width: 1140px;
  margin: 0 auto;
  columns: 4;
  column-gap: 14px;
  min-height: 160px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  background: linear-gradient(160deg, var(--pink) 0%, var(--cream) 100%);
  transition: transform 0.3s var(--ease-out-quart), box-shadow 0.3s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(58, 46, 42, 0.35);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--ease-out-quart);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item-enter {
  animation: valq-card-enter 400ms var(--ease-out-quart) calc(var(--i, 0) * 55ms) both;
}

.gallery-empty {
  column-span: all;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  padding: 56px 0;
  line-height: 1.8;
}

.gallery-loading {
  column-span: all;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 56px 0;
}

.gallery-spinner {
  width: 30px;
  height: 30px;
  border: 2px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: gallery-spin 0.8s linear infinite;
}

@keyframes gallery-spin {
  to { transform: rotate(360deg); }
}

.gallery-load-more-wrap {
  text-align: center;
  padding: 32px 0 8px;
}

@media (max-width: 1199px) {
  .gallery-grid { columns: 3; }
}

@media (max-width: 767px) {
  .gallery-grid { columns: 2; column-gap: 12px; }
  .gallery-item { margin-bottom: 12px; }
}

@media (max-width: 479px) {
  .gallery-grid { columns: 1; max-width: 400px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-spinner { animation: none; border-color: var(--gold); opacity: 0.5; }
  .gallery-item,
  .gallery-item img { transition: none; }
  .gallery-item-enter { animation: none; opacity: 1; transform: none; }
}

/* ==========================================
   UBICACIÓN / MAPA
   ========================================== */
.location-section {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.location-inner {
  max-width: 860px;
  margin: 0 auto;
}

.location-map {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 10px 30px -15px rgba(58, 46, 42, 0.15);
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: none;
}

.location-ref {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.9;
}

.location-ref strong {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 620px) {
  .location-map iframe { height: 260px; }
}
