/* =========
   Variables
   ========= */
:root{
  --bg: #0f0f10;
  --bg-alt: #151517;
  --text: #e9e7e4;
  --muted: #b9b5ae;
  --brand: #c9a227; /* dorado */
  --brand-ink: #2a2415;
  --border: #27272b;
  --focus: #7aa2ff;

  --radius: 12px;
  --radius-sm: 8px;

  --container: 1200px;
  --anim-ease: cubic-bezier(.22,.61,.36,1);
  --anim-fast: 200ms;
  --anim-med: 700ms;
  --anim-stagger: 90ms;  

}

/* =========
   Base
   ========= */
*{ box-sizing: border-box; }
html:focus-within { scroll-behavior: smooth; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img{ max-width: 100%; display:block; }
a{ color: inherit; text-decoration: none; }
p{ color: var(--muted); }
h1,h2,h3,h4,h5,h6{ color: var(--text); margin: 0 0 .5rem; }
.display{
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 3.5vw + 1rem, 3.5rem);
  line-height: 1.15;
}
.h2{
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 1.8vw + 1rem, 2.2rem);
}
.h5{
  font-weight: 600;
  font-size: 1.1rem;
}

/* =========
   Layout
   ========= */
.container{
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}
.section{
  padding: 72px 0;
  background: var(--bg);
}
.section--alt{
  background: var(--bg-alt);
}
.section__header{
  margin-bottom: 28px;
}

