/* ============================================================
   MICROPIGMENTACIÓN SAN JUAN · by Noelia Herrera
   Estilos complementarios a Tailwind
   ============================================================ */

:root {
  --ink: #1a1a1a;
  --bronze: #5a4a0e;
  --gold: #8c6d12;
  --gold-soft: #c9ae4e;
  --sand: #f7f5ef;
}

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }

/* Foco visible para teclado */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ---------- Marca ---------- */
.wordmark { font-family: 'Cormorant Garamond', serif; letter-spacing: .04em; }
.signature { font-family: 'Mrs Saint Delafield', cursive; color: var(--gold); line-height: 1; }

/* Firma "Noelia Herrera" (imagen extraída del logo) */
.firma { display: block; height: auto; }
.firma-hero .firma    { width: clamp(220px, 34vw, 330px); }
.firma-about .firma   { width: clamp(200px, 28vw, 260px); }
.firma-footer .firma { width: 190px; margin-inline: auto; }
@media (min-width: 768px) { .firma-footer .firma { margin-inline: 0; } }

/* Titulares estilo piezas de redes */
.title-duo { text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
.title-duo .thin { display: block; font-weight: 300; }
.title-duo .bold { display: block; font-weight: 700; }

/* ---------- Hero: marco circular que replica el logo ---------- */
.ring-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
  border: 3px solid var(--bronze);
  padding: 14px;
  background: #fff;
}
.ring-frame .ring-inner {
  width: 100%; height: 100%;
  border-radius: 9999px;
  overflow: hidden;
  background: var(--sand);
}
.ring-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Puntos decorativos */
.dots {
  position: absolute;
  width: 110px; height: 110px;
  background-image: radial-gradient(var(--gold-soft) 2.2px, transparent 2.6px);
  background-size: 14px 14px;
  opacity: .8;
  pointer-events: none;
}

/* Animación de entrada para el hero */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-in > * { opacity: 0; animation: rise .8s ease forwards; }
.hero-in > *:nth-child(1) { animation-delay: .05s; }
.hero-in > *:nth-child(2) { animation-delay: .2s; }
.hero-in > *:nth-child(3) { animation-delay: .4s; }
.hero-in > *:nth-child(4) { animation-delay: .55s; }

/* ---------- Imágenes con marcador si falta el archivo ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #f1eee5 0 12px, #f7f5ef 12px 24px);
}
.media::after {
  content: attr(data-ph);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font: 500 .8rem 'Montserrat', sans-serif;
  color: #8a8068; text-align: center; padding: 1rem;
  z-index: 0;
}
.media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Tarjetas de servicio ---------- */
.service-card { border: 1px solid #e7e2d3; background: #fff; transition: border-color .2s ease; }
.service-card:hover { border-color: var(--gold); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.75rem;
  font: 600 .85rem 'Montserrat', sans-serif;
  letter-spacing: .08em; text-transform: uppercase;
  border: 1.5px solid var(--bronze);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-solid { background: var(--bronze); color: #fff; }
.btn-solid:hover { background: #3f3309; border-color: #3f3309; }
.btn-line { background: transparent; color: var(--bronze); }
.btn-line:hover { background: var(--bronze); color: #fff; }
.btn-light { background: #fff; color: var(--bronze); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; }

/* ---------- Preguntas frecuentes ---------- */
details.faq { border-bottom: 1px solid #e7e2d3; }
details.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0;
  font: 600 1rem 'Montserrat', sans-serif;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+'; font-size: 1.5rem; font-weight: 300; color: var(--gold);
  transition: transform .2s ease;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-body { padding: 0 0 1.5rem; color: #4a4638; line-height: 1.75; max-width: 65ch; }

/* ---------- Formulario ---------- */
.field {
  width: 100%; padding: .85rem 1rem;
  border: 1px solid #d9d3bf; background: #fff;
  font: 400 .95rem 'Montserrat', sans-serif;
}
.field:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(140,109,18,.18); }

/* Header */
.site-header { transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: 0 1px 0 #e7e2d3; }

/* Menú móvil */
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-in > * { animation: none; opacity: 1; }
}