/* ══════════════════════════════════════════════════════════════
   YALENA JEWELLERY — Hoja de estilos
   ══════════════════════════════════════════════════════════════ */

/* ── VARIABLES Y RESET ───────────────────────────────────────── */
:root {
  --color-primary:      #0F0F0F;
  --color-secondary:    #FAF6F0;
  --color-accent:       #B08D57;
  --color-accent-light: #D9C6A5;
  --color-dark:         #0A0A0A;
  --color-light:        #FFFFFF;
  --color-text-soft:    #6B6560;

  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Jost', sans-serif;

  --container: 1200px;
  --transition-fast: 0.2s ease;
  --transition-med:   0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-primary);
  background: var(--color-light);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.reveal {
  opacity: 0;
}
.reveal.is-visible {
  opacity: 1;
}

/* Divisor firma — nudo entrelazado */
.knot-divider {
  display: flex;
  justify-content: center;
  margin: 0 auto;
}
.knot-divider svg { width: 40px; height: 40px; }

/* ── BASE ─────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
}

.placeholder-box {
  border: 2px dashed var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 1px;
  background: rgba(176,141,87,0.05);
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all var(--transition-med);
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-light);
  padding: 16px 40px;
  border-radius: 2px;
}
.btn-accent:hover { transform: scale(1.05); filter: brightness(1.08); }

/* ── HEADER ───────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-light);
  border-bottom: 1px solid rgba(176,141,87,0.15);
  transition: box-shadow var(--transition-med);
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.logo-link { flex-shrink: 0; display: flex; align-items: center; }
.logo-img { height: 100px; width: auto; }
.logo-placeholder {
  height: 100px; width: 180px;
  border-color: var(--color-accent-light);
}

.nav-links {
  display: flex;
  gap: 36px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: var(--color-primary);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color var(--transition-fast);
  position: relative;
}
.nav-links a:hover { color: var(--color-accent); }

.header-socials {
  display: flex;
  gap: 16px;
  align-items: center;
}
.header-socials a {
  color: var(--color-primary);
  display: flex;
  transition: all var(--transition-fast);
}
.header-socials svg { width: 20px; height: 20px; }
.header-socials a:hover { color: var(--color-accent); transform: scale(1.1); }

.header-cta {
  background: var(--color-accent);
  color: var(--color-light);
  padding: 10px 24px;
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: filter var(--transition-fast);
}
.header-cta:hover { filter: brightness(0.9); }

.nav-overlay { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  z-index: 1100;
}
.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--color-primary);
  transition: all var(--transition-med);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  min-height: 800px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
}
.hero.no-image {
  background-image: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--color-primary);
  opacity: 0.35;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 600;
  color: var(--color-light);
  opacity: 0;
  animation: fadeDown 0.8s ease forwards;
  animation-delay: 0.2s;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: rgba(255,255,255,0.85);
  margin-top: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeDown 0.8s ease forwards;
  animation-delay: 0.6s;
}
.hero-cta {
  margin-top: 40px;
  opacity: 0;
  animation: fadeDown 0.8s ease forwards;
  animation-delay: 1.0s;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── QUIÉNES SOMOS ────────────────────────────────────────────── */
.quienes-somos {
  padding: 100px 0;
  background: var(--color-secondary);
}
.qs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.qs-image-wrap {
  position: relative;
}
.qs-image-wrap::before {
  content: '';
  position: absolute;
  inset: 20px -20px -20px 20px;
  background: var(--color-accent);
  border-radius: 16px;
  z-index: -1;
}
.qs-image {
  border-radius: 16px;
  object-fit: cover;
  height: 500px;
  width: 100%;
  box-shadow: 20px 20px 60px rgba(0,0,0,0.25);
}
.qs-image.placeholder-box { height: 500px; }

