@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #201814;
  --brown: #4b2c0d;
  --brown-muted: #76583d;
  --light: #d9d0cc;
  --dark: #c8b8ae;
  --paper: #f8f5f3;
  --line: #bca99e;
  --max: 1160px;
  --shadow: 0 18px 42px rgba(65, 42, 28, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--light); color: var(--ink); font-family: Inter, Arial, sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 12px 18px; border-radius: 8px; background: #fff; color: #201814; font-weight: 700; box-shadow: 0 4px 18px rgba(0,0,0,.28); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #1f6feb; outline-offset: 4px; }
main:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: auto; }
.eyebrow { margin: 0 0 13px; color: var(--brown); font-size: .75rem; font-weight: 700; letter-spacing: .085em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.042em; line-height: 1.12; }
h1 { font-size: clamp(2.55rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.85rem, 3.15vw, 2.8rem); }
h3 { font-size: 1.1rem; }
.lead { max-width: 630px; font-size: 1.05rem; }

.btn { display: inline-block; padding: 13px 23px; border: 1px solid var(--brown); border-radius: 999px; font-size: .9rem; font-weight: 600; transition: transform .22s ease, box-shadow .22s ease, background .22s ease; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 9px 18px rgba(75, 44, 13, .22); }
.btn-primary { background: var(--brown); color: #fff; }
.btn-light { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.btn-outline { background: transparent; color: var(--brown); }
.text-link { display: inline-flex; gap: 10px; align-items: center; margin-top: 19px; color: var(--brown); font-size: .9rem; font-weight: 700; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.topbar { background: var(--dark); color: var(--ink); font-size: .8rem; }
.topbar .wrap { display: flex; justify-content: space-between; padding: 9px 0; }
.nav { background: var(--paper); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { color: var(--brown); font-size: .83rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.brand span { color: var(--brown-muted); }
.brand-with-logo { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { width: 46px; height: 46px; object-fit: contain; flex: 0 0 auto; }
.brand-name { color: inherit !important; }
.brand-name > span { color: var(--brown-muted); }
.navlinks { display: flex; align-items: center; gap: 21px; font-size: .88rem; font-weight: 600; }
.navlinks a { transition: color .2s ease; }
.navlinks a:hover, .navlinks .active { color: var(--brown); }
.menu-cta { padding: 9px 14px; border: 1px solid var(--brown); border-radius: 999px; }

/* En inicio, el encabezado se integra con la fotografía y no compite con ella. */
.home .topbar { display: none; }
.home .nav { position: absolute; z-index: 10; width: 100%; border: 0; background: linear-gradient(180deg, rgba(25, 19, 15, .28), transparent); color: #fff; }
.home .brand, .home .brand span, .home .navlinks a { color: #fff; }
.home .navlinks a { opacity: .9; }
.home .navlinks a:hover, .home .navlinks .active { opacity: 1; color: #fff; }
.home .menu-cta { border-color: rgba(255,255,255,.72); background: rgba(255,255,255,.96); color: var(--ink) !important; }
.home .nav .wrap { min-height: 76px; }
.home .hero { min-height: 770px; align-items: end; padding: 190px 0 92px; }

.hero { display: flex; min-height: 610px; align-items: center; padding: 96px 0; background: linear-gradient(180deg, rgba(32, 24, 20, .2), rgba(32, 24, 20, .58)), url('https://compostperu.com/wp-content/uploads/2026/08/Imagen-18-08-26-a-las-20.16.jpeg') center / cover; color: #fff; text-align: center; }
.hero .wrap { display: grid; justify-items: center; }
.hero .eyebrow { color: #f0e3d9; }
.hero h1 { max-width: 720px; font-size: clamp(2rem, 3.5vw, 3.1rem); text-shadow: 0 2px 18px rgba(0, 0, 0, .22); }
.hero .lead { max-width: 610px; font-size: .9rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }

.section, .proof-section { padding: 90px 0; background: var(--light); }
.section-sand, .page-hero { background: var(--dark); }
.section-green { background: var(--brown); color: #fff; }
.section-green .eyebrow { color: #e9d8cb; }
.section-green .lead { color: #f6efeb; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 74px; align-items: center; }
.photo { width: 100%; height: 405px; border: 1px solid var(--brown-muted); border-radius: 24px; object-fit: cover; transition: transform .3s ease, box-shadow .3s ease; }
.photo:hover { transform: scale(1.012); box-shadow: var(--shadow); }
.caption { margin: 8px 0 0; color: #6c5d55; font-size: .82rem; }

/* Franja de respaldo: información editorial, sin tarjetas decorativas. */
.proof-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.proof-layout { display: grid; grid-template-columns: minmax(300px, .95fr) minmax(580px, 1.4fr); gap: 78px; align-items: end; }
.proof-intro h2 { max-width: 465px; color: var(--brown); }
.proof-intro > p:not(.eyebrow) { max-width: 460px; margin: 18px 0 0; font-size: .94rem; }
.proof-details { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.proof-details article { min-height: 166px; padding: 25px 25px 18px; border-right: 1px solid var(--line); transition: background .25s ease; }
.proof-details article:first-child { border-left: 1px solid var(--line); }
.proof-details article:hover { background: var(--light); }
.proof-details span { display: block; margin-bottom: 30px; color: var(--brown-muted); font-size: .68rem; font-weight: 700; letter-spacing: .12em; }
.proof-details h3 { color: var(--brown); font-size: 1rem; }
.proof-details p { margin: 8px 0 0; font-size: .84rem; }

.cards, .product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 38px; }
.card, .product { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.card { padding: 29px; }
.card:hover, .product:hover, .delivery article:hover { transform: translateY(-6px); border-color: var(--brown-muted); box-shadow: var(--shadow); }
.card .num { display: block; margin-bottom: 18px; color: var(--brown-muted); font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
.card p { margin: 12px 0 0; font-size: .92rem; }

.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 38px; counter-reset: step; }
.process article { padding: 23px 18px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 14px; background: #fffaf7; color: var(--ink); transition: transform .25s ease, box-shadow .25s ease; }
.process article:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0, 0, 0, .18); }
.process article::before { display: block; margin-bottom: 35px; color: var(--brown-muted); content: '0' counter(step); counter-increment: step; font-size: .75rem; font-weight: 700; }
.process h3 { font-size: 1rem; }.process p { font-size: .86rem; }
.cta { padding: 72px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--dark); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; }.cta h2 { max-width: 650px; color: var(--brown); }

.page-hero { padding: 78px 0; }.page-hero h1 { max-width: 900px; color: var(--brown); font-size: clamp(2.55rem, 4.8vw, 4.25rem); }.page-hero .lead { margin-bottom: 0; }
.product img { width: 100%; height: 230px; border-bottom: 1px solid var(--line); object-fit: cover; }.product .inner { padding: 28px; }.product h2 { color: var(--brown); font-size: 1.7rem; }.tag { display: inline-block; margin-bottom: 13px; color: var(--brown-muted); font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }.list { padding-left: 18px; }.list li { margin: 7px 0; }
.timeline { max-width: 820px; margin: 35px auto 0; border-left: 2px solid var(--brown-muted); }.timeline article { position: relative; padding: 0 0 36px 38px; }.timeline article::before { position: absolute; top: 4px; left: -9px; width: 15px; height: 15px; border: 3px solid var(--brown-muted); border-radius: 50%; background: #f0e3d8; content: ''; }.timeline p { max-width: 620px; margin: 8px 0; }
.delivery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 35px; }.delivery article { padding: 25px; border: 1px solid var(--line); border-top: 4px solid var(--brown); border-radius: 14px; background: var(--paper); transition: .28s; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; margin-top: 38px; }.gallery figure { grid-column: span 4; overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 16px; transition: .28s; }.gallery figure:nth-child(1), .gallery figure:nth-child(4) { grid-column: span 8; }.gallery figure:hover { transform: translateY(-4px); box-shadow: var(--shadow); }.gallery img { display: block; width: 100%; height: 245px; object-fit: cover; transition: transform .5s ease; }.gallery figure:hover img { transform: scale(1.045); }.gallery figcaption { padding: 10px; background: var(--paper); font-size: .87rem; }
.quote-box { padding: 34px; border: 1px solid var(--line); border-left: 5px solid var(--brown); border-radius: 12px; background: var(--paper); font-size: 1.15rem; }.form-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; }.form { padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }label { display: block; margin: 0 0 16px; font-size: .88rem; font-weight: 600; }input, select, textarea { display: block; width: 100%; margin-top: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; }textarea { min-height: 125px; }.contact-details { padding: 32px; border-radius: 18px; background: var(--brown); color: #fff; }.contact-details .eyebrow { color: #ebd8ca; }.contact-details h2 { font-size: 2.2rem; }.contact-details p { color: #f5eae3; }
.footer { padding: 58px 0 22px; background: #342114; color: #eee4df; }.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }.footer h3 { font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }.footer a { display: block; margin: 8px 0; color: #eadbd1; font-size: .92rem; }.copyright { margin-top: 45px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.17); color: #d2c0b5; font-size: .8rem; }

@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.js .reveal { opacity: 0; transform: translateY(22px); }.js .reveal.visible { animation: fade-up .7s cubic-bezier(.2,.7,.2,1) forwards; }.js .reveal:nth-child(2) { animation-delay: .08s; }.js .reveal:nth-child(3) { animation-delay: .16s; }.js .reveal:nth-child(4) { animation-delay: .24s; }.js .reveal:nth-child(5) { animation-delay: .32s; }
@media (prefers-reduced-motion: no-preference) { html:not(.js) .page-hero .wrap > *, html:not(.js) .cards .card, html:not(.js) .delivery article, html:not(.js) .product, html:not(.js) .gallery figure, html:not(.js) .timeline article { animation: fade-up .7s both; } html:not(.js) .cards .card:nth-child(2), html:not(.js) .delivery article:nth-child(2), html:not(.js) .product:nth-child(2), html:not(.js) .gallery figure:nth-child(2), html:not(.js) .timeline article:nth-child(2) { animation-delay: .1s; } html:not(.js) .cards .card:nth-child(3), html:not(.js) .delivery article:nth-child(3), html:not(.js) .product:nth-child(3), html:not(.js) .gallery figure:nth-child(3), html:not(.js) .timeline article:nth-child(3) { animation-delay: .2s; } }
@media (max-width: 920px) { .nav .wrap { align-items: flex-start; flex-direction: column; gap: 12px; padding: 15px 0; }.navlinks { width: 100%; padding-bottom: 3px; gap: 17px; overflow-x: auto; white-space: nowrap; }.home .nav .wrap { min-height: 0; }.home .hero { min-height: 660px; padding-top: 175px; }.proof-layout { grid-template-columns: 1fr; gap: 38px; }.split, .form-wrap { grid-template-columns: 1fr; gap: 35px; }.cards, .product-grid { grid-template-columns: 1fr; }.process { grid-template-columns: 1fr 1fr; }.delivery { grid-template-columns: 1fr; }.cta .wrap { display: block; }.cta .btn { margin-top: 22px; }.gallery figure, .gallery figure:nth-child(1), .gallery figure:nth-child(4) { grid-column: span 6; }.footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .wrap { width: min(var(--max), calc(100% - 32px)); }.topbar .wrap { display: block; text-align: center; }.topbar .wrap span { display: block; }.home .nav { background: linear-gradient(180deg, rgba(25,19,15,.52), transparent); }.home .nav .wrap { padding: 13px 0; }.home .hero { min-height: 610px; padding: 175px 0 62px; }.home .hero h1 { font-size: clamp(1.95rem, 8.6vw, 2.45rem); }.home .hero .lead { font-size: .86rem; }.hero, .section, .proof-section { padding: 62px 0; }.proof-details { grid-template-columns: 1fr; }.proof-details article { min-height: 0; border-left: 1px solid var(--line); }.proof-details span { margin-bottom: 14px; }.process { grid-template-columns: 1fr; }.gallery figure, .gallery figure:nth-child(1), .gallery figure:nth-child(4) { grid-column: span 12; }.gallery img { height: 220px; }.footer-grid { grid-template-columns: 1fr; }.photo { height: 320px; }.cta { padding: 54px 0; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }.js .reveal { opacity: 1; transform: none; } }

input[type="hidden"] { display: none; }
.navlinks.menu { margin: 0; padding: 0; list-style: none; }
.navlinks.menu > li { display: flex; align-items: center; }
.footer h2 { font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.form-success, .form-error { margin-top: 22px; padding: 18px; border-radius: 10px; }
.form-success { border: 2px solid #386641; background: #f0f7ef; }
.form-error { border: 2px solid #9d2f2f; background: #fff1f1; color: #661b1b; }
.wp-form-host > :first-child { margin-top: 0; }
.wp-form-host form { margin-top: 20px; }
.wp-form-host input[type="submit"], .wp-form-host button[type="submit"] { min-height: 44px; padding: 13px 23px; border: 1px solid var(--brown); border-radius: 999px; background: var(--brown); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.social-links { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.social-icon { display: inline-flex !important; width: 42px; height: 42px; margin: 0 !important; align-items: center; justify-content: center; border-radius: 50%; transition: transform .2s ease, background-color .2s ease; }
.social-icon img { display: block; width: 20px; height: 20px; }
.social-icon--light { background: #a98770; }
.social-icon--medium { background: #815c44; }
.social-icon--dark { background: #5b3a27; }
a.social-icon:hover { transform: translateY(-3px); background: #c6a991; }
.footer .social-icon:focus-visible { outline-color: #f8f5f3; }

/* Accesibilidad: objetivos táctiles, formularios legibles y navegación adaptable. */
.btn { min-height: 44px; cursor: pointer; }
.navlinks a { display: inline-flex; min-height: 44px; align-items: center; }
.navlinks a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
input, select, textarea { min-height: 46px; border-width: 2px; border-color: #806d63; color: var(--ink); }
textarea { min-height: 125px; }
.required-note, .field-hint { color: #5f514a; font-size: .85rem; }
.field-hint { display: block; margin: -9px 0 16px; }
@media (max-width: 920px) {
  .navlinks { flex-wrap: wrap; gap: 4px 16px; overflow: visible; white-space: normal; }
  .home .hero { padding-top: 210px; }
}
@media (max-width: 620px) {
  .brand-logo { width: 40px; height: 40px; }
  .home .nav { background: rgba(25,19,15,.84); }
  .home .hero { min-height: 690px; padding-top: 285px; }
  .home .hero .lead { font-size: 1rem; }
}





/* Lightbox de la galería */
.gallery-lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-lightbox-trigger img {
  width: 100%;
}

.gallery-lightbox-trigger:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: -5px;
}

.gallery-lightbox {
  width: min(1100px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: #201814;
  color: #f8f5f3;
  box-shadow: 0 24px 80px rgba(32, 24, 20, 0.55);
}

.gallery-lightbox::backdrop {
  background: rgba(32, 24, 20, 0.88);
  backdrop-filter: blur(5px);
}

.gallery-lightbox__figure {
  display: grid;
  margin: 0;
  background: #201814;
}

.gallery-lightbox__image {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #160f0b;
}

.gallery-lightbox__caption {
  min-height: 64px;
  margin: 0;
  padding: 18px 80px 18px 24px;
  background: #342114;
  color: #eee4df;
  font-size: 0.95rem;
}

.gallery-lightbox__counter {
  display: inline-block;
  margin-right: 12px;
  color: #c6a991;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.gallery-lightbox__close,
.gallery-lightbox__navigation {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(52, 33, 20, 0.88);
  color: #fff;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__navigation:hover {
  background: #76583d;
  transform: scale(1.06);
}

.gallery-lightbox__close:focus-visible,
.gallery-lightbox__navigation:focus-visible {
  outline: 3px solid #f8f5f3;
  outline-offset: 3px;
}

.gallery-lightbox__close {
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  font-size: 1.7rem;
  line-height: 1;
}

.gallery-lightbox__navigation {
  top: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.7rem;
  transform: translateY(-50%);
}

.gallery-lightbox__navigation:hover {
  transform: translateY(-50%) scale(1.06);
}

.gallery-lightbox__previous {
  left: 16px;
}

.gallery-lightbox__next {
  right: 16px;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

@media (max-width: 620px) {
  .gallery-lightbox {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 14px;
  }

  .gallery-lightbox__image {
    max-height: 72vh;
  }

  .gallery-lightbox__caption {
    min-height: 58px;
    padding: 14px 64px 14px 16px;
    font-size: 0.85rem;
  }

  .gallery-lightbox__close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
  }

  .gallery-lightbox__navigation {
    width: 42px;
    height: 42px;
  }

  .gallery-lightbox__previous {
    left: 8px;
  }

  .gallery-lightbox__next {
    right: 8px;
  }
}