/* ============================================================
   Vestidos de Maternidad — estilo editorial (inspirado en KH)
   Colores y tipografías editables aquí arriba.
   ============================================================ */
:root {
  --fondo: #ffffff;
  --seccion: #faf8f6;
  --texto: #1f1c1a;
  --suave: #8d847d;
  --acento: #a98b76;        /* taupe elegante */
  --acento-osc: #856450;
  --linea: #ece7e1;
  --sombra: 0 10px 30px rgba(60, 45, 35, 0.07);
  --serif: "Slabo 27px", Georgia, "Times New Roman", serif;
  --sans: "Roboto", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* respeta el atributo hidden aunque haya display:flex */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  padding-bottom: 120px;
}

/* ---------- Encabezado ---------- */
.cabecera {
  text-align: center;
  padding: 40px 20px 18px;
  border-bottom: 1px solid var(--linea);
}
.marca-logo {
  display: block;
  width: clamp(64px, 10vw, 88px);
  height: auto;
  margin: 0 auto 14px;
}
.marca {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: 0.04em;
  margin: 0;
}
.marca-sub {
  margin: 8px 0 0;
  color: var(--suave);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 11px;
}
.cabecera-nav { margin-top: 18px; }
.nav-activo {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--texto);
  border-bottom: 1px solid var(--acento);
  padding-bottom: 6px;
}

/* ---------- Intro ---------- */
.intro {
  text-align: center;
  max-width: 640px;
  margin: 40px auto 6px;
  padding: 0 24px;
}
.intro h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 3.6vw, 30px);
  margin: 0 0 12px;
}
.intro p { color: var(--suave); margin: 0; font-size: 15px; }

/* ---------- Filtros ---------- */
.filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  padding: 30px 16px 4px;
}
.filtro-btn {
  border: none;
  background: none;
  color: var(--suave);
  padding: 4px 2px;
  font-family: var(--sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: all 0.18s ease;
}
.filtro-btn:hover { color: var(--texto); }
.filtro-btn.activo { color: var(--texto); border-bottom-color: var(--acento); }

/* ---------- Galería ---------- */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px 18px;
  max-width: 1240px;
  margin: 28px auto;
  padding: 0 24px;
}
.tarjeta {
  background: var(--fondo);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.tarjeta-foto {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--seccion);
}
.tarjeta-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.tarjeta:hover .tarjeta-foto img { transform: scale(1.04); }

/* ---------- Consejos y asesoría ---------- */
.consejos {
  background: var(--seccion);
  border-top: 1px solid var(--linea);
  padding: 56px 20px 60px;
  text-align: center;
}
.consejos-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 11px;
  color: var(--acento);
  margin: 0 0 10px;
}
.consejos-titulo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 3.4vw, 30px);
  margin: 0 auto 12px;
  max-width: 620px;
  line-height: 1.25;
}
.consejos-intro {
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--suave);
  font-size: 15px;
}
.consejos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}
.consejo {
  background: var(--fondo);
  border: 1px solid var(--linea);
  border-radius: 12px;
  padding: 22px 22px 20px;
  box-shadow: var(--sombra);
}
.consejo-ic { font-size: 26px; display: block; margin-bottom: 10px; }
.consejo h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  margin: 0 0 8px;
}
.consejo p { margin: 0; font-size: 14px; color: var(--texto); opacity: 0.85; line-height: 1.6; }
.consejos-cta { margin: 36px auto 0; font-size: 15px; color: var(--suave); }
.consejos-cta a {
  color: var(--acento-osc);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--acento);
  padding-bottom: 1px;
  white-space: nowrap;
}
.consejos-cta a:hover { color: var(--texto); }

/* Carrusel de fotos en la tarjeta */
.foto-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: rgba(0,0,0,0.45); color: #fff; font-size: 20px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s ease; z-index: 2;
}
.tarjeta-foto:hover .foto-nav, .foto-nav:focus { opacity: 1; }
@media (hover: none) { .foto-nav { opacity: 0.85; } }
.foto-prev { left: 6px; }
.foto-next { right: 6px; }
.foto-nav:hover { background: rgba(0,0,0,0.7); }
.foto-contador {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.55); color: #fff; font-size: 11px;
  padding: 2px 8px; border-radius: 20px; z-index: 2;
}