.qs-text .section-title { margin-bottom: 20px; }
.qs-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-soft);
  margin-bottom: 24px;
  max-width: 480px;
}
.qs-body p {
  line-height: 1.8;
  color: var(--color-primary);
  margin-bottom: 16px;
  max-width: 520px;
}

.qs-stats {
  display: flex;
  margin-top: 40px;
  gap: 0;
}
.qs-stat {
  padding: 0 28px;
  border-left: 1px solid var(--color-accent);
}
.qs-stat:first-child { padding-left: 0; border-left: none; }
.qs-stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-accent);
  display: block;
}
.qs-stat-label {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
.qs-image-wrap.reveal.is-visible { animation: slideLeft 0.8s ease; animation-delay: 0.2s; }
.qs-text.reveal.is-visible { animation: slideRight 0.8s ease; animation-delay: 0.4s; }

/* ── GALERÍA ──────────────────────────────────────────────────── */
.galeria {
  background: var(--color-dark);
  padding-bottom: 80px;
}
.galeria-header {
  text-align: center;
  padding: 60px 24px 40px;
  max-width: 700px;
  margin: 0 auto;
}
.galeria-header .section-title { color: var(--color-light); }
.galeria-header .galeria-subtitle {
  color: rgba(255,255,255,0.85);
  margin-top: 16px;
  font-size: 1.05rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.gallery-item:hover .gallery-img {
  transform: scale(1.03);
  filter: brightness(1.1);
}

/* ── LIGHTBOX ─────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.92);
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.lb-close {
  position: absolute;
  top: 20px; right: 24px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-fast);
  background: none; border: none;
}
.lb-close:hover { background: rgba(255,255,255,0.1); }
.lb-prev, .lb-next {
  position: absolute;
  width: 44px; height: 80px;
  color: #fff;
  font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none;
  transition: background var(--transition-fast);
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.15); }
.lb-counter {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  letter-spacing: 1px;
}

/* ── CONTACTO ─────────────────────────────────────────────────── */
.contacto {
  background: var(--color-secondary);
}
.contacto-header {
  text-align: center;
  padding: 80px 24px 0;
  max-width: 700px;
  margin: 0 auto;
}
.contacto-header .contacto-subtitle {
  color: var(--color-text-soft);
  margin-top: 16px;
  font-size: 1.05rem;
}

.map-embed { width: 100%; height: 450px; border: 0; display: block; }

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 80px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.contacto-datos .datos-title {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  color: var(--color-accent);
  margin-bottom: 20px;
  font-weight: 600;
}

.dato-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 15px;
}
.dato-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--color-accent); margin-top: 2px; }
.dato-item a:hover { color: var(--color-accent); }

.horarios-block { margin-top: 36px; }
.horario-row {
  display: flex;
  justify-content: space-between;
  max-width: 320px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(176,141,87,0.2);
  font-size: 14px;
}

.contacto-socials { display: flex; gap: 14px; margin-top: 28px; }
.contacto-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: all var(--transition-fast);
}
.contacto-socials a:hover { background: var(--color-primary); }
.contacto-socials svg { width: 16px; height: 16px; }

/* Formulario */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--color-primary);
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 2px solid rgba(176,141,87,0.3);
  font-family: var(--font-body);
  font-size: 15px;
  background: #fff;
  transition: border-color var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  transition: all var(--transition-fast);
}
.btn-whatsapp svg { width: 20px; height: 20px; }
.btn-whatsapp:hover { filter: brightness(0.9); transform: scale(1.02); }

