/* =========================================================
   PERSIANAS & ESTORES — Landing catálogo
   Solo HTML5 + CSS3
   ========================================================= */

:root {
  --white: #ffffff;
  --beige: #f7f3ed;
  --beige-2: #efe8de;
  --dark: #2a2b2a;
  --dark-2: #3d3f3d;
  --text: #4a4c4a;
  --muted: #7b7d79;
  --green: #2f4a3e;
  --green-2: #3b5c4d;
  --terra: #b7694a;
  --wa: #1f8a52;
  --wa-2: #197345;
  --line: #e7e1d8;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(30, 30, 30, .04), 0 8px 24px rgba(30, 30, 30, .06);
  --shadow-hover: 0 2px 4px rgba(30, 30, 30, .05), 0 18px 40px rgba(30, 30, 30, .10);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1240px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { color: var(--dark); margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }

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

.icon { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 14px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  border: 1.5px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }

.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: var(--wa-2); box-shadow: 0 8px 20px rgba(31, 138, 82, .25); }

.btn--dark { background: var(--dark); color: var(--white); }
.btn--dark:hover { background: var(--green); }

.btn--outline { border-color: var(--dark); color: var(--dark); background: transparent; }
.btn--outline:hover { background: var(--dark); color: var(--white); }

.btn--light { background: var(--white); color: var(--dark); }
.btn--light:hover { background: var(--beige); }

.btn--sm { padding: 9px 18px; font-size: .88rem; }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--xl { padding: 20px 36px; font-size: 1.1rem; }
.btn--xl .icon { width: 22px; height: 22px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .08em;
  color: var(--dark);
}
.logo span { color: var(--terra); }
.logo--light { color: var(--white); }

.nav { display: flex; gap: 36px; }
.nav a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--dark-2);
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--dark);
  transition: color .2s;
}
.header__phone:hover { color: var(--green); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--beige) 0%, var(--white) 100%);
  padding: 64px 0 88px;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  font-weight: 800;
  margin-bottom: 22px;
}
.hero__text {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 34rem;
  margin-bottom: 34px;
}
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--dark-2);
}
.hero__badges li::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow-hover);
  animation: fadeUp 1s var(--ease) both;
}
.hero__float {
  position: absolute;
  left: -28px;
  bottom: 32px;
  background: var(--white);
  padding: 16px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--terra);
  animation: fadeUp 1s .3s var(--ease) both;
}
.hero__float strong { color: var(--dark); font-size: .98rem; }
.hero__float span { font-size: .85rem; color: var(--muted); }

.hero__content > * { animation: fadeUp .9s var(--ease) both; }
.hero__content > *:nth-child(2) { animation-delay: .08s; }
.hero__content > *:nth-child(3) { animation-delay: .16s; }
.hero__content > *:nth-child(4) { animation-delay: .24s; }
.hero__content > *:nth-child(5) { animation-delay: .32s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Secciones ---------- */
.section { padding: 100px 0; }
.section--beige { background: var(--beige); }

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section__head h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.section__head p:not(.eyebrow) { font-size: 1.08rem; }

/* ---------- Productos ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.product {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.product__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--beige-2);
}
.product__media img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.product:hover .product__media img { transform: scale(1.06); }

.product__tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--white);
  color: var(--green);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.product__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product__body h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 8px; }
.product__body p { font-size: .94rem; color: var(--muted); margin-bottom: 20px; flex: 1; }
.product__actions { display: grid; gap: 10px; }
.product__actions .btn { padding: 11px 16px; font-size: .9rem; }

/* ---------- Sección visual ---------- */
.feature {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.feature__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(42, 43, 42, .35) 0%, rgba(42, 43, 42, 0) 60%);
  z-index: 1;
}
.feature .container { position: relative; z-index: 2; }
.feature__card {
  background: rgba(255, 255, 255, .96);
  max-width: 480px;
  padding: 48px 44px;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
}
.feature__card h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 16px; }
.feature__card p:not(.eyebrow) { font-size: 1.05rem; margin-bottom: 28px; }

/* ---------- Ventajas ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.benefit {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.benefit__icon {
  width: 60px; height: 60px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--beige);
  color: var(--green);
}
.benefit__icon svg { width: 28px; height: 28px; }
.benefit h3 { font-size: 1.12rem; margin-bottom: 6px; }
.benefit p { font-size: .94rem; color: var(--muted); }

/* ---------- Galería ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  grid-auto-flow: dense;
  gap: 18px;
}
.gallery__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--beige-2);
}
.gallery__item--big { grid-column: span 2; grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption {
  position: absolute;
  left: 16px; bottom: 16px;
  background: rgba(255, 255, 255, .94);
  color: var(--dark);
  font-weight: 700;
  font-size: .85rem;
  padding: 7px 14px;
  border-radius: 999px;
}

/* ---------- CTA final ---------- */
.cta {
  background: var(--green);
  color: var(--white);
  padding: 110px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
}
.cta::before { width: 520px; height: 520px; top: -260px; left: -160px; }
.cta::after  { width: 420px; height: 420px; bottom: -220px; right: -120px; }
.cta__inner { position: relative; z-index: 1; max-width: 760px; }
.cta h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 18px;
}
.cta p { font-size: 1.15rem; opacity: .88; margin-bottom: 40px; }
.cta__buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.cta .btn--wa { background: var(--white); color: var(--wa); }
.cta .btn--wa:hover { background: var(--beige); box-shadow: none; }
.cta .btn--light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .6); }
.cta .btn--light:hover { background: var(--white); color: var(--green); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(255, 255, 255, .75); padding: 56px 0 0; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 40px;
}
.footer__products { margin-top: 10px; font-size: .95rem; }
.footer__contact { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__contact a:not(.btn) { color: var(--white); font-weight: 700; }
.footer__contact a:not(.btn):hover { color: var(--beige-2); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: .85rem;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(31, 138, 82, .35);
  transition: transform .25s var(--ease), background-color .25s;
}
.wa-float:hover { transform: scale(1.08); background: var(--wa-2); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__float { left: 16px; bottom: 16px; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .header__phone span { display: none; }
  .header__phone {
    width: 40px; height: 40px;
    justify-content: center;
    border: 1.5px solid var(--line);
    border-radius: 50%;
  }
}

@media (max-width: 760px) {
  .header__inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 12px;
    padding-bottom: 10px;
    row-gap: 8px;
  }
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 28px;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }
  .nav a { font-size: .9rem; }
  .logo { font-size: .98rem; }

  .hero { padding: 40px 0 64px; }
  .hero__buttons .btn { width: 100%; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 40px; }

  .products { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product__body { padding: 16px 14px 18px; }
  .product__body h3 { font-size: 1.02rem; }
  .product__body p { font-size: .86rem; }
  .product__actions .btn { padding: 10px 10px; font-size: .84rem; }

  .feature { min-height: auto; padding: 260px 0 32px; }
  .feature::before { background: linear-gradient(180deg, rgba(42, 43, 42, 0) 30%, rgba(42, 43, 42, .4) 100%); }
  .feature__card { padding: 34px 26px; }

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; gap: 12px; }
  .gallery__item--tall { grid-row: span 1; }

  .cta { padding: 80px 0; }
  .cta__buttons .btn { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .benefits { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .header__actions .btn--wa span { display: none; }
  .header__actions .btn--wa { padding: 10px; border-radius: 50%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
