/* =========================================================
   Entre Telas — estilos
   Paleta editorial cálida + tipografía serif para titulares
   ========================================================= */

:root {
  --bg: #faf7f2;
  --bg-alt: #f1ece3;
  --ink: #1c1916;
  --ink-soft: #4a4540;
  --muted: #7a736b;
  --line: #e3ddd1;
  --accent: #b89366;
  --accent-deep: #8a6b44;
  --gold: #c9a96e;
  --whatsapp: #25d366;
  --whatsapp-deep: #128c7e;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1240px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;
  --transition: 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color var(--transition), opacity var(--transition); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4.5rem); font-weight: 300; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-deep);
  margin: 0 0 1.2rem;
  font-weight: 500;
}
.eyebrow.light { color: var(--gold); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff;
  padding: 0.75rem 1rem; z-index: 9999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ========== Header ========== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0);
  backdrop-filter: blur(0);
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
  padding: 1.1rem 0;
}
.site-header.scrolled {
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  padding: 0.7rem 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex; align-items: center;
}
.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}
.site-header:not(.scrolled) .site-nav a { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,0.35); }
.site-header:not(.scrolled) .logo-img { filter: drop-shadow(0 2px 10px rgba(0,0,0,0.4)); }
.footer-logo { height: 42px; }

.site-nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 2.2rem;
}
.site-nav a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.site-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width var(--transition);
}
.site-nav a:hover::after { width: 100%; }

.cta-wsp {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--whatsapp);
  color: #fff;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 6px 20px -6px rgba(37, 211, 102, 0.55);
  transition: transform var(--transition), box-shadow var(--transition);
}
.cta-wsp:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.7); }

.cta-wsp.big {
  padding: 1.05rem 1.8rem;
  font-size: 1.05rem;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 36px; height: 36px;
  padding: 6px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}
.site-header:not(.scrolled) .nav-toggle span { background: #fff; }

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  padding-bottom: clamp(3rem, 8vh, 6rem);
}
.hero-image {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.65) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 880px;
}
.hero .eyebrow { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.45); }
.hero h1 {
  color: #fff;
  margin-bottom: 1.4rem;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: rgba(255,255,255,0.9);
  max-width: 620px;
  margin-bottom: 2.4rem;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-bottom: 3rem;
}

.cta-primary, .cta-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 1.8rem;
  font-size: 0.98rem;
  font-weight: 500;
  border-radius: 999px;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.cta-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 12px 30px -10px rgba(201, 169, 110, 0.6);
}
.cta-primary:hover { background: #d6b87b; transform: translateY(-2px); }
.cta-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
}
.cta-secondary:hover { background: rgba(255,255,255,0.1); }
.cta-primary.inline { margin-top: 1.2rem; }

.hero-meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 2rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
}
.hero-meta li {
  position: relative; padding-left: 1.2rem;
}
.hero-meta li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}

/* ========== Intro ========== */
.intro {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.intro-text p { font-size: 1.05rem; color: var(--ink-soft); max-width: 56ch; }
.intro-figure {
  margin: 0;
  position: relative;
}
.intro-figure img {
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
  filter: saturate(0.95);
}
.intro-figure::after {
  content: "";
  position: absolute;
  inset: -1.2rem -1.2rem auto auto;
  width: 70%;
  height: 70%;
  background: var(--bg-alt);
  z-index: -1;
  border-radius: var(--radius);
}

/* ========== Products ========== */
.products {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg-alt);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.product-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.18);
}
.product-card figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; }
.product-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.product-card:hover img { transform: scale(1.06); }
.product-body {
  padding: 1.6rem 1.5rem 1.8rem;
}
.product-body h3 { margin-bottom: 0.6rem; }
.product-body p { color: var(--muted); font-size: 0.96rem; margin-bottom: 1.2rem; }
.product-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
  position: relative;
}
.product-link::after {
  content: "→"; transition: transform var(--transition);
}
.product-link:hover::after { transform: translateX(4px); }