/* ── FOOTER ───────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-dark);
  color: #E5E5E5;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 80px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.footer-logo { height: 80px; margin-bottom: 20px; }
.footer-logo.placeholder-box { width: 160px; }
.footer-desc {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.8;
  max-width: 320px;
  margin-bottom: 20px;
}
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
}
.footer-socials svg { width: 16px; height: 16px; color: #fff; transition: color var(--transition-fast); }
.footer-socials a:hover { background: #fff; }
.footer-socials a:hover svg { color: var(--color-accent); }

.footer-col-title {
  color: var(--color-accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col ul li { line-height: 2.2; }
.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-fast);
  display: inline-block;
}
.footer-col ul li a:hover { color: #fff; padding-left: 6px; }

.footer-dato { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 14px; }
.footer-dato svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--color-accent); margin-top: 3px; }
.footer-dato a { color: rgba(255,255,255,0.7); }
.footer-dato a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 0 24px;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: calc(var(--container) - 48px);
  margin-left: auto;
  margin-right: auto;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-legal a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
  margin-left: 24px;
  transition: color var(--transition-fast);
}
.footer-legal a:hover { color: #fff; }

/* ── BOTONES FLOTANTES ────────────────────────────────────────── */
.float-whatsapp {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 999;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.5);
  transition: transform var(--transition-med);
}
.float-whatsapp svg { width: 28px; height: 28px; color: #fff; }
.float-whatsapp:hover { transform: scale(1.1); }

.float-top {
  position: fixed;
  right: 24px; bottom: 90px;
  z-index: 999;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-med), transform var(--transition-med);
}
.float-top svg { width: 22px; height: 22px; color: #fff; }
.float-top:hover { transform: scale(1.1) translateY(-2px); }
.float-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

.float-tooltip {
  position: absolute;
  right: 68px;
  background: #333;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}
.float-whatsapp:hover .float-tooltip,
.float-top:hover .float-tooltip { opacity: 1; }

/* ── PÁGINAS LEGALES ──────────────────────────────────────────── */
.legal-page { background: var(--color-secondary); min-height: 100vh; }
.legal-header {
  background: var(--color-light);
  border-bottom: 1px solid rgba(176,141,87,0.15);
  padding: 24px;
  display: flex;
  justify-content: center;
}
.legal-header img { height: 70px; }
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}
.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 40px;
  color: var(--color-primary);
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 36px 0 12px;
  color: var(--color-accent);
}
.legal-content p, .legal-content li {
  color: var(--color-primary);
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-content ul { padding-left: 20px; list-style: disc; }
.legal-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 32px 24px;
  font-size: 14px;
}
.legal-footer a { color: var(--color-accent-light); text-decoration: underline; }

/* ── ANIMACIONES ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .header-socials { display: none; }
  .hamburger { display: flex; }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--color-primary);
    z-index: 1050;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform var(--transition-med);
  }
  .nav-overlay.open { transform: translateX(0); }
  .nav-overlay a {
    color: var(--color-secondary);
    font-size: 1.4rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-display);
  }

  .logo-img, .logo-placeholder { height: 80px; }

  .hero { min-height: 600px; }
  .hero-content { padding: 0 24px; }
  .hero-title { font-size: 2rem; }
  .hero-cta .btn { width: 80%; min-width: 80%; text-align: center; }

  .qs-grid { grid-template-columns: 1fr; padding: 0 24px; }
  .qs-image-wrap::before { display: none; }
  .qs-image, .qs-image.placeholder-box { height: 300px; box-shadow: none; }
  .quienes-somos { padding: 60px 0; }

  .galeria-header { padding: 40px 24px 24px; }
  .gallery-grid { grid-template-columns: 1fr; padding: 0 24px; }

  .map-embed { height: 300px; }
  .contacto-grid { grid-template-columns: 1fr; padding: 48px 24px; gap: 40px; }
  .contacto-header { padding: 48px 24px 0; }

  .footer-top { grid-template-columns: 1fr; text-align: center; padding: 48px 24px; }
  .footer-desc { margin-left: auto; margin-right: auto; }
  .footer-socials { justify-content: center; }
  .footer-dato { justify-content: center; }
  .footer-col ul { padding: 0; }

  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { display: flex; justify-content: center; }
  .footer-legal a:first-child { margin-left: 0; }

  .float-tooltip { display: none; }
}
