/* =========================================================
   PORAVA — Hoja de estilos
   Paleta tomada del logotipo: teal #043946 sobre crema #FFFFFB
   ========================================================= */
:root {
  --teal-900: #022a34;
  --teal-800: #043946;   /* color principal del logotipo */
  --teal-700: #0b4d5d;
  --teal-500: #2f7686;
  --teal-300: #8fb6bf;
  --teal-100: #dde9ec;
  --teal-50:  #eef4f5;
  --cream:    #fffffb;   /* fondo del logotipo */
  --paper:    #f7f5ee;
  --thread:   #b8925a;   /* acento: hilo */
  --ink:      #12262c;
  --muted:    #5a6e73;
  --line:     #e3e6e2;
  --white:    #ffffff;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(4, 57, 70, .06), 0 2px 8px rgba(4, 57, 70, .05);
  --shadow:    0 8px 30px rgba(4, 57, 70, .10);
  --shadow-lg: 0 24px 60px rgba(2, 42, 52, .22);

  --font-display: "Marcellus", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--teal-800); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--thread); margin-bottom: .8rem; display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 28px; height: 0; border-top: 2px dashed currentColor; }
.eyebrow--light { color: #d9bd8f; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .98rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal-800); color: var(--white); box-shadow: 0 6px 18px rgba(4, 57, 70, .25); }
.btn--primary:hover { background: var(--teal-700); }
.btn--ghost { border-color: var(--teal-800); color: var(--teal-800); }
.btn--ghost:hover { background: var(--teal-800); color: var(--white); }
.btn--sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Encabezado ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 251, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.header__logo img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 500; font-size: .96rem; color: var(--ink);
  position: relative; padding: .3rem 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 0;
  border-top: 2px dashed var(--thread); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--teal-800); margin: 5px 0; transition: transform .3s, opacity .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 30%, var(--teal-50), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, #f4efe3, transparent 70%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 em { font-style: normal; color: var(--teal-500); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: 0;
  border-top: none var(--thread); opacity: .8;
}
.hero__lead { margin-top: 1.3rem; font-size: 1.12rem; color: var(--muted); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__stats { list-style: none; padding: 0; margin: 2.6rem 0 0; display: flex; gap: 2.4rem; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; color: var(--teal-800); line-height: 1; }
.hero__stats span { font-size: .86rem; color: var(--muted); margin-top: .35rem; }

.hero__visual { position: relative; aspect-ratio: 1 / 1; max-width: 520px; width: 100%; justify-self: center; }
.hero__ring {
  position: absolute; inset: 6%; border-radius: 50%;
  border: 2px dashed var(--teal-300); animation: spin 60s linear infinite;
}
.hero__ring::after {
  content: ""; position: absolute; inset: 9%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--white), var(--teal-50));
}
.hero__stack { position: absolute; inset: 0; }
.hero__card {
  position: absolute; width: 46%; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow); padding: 10px;
  transition: transform 1s var(--ease), opacity 1s var(--ease), z-index 0s;
}
.hero__card img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.hero__needle {
  position: absolute; right: 2%; top: -2%; width: 16%; opacity: .9;
  animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgba(4, 57, 70, .18));
}
.stitch { position: absolute; left: 0; bottom: 18px; width: 100%; height: 40px; }
.stitch path { fill: none; stroke: var(--thread); stroke-width: 2; stroke-dasharray: 10 8; opacity: .55; animation: sew 30s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(12px) rotate(4deg); } }
@keyframes sew { to { stroke-dashoffset: -540; } }

/* ---------- Cinta de productos ---------- */
.ribbon { background: var(--teal-800); color: var(--teal-100); overflow: hidden; padding: 1rem 0; }
.ribbon__track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 40s linear infinite; }
.ribbon__track span { font-family: var(--font-display); font-size: 1.25rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 2.5rem; }
.ribbon__track span::after { content: "✦"; color: var(--thread); font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--paper); }
.section__head { max-width: 640px; margin-bottom: 2.6rem; }
.section__head p:not(.eyebrow) { color: var(--muted); margin-top: .8rem; }