/* =========
   Header
   ========= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(15,15,16,0.8);
  backdrop-filter: blur(8px);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  letter-spacing: .5px;
}
.brand__logo{
  width: 28px; height: 28px;
  display: inline-grid; place-items: center;
  border: 2px solid var(--brand);
  border-radius: 50%;
  color: var(--brand);
  font-size: .9rem;
}
.brand__name{
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
}

/* Nav */
.site-nav ul{
  display: flex; gap: 18px; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a{
  padding: 8px 10px; border-radius: 8px;
}
/* .site-nav a:hover{
  background: #1d1d20;
} */

.site-nav .btn.btn--primary:hover {
  filter: brightness(1.05);
  background: linear-gradient(180deg, #d5b45a 0%, var(--brand) 100%);
  color: var(--brand-ink);
}

/* Toggle (mobile) */
.nav-toggle{
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle__bar{
  display:block; width: 22px; height: 2px;
  background: var(--text);
  margin: 5px 0;
}

/* =========
   Hero
   ========= */
.hero{
  padding: 72px 0 48px;
  background: linear-gradient(180deg, #121213 0%, #0f0f10 100%);
}
.hero__inner{
  display: grid;
  gap: 24px;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
}
.hero__copy p{ margin: 12px 0 20px; }
.hero__actions{ display: flex; gap: 12px; flex-wrap: wrap; }
.hero__media img{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  object-fit: cover;
}

/* =========
   Features / Cards
   ========= */
.features{
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
.feature{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: #121214;
}

/* =========
   Productos
   ========= */
.products-grid{
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
.product-card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #121214;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.product-card__img{
  aspect-ratio: 4/3; object-fit: cover;
  width: 100%;
}
.product-card__body{
  padding: 14px;
}
.product-card__title{
  font-weight: 600; margin: 0 0 6px;
}
.product-card__price{
  color: var(--brand); font-weight: 600;
}
.product-card__cta{
  display: flex; gap: 10px; padding: 12px 14px;
  border-top: 1px solid var(--border);
}

/* =========
   Proceso
   ========= */
.process{
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
.process__step{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #121214;
  padding: 18px;
  position: relative;
}
.process__num{
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: var(--brand-ink);
  font-weight: 700;
}
.cta-strip{
  margin-top: 18px; padding: 16px;
  border: 1px dashed var(--brand);
  border-radius: var(--radius);
  display: flex; gap: 16px; align-items: center; justify-content: space-between;
  background: #131316;
}

.cta-strip__text{
  margin: 0;            /* quita margen del h2 */
  flex: 1 1 auto;       /* que el h2 ocupe el ancho disponible */
  text-align: center;   /* centra el texto dentro */
}

/* =========
   Testimonios
   ========= */
.testimonials{
  display: grid; gap: 16px;
  grid-template-columns: 1fr 1fr;
}
.testimonial{
  margin: 0; padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #121214;
}
.testimonial footer{
  color: var(--muted); margin-top: 8px;
}

/* =========
   FAQ
   ========= */
.faq__item{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #121214;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq__question{
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  background: transparent;
  color: var(--text);
  border: 0;
  cursor: pointer;
}
.faq__question:focus{
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.faq__answer{
  padding: 0 16px 16px;
  color: var(--muted);
}

/* =========
   Formulario
   ========= */
.contact-form{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #121214;
  padding: 18px;
}
.form__row{
  display: grid; margin-bottom: 12px;
}
.form__row input,
.form__row textarea{
  background: #0f0f11; color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.form__row input:focus,
.form__row textarea:focus{
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.form__help{
  margin: 8px 0 0; font-size: .95rem; color: var(--muted);
}
.form__actions{ margin-top: 12px; }
.form__feedback{ margin-top: 10px; min-height: 1.2em; }

/* =========
   Footer
   ========= */
.site-footer{
  border-top: 1px solid var(--border);
  background: #0e0e10;
  padding: 24px 0;
}
.footer-inner{
  display: grid; gap: 10px;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
}
.footer__brand{ font-weight: 700; }
.footer__nav a{
  padding: 6px 10px; border-radius: 6px;
}
.footer__nav a:hover{ background: #1d1d20; }
.footer__legal{ text-align: right; color: var(--muted); }

/* =========
   Botones
   ========= */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn:active{ transform: translateY(1px); }
.btn--primary{
  background: linear-gradient(180deg, #d5b45a 0%, var(--brand) 100%);
  color: var(--brand-ink);
}
.btn--primary:hover{
  filter: brightness(1.05);
}
.btn--ghost{
  background: transparent;
  border-color: var(--border);
}
.btn--ghost:hover{
  background: #1a1a1d;
}
.btn--sm{ padding: 8px 12px; font-size: .95rem; }

/* =========
   Animations (reveal + header + buttons)
   ========= */

.reveal{
  opacity: 0;
  transform: translateY(12px);
  transition: transform var(--anim-med) var(--anim-ease), opacity var(--anim-med) var(--anim-ease);
  transition-delay: var(--reveal-delay, 0ms); /* NUEVO */
  will-change: transform, opacity;
}

.reveal--left{ transform: translateX(-18px); }
.reveal--right{ transform: translateX(18px); }
.reveal-visible{
  opacity: 1;
  transform: none;
}

/* Respeto a usuarios con menos movimiento */
@media (prefers-reduced-motion: reduce){
  .reveal, .reveal--left, .reveal--right{
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Header: sombra suave al desplazarte */
.site-header.scrolled{
  box-shadow: 0 6px 16px rgba(0,0,0,.20);
}

/* Botones: micro-lift */
.btn:hover{
  transform: translateY(-1px);
}
.btn:active{
  transform: translateY(1px);
}



/* 2 filas: arriba (brand/nav/contacto) + abajo (copyright centrado) */
.footer--two-rows{
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  row-gap: 10px;
}

/* Copyright centrado y ocupando toda la fila inferior */
.footer--two-rows .footer__copy{
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
}

/* Contacto en dos líneas */
.footer__contact.footer__contact--stack{
  display: flex;
  flex-direction: column;
  align-items: flex-end;   /* derecha en desktop */
  gap: 4px;
  margin: 0 0 6px 0;
  padding: 0;
}

/* Si por error quedara como <ul>, eliminamos viñetas */
.footer__contact{ list-style: none; }

/* Filas (email / teléfono) */
.contact__row{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  opacity: .9;
  text-decoration: none;
}
.contact__row:hover{ color: var(--brand); opacity: 1; }
.nowrap{ white-space: nowrap; }

/* Íconos dorados con trazo (para que se vea el borde inferior del sobre) */
.icon-gold-stroke{
  width: 16px; height: 16px;
  stroke: var(--brand);
  stroke-width: 1.6;
  fill: none;
  vertical-align: -2px;
}

/* En móvil centramos el bloque de contacto */
@media (max-width: 992px){
  .footer__contact.footer__contact--stack{ align-items: center; }
}



/* =========
   Utilities
   ========= */
[hidden]{ display: none !important; }

/* =========
   Responsive
   ========= */
@media (max-width: 1200px){
  .products-grid{ grid-template-columns: repeat(3, 1fr); }
  .process{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px){
  .hero__inner{ grid-template-columns: 1fr; }
  .features{ grid-template-columns: 1fr 1fr; }
  .products-grid{ grid-template-columns: repeat(2, 1fr); }
  .testimonials{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; text-align: center; gap: 6px; }
  .footer__legal{ text-align: center; }
}
@media (max-width: 768px){
  .site-nav{ display: none; }
  .site-nav.open{ display: block; position: absolute; top: 60px; right: 0; left: 0; background: #0f0f10; border-bottom: 1px solid var(--border); }
  .site-nav ul{ flex-direction: column; gap: 0; padding: 8px; }
  .site-nav a{ padding: 12px; display: block; }
  .nav-toggle{ display: inline-block; }
}
@media (max-width: 576px){
  .products-grid{ grid-template-columns: 1fr; }
  .process{ grid-template-columns: 1fr; }
}


