/* ===========================================================
   hemilia.events — estilos base
   =========================================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Focus states ---------- */
.focus-ring:focus-visible {
  outline: 2px solid #221D17;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Grain texture overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.02;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Logotipo dinámico (elemento firma) ----------
   El wordmark nunca es estático: un gradiente cíclico simboliza
   que ningún evento es igual a otro. */
.hemilia-logo {
  background-image: linear-gradient(100deg, #C89B6B, #D4A5A5, #7A5C4F, #B8965F, #C89B6B);
  background-size: 320% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hemilia-gradient 14s ease-in-out infinite alternate;
}
@keyframes hemilia-gradient {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hemilia-logo {
    animation: none;
    background-position: 35% 50%;
  }
}

/* ---------- Nav ---------- */
.nav-shell.is-scrolled {
  box-shadow: 0 6px 24px -8px rgba(34, 29, 23, 0.12);
}

.nav-link {
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: #221D17;
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Burger icon */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 18px;
  height: 14px;
}
.burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #221D17;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#menuBtn[aria-expanded="true"] .burger span:first-child {
  transform: translateY(5.5px) rotate(45deg);
}
#menuBtn[aria-expanded="true"] .burger span:last-child {
  transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-menu {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.mobile-menu[hidden] {
  display: none;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #221D17;
  color: #FEFCF8;
  border-radius: 9999px;
  padding: 0.95rem 1.75rem;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.btn-primary:hover {
  background: #3a3128;
  transform: translateY(-2px);
}
.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.btn-primary:disabled:hover {
  background: #221D17;
  transform: none;
}
.btn-primary svg {
  transition: transform 0.25s ease;
}
.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: #221D17;
  border: 1px solid rgba(34, 29, 23, 0.25);
  border-radius: 9999px;
  padding: 0.95rem 1.75rem;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}
.btn-secondary:hover {
  border-color: #221D17;
  background: rgba(34, 29, 23, 0.04);
  transform: translateY(-2px);
}

.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #FEFCF8;
  color: #221D17;
  border-radius: 9999px;
  padding: 0.95rem 1.75rem;
  font-size: 0.95rem;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.btn-light:hover {
  transform: translateY(-2px);
}
.btn-light svg {
  transition: transform 0.25s ease;
}
.btn-light:hover svg {
  transform: translate(2px, -2px);
}

/* ---------- Eyebrow / label ---------- */
.eyebrow {
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- Marquee ---------- */
.marquee {
  width: max-content;
}
.marquee-track {
  animation: marquee 32s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ---------- Category cards (decoración / gastronomía) ---------- */
.category-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #EDE4D3;
  border: 1px solid rgba(34, 29, 23, 0.08);
}
.category-card-art {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.category-card:hover .category-card-art {
  transform: scale(1.04);
}
.category-card-art svg {
  width: 34%;
  height: 34%;
  color: #221D17;
  opacity: 0.55;
  transition: opacity 0.4s ease;
}
.category-card:hover .category-card-art svg {
  opacity: 0.75;
}
.category-card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  background: linear-gradient(0deg, rgba(34,29,23,0.55) 0%, rgba(34,29,23,0) 65%);
  transform: translateY(0.35rem);
  opacity: 0.94;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.category-card:hover .category-card-caption {
  transform: translateY(0);
  opacity: 1;
}

/* ---------- Banner: herramienta de diseño ---------- */
.design-tool-banner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  border: 1px solid rgba(34, 29, 23, 0.12);
  border-radius: 1.5rem;
  padding: 1.75rem;
  background: #FEFCF8;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
@media (min-width: 640px) {
  .design-tool-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.design-tool-banner:hover {
  border-color: rgba(34, 29, 23, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -20px rgba(34, 29, 23, 0.25);
}

/* ---------- Producción técnica (panel oscuro) ---------- */
.spec-panel {
  border: 1px solid rgba(254, 252, 248, 0.12);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.spec-panel:hover {
  border-color: rgba(254, 252, 248, 0.3);
  background: rgba(254, 252, 248, 0.03);
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(254, 252, 248, 0.1);
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.spec-list li:last-child {
  border-bottom: none;
}

/* ---------- Galería ---------- */
.gallery-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #EDE4D3;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.1rem;
  background: linear-gradient(0deg, rgba(34,29,23,0.62) 0%, rgba(34,29,23,0) 45%);
  opacity: 0.92;
  transition: opacity 0.35s ease;
}
.gallery-item:hover .gallery-item-caption {
  opacity: 1;
}

/* ---------- Testimonios (carrusel scroll-snap) ---------- */
.testimonial-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
  mask-image: linear-gradient(to right, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 92%, transparent 100%);
}
.testimonial-track::-webkit-scrollbar {
  display: none;
}
.testimonial-card {
  scroll-snap-align: start;
  flex: 0 0 min(85%, 420px);
  background: #FEFCF8;
  border: 1px solid rgba(34, 29, 23, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
}

/* ---------- Service / event-type chips ---------- */
.event-chip {
  background: transparent;
  color: #221D17;
  border: 1px solid rgba(34, 29, 23, 0.2);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
@media (hover: hover) {
  .event-chip:hover {
    border-color: #221D17;
    transform: translateY(-2px);
  }
}
.event-chip.is-selected {
  background: #221D17;
  color: #FEFCF8;
  border-color: #221D17;
}
.event-chip .chip-check {
  display: none;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.event-chip.is-selected .chip-check {
  display: inline-flex;
}

/* ---------- Contact icon ---------- */
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(34, 29, 23, 0.15);
  flex-shrink: 0;
}

/* ---------- FAQ-style accordion (no usado actualmente, reservado) ---------- */
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item .chevron {
  transition: transform 0.3s ease;
}
.faq-item[open] .chevron {
  transform: rotate(180deg);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
