:root {
  --rosa-claro: #fdf1f4;
  --rosa: #f7d6df;
  --rosa-medio: #eeaabd;
  --rosa-fuerte: #d9688a;
  --rosa-tinta: #a23b5f;
  --oro: #c9a24a;
  --oro-claro: #f3dc9b;
  --tinta: #3a2730;
  --tinta-suave: #6d5560;
  --blanco: #fffafb;
  --sombra: 0 10px 30px rgba(162, 59, 95, .14);
  --radio: 22px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --titulo: "Cinzel", "Times New Roman", serif;
  --script: "Great Vibes", cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--tinta);
  background:
    radial-gradient(circle at 15% 10%, rgba(247, 214, 223, .9), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(243, 220, 155, .35), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(238, 170, 189, .45), transparent 50%),
    var(--rosa-claro);
  background-attachment: fixed;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rosa-tinta); }

.icono { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Destellos de fondo (main.js genera los <i>) ---------- */
.destellos {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.destellos i {
  position: absolute;
  width: var(--t, 10px);
  height: var(--t, 10px);
  background: radial-gradient(circle, #fff 0 18%, var(--c, var(--oro-claro)) 30%, transparent 70%);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: 0;
  animation: titilar var(--d, 3s) ease-in-out var(--r, 0s) infinite;
}
@keyframes titilar {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
  50% { opacity: .95; transform: scale(1) rotate(45deg); }
}

/* ---------- Barra superior ---------- */
.barra {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem clamp(16px, 4vw, 48px);
  background: rgba(253, 241, 244, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 74, .35);
}
.barra__marca {
  font-family: var(--titulo);
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--tinta);
  white-space: nowrap;
}
.barra__nav { display: flex; gap: clamp(.6rem, 2vw, 1.6rem); flex-wrap: wrap; justify-content: flex-end; }
.barra__nav a {
  font-family: var(--titulo);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--tinta-suave);
  transition: color .2s;
}
.barra__nav a:hover { color: var(--rosa-fuerte); }

main, .pie { position: relative; z-index: 1; }

/* ---------- Portada ---------- */
.portada {
  min-height: calc(100svh - 56px);
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 2rem 16px 3rem;
}
.portada__logo {
  width: min(560px, 88vw);
  filter: drop-shadow(0 18px 30px rgba(162, 59, 95, .18));
  animation: aparecer 1.2s ease-out both;
}
.portada__lema {
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  color: var(--tinta-suave);
  margin: 1rem 0 1.6rem;
}
.portada__acciones { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

@keyframes aparecer {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--titulo);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.boton:hover { transform: translateY(-2px); }
.boton--brillo {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--rosa-fuerte), #e98aa7 55%, var(--oro));
  box-shadow: 0 8px 22px rgba(217, 104, 138, .4);
}
.boton--brillo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .65) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: brillo 3.2s ease-in-out infinite;
}
@keyframes brillo {
  0%, 55% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
.boton--contorno {
  color: var(--rosa-tinta);
  background: rgba(255, 255, 255, .6);
  border: 1.5px solid var(--oro);
}

/* ---------- Secciones ---------- */
.seccion {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) 16px;
}
.titulo {
  font-family: var(--titulo);
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  letter-spacing: .06em;
  text-align: center;
  margin: 0 0 2.2rem;
}
.titulo__script {
  display: block;
  font-family: var(--script);
  font-size: 1.6em;
  letter-spacing: 0;
  line-height: 1;
  background: linear-gradient(90deg, var(--rosa-fuerte), var(--oro), var(--rosa-fuerte));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: oro 6s linear infinite;
}
.titulo::after {
  content: "✦  ✦  ✦";
  display: block;
  margin-top: .6rem;
  font-size: .8rem;
  color: var(--oro);
  letter-spacing: .4em;
}
@keyframes oro { to { background-position: 200% center; } }

.sobre { max-width: 760px; text-align: center; font-size: 1.3rem; }