/* ---------- Lo que ofrecemos ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.offer {
  position: relative; text-align: left;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.3rem; font: inherit; color: inherit; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.offer::before {
  content: ""; position: absolute; inset: 7px; border: 1.5px dashed transparent; border-radius: 13px;
  transition: border-color .35s; pointer-events: none;
}
.offer:hover, .offer:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; outline: none; }
.offer:hover::before, .offer:focus-visible::before { border-color: var(--teal-300); }
.offer__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal-800); margin-bottom: 1.1rem;
  transition: background .35s, color .35s, transform .35s var(--ease);
}
.offer:hover .offer__icon { background: var(--teal-800); color: var(--white); transform: rotate(-6deg); }
.offer__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.offer h3 { font-size: 1.22rem; }
.offer p { color: var(--muted); font-size: .92rem; margin-top: .4rem; line-height: 1.5; }

/* ---------- Catálogo ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.search {
  display: flex; align-items: center; gap: .5rem; background: var(--white);
  border: 1.5px solid var(--teal-100); border-radius: 999px; padding: .55rem 1.1rem; width: min(420px, 100%);
  transition: border-color .25s, box-shadow .25s;
}
.search:focus-within { border-color: var(--teal-500); box-shadow: 0 0 0 4px var(--teal-50); }
.search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.search input { border: 0; outline: 0; font: inherit; font-size: .94rem; background: transparent; width: 100%; color: var(--ink); }
.results { font-size: .88rem; color: var(--muted); }

.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); display: flex; flex-direction: column; text-align: left;
  font: inherit; color: inherit; padding: 0;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .4s var(--ease);
  animation: cardIn .55s var(--ease) both;
}
.card:hover, .card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow); outline: none; }
.card:focus-visible { box-shadow: 0 0 0 3px var(--teal-300), var(--shadow); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }

.card__media { position: relative; aspect-ratio: 1 / 1; background: var(--white); overflow: hidden; }
.card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18px;
  opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.card__media img.is-on { opacity: 1; transform: scale(1); }
.card:hover .card__media img.is-on { transform: scale(1.05); }
.card__badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(4, 57, 70, .9); color: var(--white); font-size: .74rem; font-weight: 600;
  padding: .28rem .6rem; border-radius: 999px;
}
.card__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 4px; z-index: 2; }
.card__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-100); transition: background .3s, width .3s; }
.card__dots i.is-on { background: var(--teal-800); width: 16px; border-radius: 3px; }
.card__body { padding: 1.1rem 1.25rem 1.3rem; border-top: 1px dashed var(--line); flex: 1; }
.card__body h3 { font-size: 1.2rem; }
.card__body p { font-size: .9rem; color: var(--muted); margin-top: .35rem; line-height: 1.5; }

/* Tarjeta sin fotografía (ilustración) */
.ph {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--teal-800);
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(4, 57, 70, .035) 14px 15px),
    linear-gradient(160deg, var(--teal-50), var(--cream));
}
.ph::before { content: ""; position: absolute; inset: 16px; border: 2px dashed var(--teal-300); border-radius: 14px; }
.ph svg { width: 42%; height: 42%; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.card:hover .ph svg { transform: scale(1.08) rotate(-4deg); }
.ph__note {
  position: absolute; bottom: 26px; font-size: .74rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal-500);
}
.empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--muted); }