/* ========== Value ========== */
.value {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg);
}
.value-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem 2rem;
}
.value-grid li {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.value-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.value-grid h3 { margin-bottom: 0.5rem; font-size: 1.35rem; }
.value-grid p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* ========== Gallery ========== */
.gallery {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg-alt);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  cursor: pointer;
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid .g-tall { grid-row: span 2; }
.gallery-grid .g-wide { grid-column: span 2; }

/* ========== Ropa de Cama ========== */
.ropa-cama {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg);
}
.ropacama-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.ropacama-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.ropacama-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ropacama-grid figure:hover img { transform: scale(1.04); }
.ropacama-cta {
  text-align: center;
  margin-top: 3rem;
}
@media (max-width: 720px) {
  .ropacama-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ========== Process ========== */
.process {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg);
}
.process-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.process-figure { margin: 0; }
.process-figure img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
  border-radius: var(--radius);
}
.process-steps {
  list-style: none; padding: 0; margin: 0 0 1rem;
  counter-reset: step;
}
.process-steps li {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.process-steps li:last-child { border-bottom: 0; }
.process-steps strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.process-steps p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ========== Contact ========== */
.contact {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--ink);
  color: #f5efe2;
  text-align: center;
}
.contact-inner { max-width: 720px; margin: 0 auto; }
.contact h2 { color: #fff; margin-bottom: 1.2rem; }
.contact-sub {
  color: rgba(245, 239, 226, 0.75);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}
.contact-fine { margin-top: 1.5rem; font-size: 0.85rem; color: rgba(245, 239, 226, 0.5); }

/* ========== Footer ========== */
.site-footer {
  background: #14110f;
  color: rgba(245, 239, 226, 0.7);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.footer-brand .brand-name { color: #fff; font-size: 1.3rem; }
.footer-brand p { margin: 0; opacity: 0.6; font-size: 0.86rem; flex-basis: 100%; }
.site-footer nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 1.6rem; flex-wrap: wrap;
}
.site-footer a:hover { color: #fff; }
.footer-legal {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ========== Floating WhatsApp ========== */
.wsp-float {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 99;
  display: inline-grid; place-items: center;
  width: 60px; height: 60px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.55);
  transition: transform var(--transition), box-shadow var(--transition), opacity 0.4s ease;
}
.wsp-float:hover { transform: scale(1.08); box-shadow: 0 18px 40px -10px rgba(37, 211, 102, 0.75); }
.wsp-float.wsp-hidden { opacity: 0; pointer-events: none; transform: scale(0.8); }
.wsp-float::before {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  opacity: 0.5;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ========== Reveal animations ========== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ========== Responsive ========== */
@media (max-width: 960px) {
  .intro-grid, .process-grid { grid-template-columns: 1fr; }
  .intro-figure, .process-figure { order: -1; max-width: 480px; margin-inline: auto; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-grid .g-wide { grid-column: span 2; }
  .gallery-grid .g-tall { grid-row: span 2; }
}

@media (max-width: 720px) {
  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 320px);
    background: var(--bg);
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 200;
  }
  .site-nav.is-open { transform: none; }
  .site-nav ul { flex-direction: column; gap: 1.2rem; }
  .site-nav a { color: var(--ink) !important; text-shadow: none !important; font-size: 1.15rem; }
  .nav-toggle { display: flex; }
  .header-cta span { display: none; }
  .header-cta { padding: 0.55rem 0.85rem; }

  .hero { padding-top: 5.5rem; }
  .header-cta { display: none; }

  .hero-meta { gap: 1rem 1.5rem; font-size: 0.85rem; }
  .hero-actions { width: 100%; }
  .cta-primary, .cta-secondary { flex: 1 1 100%; }

  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .site-footer nav ul { justify-content: center; }
  .footer-brand { justify-content: center; }

  .gallery-grid { grid-auto-rows: 160px; }

  .wsp-float { width: 56px; height: 56px; bottom: 1rem; right: 1rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .g-wide, .gallery-grid .g-tall { grid-column: auto; grid-row: auto; }
  .gallery-grid { grid-auto-rows: 280px; }
}

/* ========== Reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