/* Placeholder cuando no hay foto */
.tarjeta-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 16px; color: var(--acento-osc);
}
.tarjeta-placeholder .ph-icono { font-size: 26px; opacity: 0.45; }
.tarjeta-placeholder .ph-nombre { font-family: var(--serif); font-size: 18px; margin-top: 8px; }
.tarjeta-placeholder .ph-nota {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; opacity: 0.6; margin-top: 4px;
}

/* Botón corazón */
.btn-corazon {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px;
  border-radius: 999px; border: none;
  background: rgba(255,255,255,0.92);
  color: var(--suave);
  font-size: 19px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  opacity: 0; transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.15s ease;
}
.tarjeta:hover .btn-corazon, .tarjeta.elegida .btn-corazon { opacity: 1; transform: translateY(0); }
.btn-corazon:hover { transform: scale(1.1); }
.tarjeta.elegida .btn-corazon { color: #c9415f; opacity: 1; }
.tarjeta.elegida .tarjeta-foto { outline: 1px solid var(--acento); outline-offset: -1px; }

.tarjeta-info { padding: 14px 6px 6px; text-align: center; }
.tarjeta-nombre {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.04em;
  margin: 0;
}
.tarjeta-cat {
  margin: 4px 0 0;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--suave);
}

.sin-resultados { text-align: center; color: var(--suave); padding: 40px; }

/* ---------- Pie ---------- */
.pie {
  text-align: center;
  background: var(--seccion);
  border-top: 1px solid var(--linea);
  padding: 46px 20px;
  margin-top: 36px;
  color: var(--suave);
}
.pie #pie-marca { font-family: var(--serif); font-size: 24px; color: var(--texto); margin: 0 0 10px; }
.pie-contacto a { color: var(--acento-osc); text-decoration: none; margin: 0 8px; letter-spacing: 0.05em; }
.pie-contacto a:hover { text-decoration: underline; }
.pie-nota { font-size: 11px; opacity: 0.7; margin-top: 16px; }

/* ---------- Barra de selección ---------- */
.barra-seleccion {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--texto); color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 14px 24px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.18);
  z-index: 40;
}
.barra-info { display: flex; align-items: center; gap: 16px; }
.barra-conteo { font-size: 14px; letter-spacing: 0.05em; }
.barra-ver {
  background: none; border: 1px solid rgba(255,255,255,0.4); color: #fff;
  padding: 6px 14px; border-radius: 999px; font-family: var(--sans); font-size: 12px; cursor: pointer;
}
.barra-ver:hover { border-color: #fff; }
.barra-accion { display: flex; align-items: center; gap: 10px; flex: 1; justify-content: flex-end; min-width: 260px; }
.barra-nombre {
  padding: 11px 14px; border: none; border-radius: 4px;
  font-family: var(--sans); font-size: 14px; width: 180px; max-width: 45vw;
}
.barra-enviar {
  background: #25D366; color: #fff; border: none;
  padding: 11px 22px; border-radius: 4px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.03em;
  cursor: pointer; transition: background 0.15s ease;
}
.barra-enviar:hover { background: #1ebe5a; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(31,28,26,0.5);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 60;
}
.modal-caja {
  background: var(--fondo); border-radius: 6px; max-width: 420px; width: 100%;
  padding: 28px 26px; position: relative; max-height: 80vh; overflow-y: auto;
}
.modal-cerrar { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 26px; color: var(--suave); cursor: pointer; line-height: 1; }
.modal-caja h3 { font-family: var(--serif); font-weight: 400; font-size: 23px; margin: 0 0 16px; }
.modal-lista { list-style: none; padding: 0; margin: 0 0 20px; }
.modal-lista li { padding: 10px 0; border-bottom: 1px solid var(--linea); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-lista button { background: none; border: none; color: #c9415f; cursor: pointer; font-size: 18px; }
.modal-caja .barra-enviar { width: 100%; }

@media (max-width: 560px) {
  .barra-seleccion { flex-direction: column; align-items: stretch; }
  .barra-info { justify-content: space-between; }
  .barra-accion { justify-content: stretch; }
  .barra-nombre { flex: 1; max-width: none; }
}