/* ---------- Proceso ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: 6%; right: 6%; height: 0;
  border-top: 2px dashed var(--teal-300);
}
.step { position: relative; }
.step__num {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream); border: 2px solid var(--teal-800); color: var(--teal-800);
  font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 1.1rem; position: relative;
  transition: background .3s, color .3s;
}
.step:hover .step__num { background: var(--teal-800); color: var(--white); }
.step p { color: var(--muted); font-size: .95rem; margin-top: .45rem; }

/* ---------- Contacto ---------- */
.contact { background: var(--teal-800); color: var(--teal-100); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 2px dashed rgba(143, 182, 191, .25);
}
.contact h2 { color: var(--white); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; position: relative; }
.contact__info > p { margin-top: 1rem; max-width: 30rem; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact__list li { display: flex; align-items: center; gap: .9rem; }
.contact__list svg {
  width: 44px; height: 44px; padding: 11px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .08); fill: none; stroke: #d9bd8f; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.contact__list a { color: var(--white); text-decoration: none; font-size: 1.1rem; font-weight: 500; word-break: break-all; }
.contact__list a:hover { text-decoration: none; text-decoration-style: dashed; text-underline-offset: 4px; }

/* ---------- Pie ---------- */
.footer { background: var(--teal-900); color: var(--teal-300); padding: 2rem 0; font-size: .86rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__logo { height: 48px; width: auto; opacity: .95; }

/* ---------- Visor ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(2, 42, 52, .72); backdrop-filter: blur(6px); animation: fade .3s both; }
.lightbox__panel {
  position: relative; width: min(900px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--cream); border-radius: 22px; box-shadow: var(--shadow-lg);
  animation: pop .45s var(--ease) both; display: flex; flex-direction: column;
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.lightbox__close {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--white); color: var(--teal-800); font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm);
}
.lightbox__stage { position: relative; background: var(--white); height: min(60vh, 520px); display: grid; place-items: center; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 24px; animation: fade .4s both; }
.lightbox__nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--teal-100); background: rgba(255, 255, 255, .92); color: var(--teal-800);
  font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 4px;
  transition: background .25s, color .25s;
}
.lightbox__nav:hover { background: var(--teal-800); color: var(--white); }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }
.lightbox__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.2rem 1.5rem .6rem; border-top: 1px dashed var(--line); }

.lightbox__count { font-size: .85rem; font-weight: 600; color: var(--teal-500); white-space: nowrap; padding-top: .3rem; }
.lightbox__meta p { color: var(--muted); font-size: .92rem; margin-top: .3rem; }
.lightbox__thumbs { position: relative; display: flex; gap: .5rem; overflow-x: auto; padding: .2rem 1.5rem 1.4rem; }
.lightbox__thumbs button {
  flex: none; width: 64px; height: 64px; border-radius: 10px; border: 2px solid var(--line);
  background: var(--white); padding: 4px; cursor: pointer; transition: border-color .25s, transform .2s;
}
.lightbox__thumbs button:hover { transform: translateY(-2px); }
.lightbox__thumbs button[aria-current="true"] { border-color: var(--teal-800); }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Aparición al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1000px) {
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.2rem; }
  .steps::before { display: none; }
}
@media (max-width: 860px) {
  .hero__inner, .contact__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 420px; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: .5rem 16px 1.2rem; transform: translateY(-120%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s; z-index: -1;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease); }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px dashed var(--line); }
  .nav .btn { margin-top: 1rem; }
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .offer-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .offer { padding: 1.1rem 1rem; }
  .offer p { display: none; }
  .offer__icon { width: 46px; height: 46px; margin-bottom: .8rem; }
  .steps { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.4rem; }
  .hero__stats strong { font-size: 1.8rem; }
  .lightbox { padding: 0; }
  .lightbox__panel { border-radius: 0; max-height: 100vh; height: 100%; }
  .lightbox__stage { height: 55vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: .55rem;
  background: #25d366; color: #fff; text-decoration: none;
  font: 600 .95rem/1 var(--font-body); padding: .8rem 1.15rem .8rem .9rem; border-radius: 999px;
  box-shadow: 0 10px 28px rgba(18, 140, 70, .35);
  transition: transform .3s var(--ease), box-shadow .3s;
  animation: waIn .6s var(--ease) 1.2s both;
}
.wa-float svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 34px rgba(18, 140, 70, .45); }
.wa-float:focus-visible { outline: 3px solid var(--teal-300); outline-offset: 3px; }
@keyframes waIn { from { opacity: 0; transform: translateY(20px) scale(.9); } }
@media (max-width: 560px) {
  .wa-float { right: 14px; bottom: 14px; padding: .85rem; }
  .wa-float span { display: none; }
}