/* ---------- Tarjetas / servicios ---------- */
.tarjeta {
  position: relative;
  background: rgba(255, 250, 251, .78);
  border: 1px solid rgba(201, 162, 74, .35);
  border-radius: var(--radio);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--sombra);
}
.tarjeta h3 { font-family: var(--titulo); font-weight: 600; font-size: 1.05rem; letter-spacing: .05em; margin: .4rem 0; }
.tarjeta p { margin: 0; color: var(--tinta-suave); }
.servicios {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.3rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  text-align: center;
}
.servicios .tarjeta { transition: transform .25s; }
.servicios .tarjeta:hover { transform: translateY(-5px); }
.tarjeta__icono { font-size: 2rem; }

/* ---------- Galería ---------- */
.galeria {
  columns: 3 260px;
  column-gap: 1rem;
}
.galeria figure {
  margin: 0 0 1rem;
  break-inside: avoid;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  border: 3px solid #fff;
  cursor: zoom-in;
}
.galeria img { width: 100%; transition: transform .5s; }
.galeria figure:hover img { transform: scale(1.04); }
.galeria:has(figure) + .galeria__vacia { display: none; }
.galeria__vacia { text-align: center; font-style: italic; color: var(--tinta-suave); }

/* ---------- Redes y embeds ---------- */
.redes__botones { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-bottom: 2.4rem; }
.red {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.3rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  box-shadow: var(--sombra);
  transition: transform .2s;
}
.red:hover { transform: translateY(-2px); }
.red--instagram { background: linear-gradient(45deg, #f9a03f, #e1306c 45%, #a445b2); }
.red--facebook { background: #1877f2; }
.red--tiktok { background: #1d1d1f; }

.embeds {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  align-items: start;
}
.embed {
  background: rgba(255, 250, 251, .85);
  border: 1px solid rgba(201, 162, 74, .45);
  border-radius: var(--radio);
  padding: .8rem;
  box-shadow: var(--sombra);
  overflow: hidden;
  min-width: 0;
}
.embed--instagram { display: grid; gap: 1rem; }
.embed--instagram:not(:has(blockquote)) { display: none; }
.embed iframe, .embed blockquote { max-width: 100% !important; min-width: 0 !important; margin: 0 auto !important; }
.embed__respaldo {
  display: block;
  text-align: center;
  font-family: var(--titulo);
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .6rem;
}

/* ---------- Visítanos ---------- */
.visitanos__rejilla {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: stretch;
}
.visitanos__datos p { margin-bottom: .8rem; }
.visitanos__acciones { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.visitanos__mapa {
  width: 100%;
  min-height: 320px;
  border: 3px solid #fff;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

/* ---------- Pie ---------- */
.pie {
  text-align: center;
  padding: 3rem 16px 6rem;
  background: linear-gradient(180deg, transparent, rgba(247, 214, 223, .8));
  border-top: 1px solid rgba(201, 162, 74, .35);
}
.pie__marca { font-family: var(--titulo); font-size: 1.4rem; letter-spacing: .1em; margin: 0; }
.pie__marca span { display: block; font-size: .8rem; letter-spacing: .5em; color: var(--tinta-suave); }
.pie__redes { display: flex; gap: 1.1rem; justify-content: center; margin: 1.2rem 0; }
.pie__redes a { color: var(--rosa-tinta); font-size: 1.4rem; transition: color .2s, transform .2s; }
.pie__redes a:hover { color: var(--oro); transform: scale(1.15); }
.pie__legal { font-size: .95rem; color: var(--tinta-suave); margin: 0; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-flotante {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.7rem;
  background: #25d366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45), 0 0 0 4px rgba(255, 255, 255, .8);
  animation: latido 2.6s ease-in-out infinite;
}
@keyframes latido {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
}
.lightbox::backdrop { background: rgba(58, 39, 48, .88); backdrop-filter: blur(4px); }
.lightbox__img { max-width: 92vw; max-height: 86vh; border-radius: 14px; border: 3px solid #fff; }
.lightbox button {
  position: fixed;
  border: 0;
  background: rgba(255, 255, 255, .9);
  color: var(--rosa-tinta);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__cerrar { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsivo y accesibilidad ---------- */
@media (max-width: 640px) {
  .barra__nav { display: none; }
  .barra { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .destellos { display: none; }
}
