/* =========================================================
   CONSTRUFLORIDA — BASE GLOBAL + INDEX
   Archivo: estilos/style.css
   ========================================================= */

:root {
  color-scheme: light;

  --green: #193d32;
  --green-dark: #102e25;
  --ink: #223b32;
  --muted: #65706a;
  --paper: #f8f8f4;
  --soft: #efefe8;
  --orange: #f6ad55;
  --orange-dark: #a6541c;
  --line: #dedfd7;

  --wrap: 1280px;
  --header-height: 96px;

  /* Escala tipográfica compartida por páginas interiores */
  --page-h1: clamp(44px, 4vw, 58px);
  --page-h2: clamp(34px, 3.2vw, 46px);
  --page-h3: 22px;
  --page-body: 14px;
  --page-small: 12px;
  --page-eyebrow: 10px;

  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--orange-dark);
  outline-offset: 5px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 96px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 3000;
  padding: 12px 16px;
  background: #fff;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* =========================================================
   HEADER GLOBAL — TRANSPARENTE Y STICKY
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgb(248 248 244 / 76%);
  border-bottom: 1px solid rgb(25 61 50 / 8%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 8px 30px rgb(16 46 37 / 5%);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand,
.brand--client-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand--client-logo {
  flex: 0 0 auto;
}

.client-logo {
  width: 220px;
  height: auto;
  max-height: 70px;
  object-fit: contain;
  object-position: left center;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-header nav a {
  position: relative;
  padding-block: 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav .nav-current {
  color: var(--orange-dark);
}

.site-header nav .nav-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--orange);
}

/* =========================================================
   TIPOGRAFÍA GLOBAL
   ========================================================= */

.eyebrow,
.section-kicker {
  margin: 0 0 15px;
  color: #996035;
  font-size: var(--page-eyebrow);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-rendering: optimizeLegibility;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 5.4vw, 78px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -3px;
}

h1 em {
  color: var(--orange);
  font-style: normal;
}

h2 {
  margin: 0;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -1.4px;
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.5px;
}

/* =========================================================
   BOTONES
   ========================================================= */

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 23px;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  background: var(--orange);
  color: #1d342b;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #ffc47e;
}

.button span {
  font-size: 24px;
  font-weight: 400;
}

/* =========================================================
   INDEX — HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 620px;
  isolation: isolate;
  color: #fff;
  background: #333a2f;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-image {
  object-fit: cover;
  object-position: center 52%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgb(15 30 25 / 92%) 0%, rgb(15 30 25 / 70%) 36%, rgb(15 30 25 / 12%) 76%),
    linear-gradient(0deg, rgb(15 30 25 / 65%), transparent 30%);
}

.hero-content {
  padding-block: 68px 85px;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f6d6aa;
}

.hero .eyebrow span {
  width: 22px;
  height: 2px;
  background: var(--orange);
}

.hero-description {
  margin: 24px 0 28px;
  color: #e3e8e4;
  font-size: 16px;
  line-height: 1.65;
}

.hero-caption {
  position: absolute;
  right: 0;
  bottom: 23px;
  left: 0;
  display: flex;
  justify-content: space-between;
  color: #d8ddd6;
  font-size: 10px;
}

.hero-caption span:first-child {
  font-size: 9px;
  letter-spacing: 2px;
}

/* =========================================================
   INDEX — CATEGORÍAS Y CATÁLOGO
   ========================================================= */

.category-strip {
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.category-strip .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
}

.category-strip span {
  font-size: 11px;
  font-weight: 600;
}

.category-strip span::before {
  content: "+";
  margin-right: 12px;
  color: #9b5122;
  font-size: 16px;
}

.catalog {
  padding-block: 76px 64px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 36px;
}

.section-heading .eyebrow {
  margin-bottom: 13px;
}

.section-heading > p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 24px;
}

.product-card {
  scroll-margin-top: calc(var(--header-height) + 24px);
  border: 1px solid var(--line);
  background: #fff;
}

.product-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line);
  background: #e9e9e3;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-photo .plywood-photo {
  object-position: center 56%;
}

.product-photo > span {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  background: #fff;
  color: var(--green);
  font-size: 10px;
}

.product-copy {
  padding: 23px 20px 25px;
}

.product-category {
  margin: 0 0 10px;
  color: #866346;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.product-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.catalog-note {
  max-width: 750px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.closing-band {
  background: var(--green);
  color: #fff;
}

.closing-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-block: 43px;
}

.closing-band p {
  margin: 0;
  font-size: 29px;
  line-height: 1.3;
  letter-spacing: -.7px;
}

.closing-band strong {
  color: #e4c7a0;
  font-weight: 400;
}

.closing-band a {
  padding-block: 12px;
  border-bottom: 1px solid #819489;
  font-size: 12px;
  text-decoration: none;
}

.closing-band a span {
  margin-left: 26px;
  font-size: 20px;
}

/* =========================================================
   FOOTER CORPORATIVO COMÚN
   ========================================================= */

.page-footer {
  padding-top: 52px;
  background: #151c19;
  color: #fff;
}

.page-footer-main {
  display: grid;
  grid-template-columns: 1.4fr .75fr 1.15fr .7fr;
  gap: 44px;
  padding-bottom: 42px;
}

