/* =====================================================================
   Younique Studio Events - Estilo 5: Minimalista
   Paleta: blanco / beige suave / gris cálido + acento verde sage
   Tipografia: Cormorant Garamond (serif, encabezados) + Jost (sans, cuerpo)
   ===================================================================== */

:root {
  --color-bg:      #FFFFFF;
  --color-beige:   #EDEBE6;
  --color-sage:    #7C8B6F;
  --color-sage-dark: #66755A;
  --color-text:    #3B3B3B;
  --color-text-soft: #6B6B6B;
  --color-border:  #E4E1DA;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Jost', 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1200px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 0 0 0.5em;
  color: var(--color-text);
}

h1 { font-size: 2.75rem; line-height: 1.15; }
h2 { font-size: 2rem; text-align: center; margin-bottom: 0.25em; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--color-text-soft); }

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

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

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

.section-subtitle {
  text-align: center;
  margin: 0 auto 3rem;
  max-width: 560px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo img { height: 48px; width: auto; }

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.main-nav a:hover { color: var(--color-sage); }

.lang-switch {
  border: 1px solid var(--color-sage);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-sage-dark);
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch:hover {
  background: var(--color-sage);
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero / Intro ---------- */
.hero {
  background: var(--color-beige);
  padding: 96px 0;
  text-align: left;
}

.hero .container { max-width: 720px; }

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--color-sage);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-sage-dark);
  transform: translateY(-1px);
}

/* ---------- Grids / Cards ---------- */
.news, .products, .how-it-works, .contact {
  padding: 88px 0;
}

.news { background: var(--color-bg); }
.products { background: var(--color-bg); }
.how-it-works { background: var(--color-beige); }
.contact { background: var(--color-bg); }

.grid {
  display: grid;
  gap: 40px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  text-align: left;
}

.card-image {
  background: var(--color-beige);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 16px;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card h3 { margin-bottom: 4px; }

.product-card .price {
  color: var(--color-sage-dark);
  font-weight: 500;
  margin: 0;
}

.empty-state {
  text-align: center;
  color: var(--color-text-soft);
}

/* ---------- How it works ---------- */
.steps .step {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* Circulo mas amplio para que respire el numero */
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--color-sage);
  color: var(--color-sage-dark);
  margin-bottom: 16px;
  /* --- CAMBIO DE TIPOGRAFIA --- */
  /* Usamos Jost (sans-serif) para que los numeros queden perfectamente alineados y simetricos */
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 500; /* Un grosor medio para que se vea elegante y llamativo */

  /* Forzamos que el navegador no use variantes de numeros antiguos */
  font-variant-numeric: lining-nums;
  line-height: 1;
}

/* ---------- Contact form ---------- */
.contact-layout:not(.has-side-image) { max-width: 640px; margin: 0 auto; }

.contact-form { margin-top: 2rem; }

.form-row { margin-bottom: 20px; }

.form-row label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--color-text-soft);
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-sage);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-message {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.form-message-success {
  background: #EEF3EA;
  color: var(--color-sage-dark);
}

.form-message-error {
  background: #F7E7E4;
  color: #A5473C;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner p {
  margin: 0;
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-text-soft);
  border: 1px solid var(--color-border);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-icon svg {
  display: block;
}

.social-icon:hover {
  color: #fff;
  background: var(--color-sage);
  border-color: var(--color-sage);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2.2rem; }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }

  .hamburger { display: flex; }

  /* Reemplezamos estas clases para que el menu funcione en moviles */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;

    /* Agregamos padding arriba y abajo para que ningun elemento
       bordeado o con margen choque contra los limites y se corte */
    padding: 0;
  }

  .main-nav.is-open {
    max-height: 480px; /* Un poco mas de margen para que quepa todo holgadamente */
    padding-top: 8px;  /* Espacio de seguridad superior para evitar el corte */
    padding-bottom: 16px; /* Espacio de seguridad inferior */
  }

  .main-nav a {
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
  }

  /* Estiliza el switch de idioma para que se vea impecable dentro del menu movil */
  .main-nav .lang-switch {
    margin: 16px 24px; /* Le da espacio de separacion con los enlaces */
    text-align: center;
    align-self: flex-start; /* Evita que se estire a lo ancho de toda la pantalla */
    display: inline-block;
  }

  .hero { padding: 64px 0; text-align: center; }
  .hero .container { max-width: 100%; }

  .news, .products, .how-it-works, .contact { padding: 56px 0; }
}

/* ---------- Cards clicables (abren modal) ---------- */
.js-modal-trigger {
  cursor: pointer;
}

.js-modal-trigger:focus-visible {
  outline: 2px solid var(--color-sage);
  outline-offset: 3px;
}

/* ---------- Modal fullscreen con zoom ---------- */
.yq-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.yq-modal.is-open {
  display: block;
}

.yq-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 18, 0.94);
}

.yq-modal-dialog {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.yq-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.yq-modal-close:hover {
  background: rgba(0, 0, 0, 0.75);
}

.yq-modal-image-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
}

.yq-modal-image-scroll {
  width: 100%;
  height: 100%;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yq-modal-image {
  max-width: 100%;
  max-height: 100%;
  transition: transform 0.15s ease;
  transform-origin: center center;
  cursor: grab;
  user-select: none;
}

.yq-modal-zoom-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.55);
  padding: 8px;
  border-radius: 999px;
  z-index: 2;
}

.yq-modal-zoom-controls button {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  font-family: inherit;
}

.yq-modal-zoom-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.yq-modal-zoom-controls button[data-zoom-reset] {
  font-size: 0.8rem;
}

.yq-modal-text {
  background: #fff;
  padding: 20px 24px;
  max-height: 32vh;
  overflow-y: auto;
}

.yq-modal-text h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
}

.yq-modal-text p {
  margin: 0;
  color: var(--color-text-soft);
  white-space: pre-wrap;
}

@media (min-width: 860px) {
  .yq-modal-dialog {
    flex-direction: row;
  }

  .yq-modal-text {
    width: 380px;
    max-height: 100%;
    border-left: 1px solid #eee;
  }
}

/* ---------- Imagen de fondo + overlay por seccion (intro / how-it-works) ---------- */
.has-bg {
  position: relative;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
}

.has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--overlay-color, #000000);
  opacity: var(--overlay-opacity, 0.4);
  pointer-events: none;
}

.has-bg > .container {
  position: relative;
  z-index: 1;
}

.hero.has-bg h1,
.hero.has-bg .hero-subtitle,
.how-it-works.has-bg h2,
.how-it-works.has-bg .section-subtitle,
.how-it-works.has-bg .step h3,
.how-it-works.has-bg .step p {
  color: #fff;
}

.how-it-works.has-bg .step-number {
  border-color: #fff;
  color: #fff;
}

/* ---------- Contactenos con foto lateral ---------- */
.contact-layout {
  display: grid;
  gap: 40px;
}

.contact-layout.has-side-image {
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .contact-layout.has-side-image {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: stretch;
  }
}

.contact-side-image {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
  background: var(--color-beige);
}

.contact-side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}