.page-footer-brand img {
  width: 210px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
}

.page-footer-brand p {
  max-width: 290px;
  margin: 17px 0 0;
  color: rgb(255 255 255 / 54%);
  font-size: 11px;
  line-height: 1.65;
}

.page-footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.page-footer-column > span {
  margin-bottom: 6px;
  color: #d9bb95;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.page-footer-column a {
  color: rgb(255 255 255 / 72%);
  font-size: 11px;
  text-decoration: none;
}

.page-footer-column a:hover {
  color: #fff;
}

.page-footer-column p {
  margin: 4px 0 0;
  color: rgb(255 255 255 / 50%);
  font-size: 10px;
  line-height: 1.65;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  color: #fff !important;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  background: rgb(255 255 255 / 5%);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.page-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
  border-top: 1px solid rgb(255 255 255 / 9%);
}

.page-footer-bottom p,
.page-footer-bottom a {
  margin: 0;
  color: rgb(255 255 255 / 42%);
  font-size: 9px;
  text-decoration: none;
}

/* =========================================================
   POPUP / WHATSAPP FLOTANTE GLOBAL
   Más grande, visible y siempre fijo
   ========================================================= */

.floating-whatsapp {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 2500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-width: 190px;
  min-height: 64px;
  padding: 0 20px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  background: #1d7958;
  color: #fff;
  box-shadow: 0 16px 38px rgb(16 45 35 / 28%);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.floating-whatsapp::before {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
  border: 1px solid rgb(29 121 88 / 28%);
  border-radius: inherit;
}

.floating-whatsapp svg {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  fill: currentColor;
}

.floating-whatsapp:hover {
  transform: translateY(-3px);
  background: #176347;
  box-shadow: 0 20px 44px rgb(16 45 35 / 34%);
}

.floating-whatsapp-label {
  white-space: nowrap;
}

/* =========================================================
   CRÉDITOS
   ========================================================= */

.credits {
  padding-block: 60px;
}

.credits h1 {
  color: var(--green);
  font-size: 40px;
  letter-spacing: -1.5px;
}

.credits > p {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.7;
}

.credits article {
  padding-block: 25px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.credits h2 {
  font-size: 22px;
  letter-spacing: -.5px;
}

.credits article p {
  margin-block: 9px;
  font-size: 14px;
  line-height: 1.8;
}

/* =========================================================
   RESPONSIVE GLOBAL
   ========================================================= */

@media (min-width: 1100px) {
  .product-card:nth-last-child(-n + 2) {
    grid-column: span 2;
  }

  .product-card:nth-last-child(-n + 2) .product-photo {
    aspect-ratio: 2.25;
  }
}

@media (max-width: 1099px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 20px;
  }

  .page-footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  :root {
    --header-height: 82px;
    --page-h1: clamp(39px, 11vw, 50px);
    --page-h2: clamp(32px, 9vw, 40px);
  }

  .wrap {
    width: calc(100% - 40px);
  }

  .header-inner {
    min-height: var(--header-height);
    gap: 14px;
  }

  .client-logo {
    width: 168px;
    max-height: 54px;
  }

  .site-header nav {
    gap: 14px;
  }

  .site-header nav a {
    font-size: 11px;
  }

  .site-header nav a:not(:first-child) {
    display: none;
  }

  .hero {
    min-height: 580px;
  }

  .hero-content {
    padding-top: 60px;
  }

  .hero h1 {
    font-size: 65px;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgb(15 30 25 / 88%), rgb(15 30 25 / 45%));
  }

  .hero-caption {
    gap: 16px;
    font-size: 8px;
  }

  .hero-caption span:first-child {
    display: none;
  }

  .hero-description {
    font-size: 15px;
  }

  .category-strip .wrap {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    padding-block: 17px;
  }

  .category-strip span {
    font-size: 10px;
  }

  .catalog {
    padding-block: 48px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }

  .product-copy {
    padding: 19px 15px;
  }

  .closing-band p {
    font-size: 24px;
  }

  .page-footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .floating-whatsapp {
    right: 18px;
    bottom: 18px;
    min-width: 60px;
    width: 60px;
    min-height: 60px;
    height: 60px;
    padding: 0;
  }

  .floating-whatsapp-label {
    display: none;
  }
}

@media (max-width: 430px) {
  .client-logo {
    width: 155px;
    max-height: 48px;
  }

  .hero h1 {
    font-size: 57px;
  }

  .hero {
    min-height: 550px;
  }

  .hero-content {
    padding-top: 50px;
  }

  .product-grid {
    gap: 18px 12px;
  }

  .product-copy {
    padding: 17px 12px;
  }

  .product-category {
    font-size: 7px;
    letter-spacing: 1px;
  }

  .product-copy > p:last-child {
    font-size: 11px;
  }

  .product-photo > span {
    left: 8px;
    top: 8px;
    width: 22px;
    height: 22px;
  }

  .closing-band .wrap {
    align-items: start;
    flex-direction: column;
  }

  .desktop-break {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .floating-whatsapp,
  .social-link {
    transition: none;
  }
}
