/* =========================================================
   VARIABLES Y RESET
   ========================================================= */

:root {
  --green-900: #14291f;
  --green-800: #1b3a2a;
  --green-700: #2d5a3d;
  --green-500: #4a8a5f;

  --accent: #d9a441;
  --accent-dark: #b9842d;

  --cream: #f7f5f0;
  --white: #ffffff;
  --ink: #22312a;
  --muted: #5f6f66;

  --danger: #d9534f;
  --success-bg: #e6f4ea;
  --success-text: #1e6b3a;

  --radius: 16px;
  --shadow: 0 12px 40px rgba(20, 41, 31, 0.12);

  --font-head: "Poppins", sans-serif;
  --font-body: "Lora", serif;

  --header-h: 76px;

  --transition-fast: 0.2s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

/* Reset */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--white);
}


/* =========================================================
   ACCESIBILIDAD / FOCUS
   ========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(217, 164, 65, 0.65);
  outline-offset: 3px;
}

button {
  -webkit-tap-highlight-color: transparent;
}


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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  min-height: 46px;
  padding: 0.9rem 1.8rem;

  border: 2px solid transparent;
  border-radius: 999px;

  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;

  cursor: pointer;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);

  -webkit-appearance: none;
  appearance: none;
}

.btn--primary {
  background: var(--green-700);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--green-800);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.btn--accent {
  background: var(--accent);
  color: var(--green-900);
}

.btn--accent:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--small {
  min-height: 38px;
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
}

.btn--full {
  width: 100%;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;

  width: 100%;
  height: var(--header-h);

  transition:
    background-color var(--transition-slow),
    box-shadow var(--transition-slow),
    backdrop-filter var(--transition-slow);
}

.header.scrolled {
  background: rgba(20, 41, 31, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--white);
  position: relative;
  z-index: 121;
}

.nav__logo-icon {
  width: 30px;
  height: 30px;
  color: var(--accent);
  flex-shrink: 0;
}

.nav__logo-text {
  font-family: var(--font-head);
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.nav__logo-text strong {
  color: var(--accent);
  font-weight: 700;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav__link {
  position: relative;

  display: inline-block;
  padding: 0.3rem 0;

  color: rgba(255, 255, 255, 0.85);

  font-size: 0.92rem;
  font-weight: 500;

  transition: color var(--transition);
}

.nav__link::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -2px;

  width: 0;
  height: 2px;

  background: var(--accent);

  transition: width var(--transition);
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--white);
}

.nav__link:hover::after,
.nav__link.active-link::after {
  width: 100%;
}

.nav__toggle {
  display: none;

  padding: 0.5rem;

  background: transparent;
  border: 0;

  cursor: pointer;

  position: relative;
  z-index: 121;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;

  width: 26px;
  height: 2.5px;

  background: var(--white);
  border-radius: 2px;

  transition:
    transform var(--transition),
    opacity var(--transition),
    background-color var(--transition);

  content: "";
}

.hamburger::before {
  transform: translateY(-8px);
}

.hamburger::after {
  transform: translateY(5.5px);
}

.nav__toggle.open .hamburger {
  background: transparent;
}

.nav__toggle.open .hamburger::before {
  transform: translateY(0) rotate(45deg);
}

.nav__toggle.open .hamburger::after {
  transform: translateY(0) rotate(-45deg);
}


/* =========================================================
   HERO SLIDER
   ========================================================= */

.hero__slider {
  position: relative;

  height: 100svh;
  min-height: 620px;

  overflow: hidden;
  isolation: isolate;
}

.hero__slide {
  position: absolute;
  inset: 0;

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  opacity: 0;
  transform: scale(1.06);

  transition:
    opacity 1.1s ease,
    transform 6s linear;

  pointer-events: none;
}

.hero__slide.is-active {
  z-index: 1;

  opacity: 1;
  transform: scale(1);

  pointer-events: auto;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      180deg,
      rgba(20, 41, 31, 0.55) 0%,
      rgba(20, 41, 31, 0.75) 100%
    );

  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;

  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;

  color: var(--white);
}

.hero__tag {
  display: inline-block;

  margin-bottom: 1rem;

  color: var(--accent);

  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero__title {
  max-width: 900px;

  margin-bottom: 0;

  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.1;
}

.hero__title span {
  color: var(--accent);
}

.hero__text {
  max-width: 520px;

  margin: 1.2rem 0 2rem;

  color: rgba(255, 255, 255, 0.85);

  font-size: 1.08rem;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;

  display: grid;
  place-items: center;

  width: 52px;
  height: 52px;

  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;

  background: rgba(20, 41, 31, 0.35);
  color: var(--white);

  font-size: 1.1rem;

  cursor: pointer;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  transform: translateY(-50%);

  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition);
}

.hero__arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--green-900);
}

.hero__arrow--prev {
  left: 2rem;
}

.hero__arrow--next {
  right: 2rem;
}

.hero__dots {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  z-index: 5;

  display: flex;
  gap: 0.6rem;

  transform: translateX(-50%);
}

.hero__dots button {
  width: 11px;
  height: 11px;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.4);

  cursor: pointer;

  transition:
    background-color var(--transition),
    transform var(--transition);
}

.hero__dots button.active {
  background: var(--accent);
  transform: scale(1.3);
}

.hero__scroll {
  position: absolute;
  right: 2.4rem;
  bottom: 2rem;
  z-index: 5;

  display: flex;
  justify-content: center;

  width: 28px;
  height: 46px;

  padding-top: 8px;

  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
}

.hero__scroll-wheel {
  width: 4px;
  height: 9px;

  border-radius: 4px;

  background: var(--accent);

  animation: wheel 1.6s infinite;
}

@keyframes wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  70% {
    transform: translateY(14px);
    opacity: 0;
  }

  100% {
    transform: translateY(14px);
    opacity: 0;
  }
}


/* =========================================================
   ANIMACIONES REVEAL
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(34px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.24s;
}

.delay-3 {
  transition-delay: 0.36s;
}

.delay-4 {
  transition-delay: 0.48s;
}


/* =========================================================
   STATS
   ========================================================= */

.stats {
  padding: 3.4rem 0;

  background: var(--green-900);
  color: var(--white);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;

  text-align: center;
}

.stat__number,
.stat__plus {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;

  color: var(--accent);
}

.stat__label {
  display: block;

  margin-top: 0.2rem;

  color: rgba(255, 255, 255, 0.75);

  font-size: 0.9rem;
}


/* =========================================================
   SECCIONES / TIPOGRAFÍA
   ========================================================= */

.section__tag {
  display: inline-block;

  margin-bottom: 0.8rem;

  color: var(--green-500);

  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  line-height: 1.3;
  text-transform: uppercase;
}

.section__tag--light {
  color: var(--accent);
}

.section__title {
  margin-bottom: 1.2rem;

  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
}

.section__title--light {
  color: var(--white);
}

.section__text {
  max-width: 640px;

  margin-bottom: 1.4rem;

  color: var(--muted);
}

.section__text--light {
  color: rgba(255, 255, 255, 0.78);
}

.section__text--center {
  margin-inline: auto;
  text-align: center;
}

.section__head {
  margin-bottom: 3.4rem;
  text-align: center;
}


/* =========================================================
   EMPRESA
   ========================================================= */

.empresa__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;

  align-items: center;
}

.empresa__media {
  position: relative;
}

.empresa__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.empresa__badge {
  position: absolute;
  right: -1rem;
  bottom: -1.4rem;

  display: flex;
  flex-direction: column;

  padding: 1rem 1.4rem;

  border-radius: var(--radius);

  background: var(--accent);
  color: var(--green-900);

  box-shadow: var(--shadow);
}

.empresa__badge-number {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}

.empresa__badge-text {
  max-width: 130px;

  font-size: 0.78rem;
  line-height: 1.4;
}

.empresa__list {
  display: grid;
  gap: 0.8rem;

  margin: 1.4rem 0 1.8rem;
}

.empresa__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;

  font-weight: 500;
}

.empresa__list svg {
  width: 20px;
  height: 20px;

  flex-shrink: 0;

  margin-top: 0.2rem;

  color: var(--green-500);
}


/* =========================================================
   SERVICIOS
   ========================================================= */

.servicios__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.card {
  padding: 1.8rem 1.5rem;

  border: 1px solid #e8e4da;
  border-radius: var(--radius);

  background: var(--cream);

  transition:
    transform var(--transition-slow),
    background-color var(--transition-slow),
    box-shadow var(--transition-slow),
    border-color var(--transition-slow);
}

.card:hover {
  transform: translateY(-8px);

  background: var(--white);

  border-color: var(--green-500);

  box-shadow: var(--shadow);
}

.card__icon {
  display: grid;
  place-items: center;

  width: 54px;
  height: 54px;

  margin-bottom: 1.1rem;

  border-radius: 14px;

  background: var(--green-800);
  color: var(--accent);

  transition:
    background-color var(--transition-slow),
    color var(--transition-slow),
    transform var(--transition-slow);
}

.card:hover .card__icon {
  background: var(--accent);
  color: var(--green-900);

  transform: rotate(-6deg) scale(1.05);
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

.card__title {
  margin-bottom: 0.5rem;

  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.3;
}

.card__text {
  margin-bottom: 0;

  color: var(--muted);

  font-size: 0.88rem;
  line-height: 1.6;
}


/* =========================================================
   SERRERÍA
   ========================================================= */

.serreria {
  background: linear-gradient(
    135deg,
    var(--green-900),
    var(--green-800)
  );

  color: var(--white);
}

.serreria__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;

  align-items: center;
}

.serreria__products {
  display: grid;
  gap: 1.2rem;

  margin: 1.6rem 0 2rem;
}

.product {
  display: flex;
  gap: 1rem;
}

.product__dot {
  width: 14px;
  height: 14px;

  flex-shrink: 0;

  margin-top: 0.45rem;

  border-radius: 50%;

  background: var(--accent);
}

.product h3 {
  margin-bottom: 0.25rem;

  color: var(--white);

  font-size: 1.05rem;
  line-height: 1.3;
}

.product p {
  margin-bottom: 0;

  color: rgba(255, 255, 255, 0.7);

  font-size: 0.9rem;
}

.serreria__media {
  position: relative;
}

.serreria__slider {
  position: relative;

  aspect-ratio: 4 / 3;

  overflow: hidden;

  border-radius: var(--radius);

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.serreria__slider img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  opacity: 0;
  transform: scale(1.05);

  transition:
    opacity 0.8s ease,
    transform 5s linear;
}

.serreria__slider img.is-active {
  opacity: 1;
  transform: scale(1);
}

.serreria__nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;

  margin-top: 1rem;
}

.serreria__nav button {
  display: grid;
  place-items: center;

  width: 44px;
  height: 44px;

  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;

  background: transparent;
  color: var(--white);

  cursor: pointer;

  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.serreria__nav button:hover {
  background: var(--accent);
  color: var(--green-900);
  border-color: var(--accent);
}


/* =========================================================
   GALERÍA
   ========================================================= */

.galeria__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.galeria__item {
  position: relative;

  aspect-ratio: 4 / 3;

  overflow: hidden;

  border-radius: var(--radius);

  cursor: zoom-in;

  background: #e8e4da;
}

.galeria__item img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.6s ease;
}

.galeria__item::after {
  content: "🔍";

  position: absolute;
  inset: 0;

  display: grid;
  place-items: center;

  font-size: 2rem;

  background: rgba(20, 41, 31, 0.45);

  opacity: 0;

  transition: opacity 0.4s ease;

  pointer-events: none;
}

.galeria__item:hover::after {
  opacity: 1;
}

.galeria__item:hover img {
  transform: scale(1.08);
}


/* =========================================================
   CTA BAND
   ========================================================= */

.cta-band {
  padding: 3.4rem 0;

  background: var(--accent);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;

  flex-wrap: wrap;

  color: var(--green-900);
}

.cta-band h2 {
  margin-bottom: 0.4rem;

  font-family: var(--font-head);
  font-size: 1.7rem;
  line-height: 1.25;
}

.cta-band p {
  margin-bottom: 0;

  opacity: 0.85;
}

.cta-band .btn--accent {
  background: var(--green-900);
  color: var(--white);
}

.cta-band .btn--accent:hover {
  background: var(--green-800);
}


/* =========================================================
   CONTACTO
   ========================================================= */

.contacto__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
}

.contacto__list {
  display: grid;
  gap: 1.4rem;

  margin-top: 1.6rem;
}

.contacto__list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contacto__icon {
  display: grid;
  place-items: center;

  width: 46px;
  height: 46px;

  flex-shrink: 0;

  border-radius: 12px;

  background: var(--white);
  color: var(--green-700);

  box-shadow: var(--shadow);
}

.contacto__icon svg {
  width: 22px;
  height: 22px;
}

.contacto__form {
  padding: 2.4rem;

  border-radius: var(--radius);

  background: var(--white);

  box-shadow: var(--shadow);
}

.contacto__form-title {
  margin-bottom: 1.4rem;

  font-family: var(--font-head);
  font-size: 1.4rem;
  line-height: 1.25;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form__group {
  margin-bottom: 1.2rem;
}

.form__group label {
  display: block;

  margin-bottom: 0.4rem;

  font-size: 0.85rem;
  font-weight: 600;
}

.form__group input,
.form__group select,
.form__group textarea {
  display: block;

  width: 100%;

  padding: 0.85rem 1rem;

  border: 1.5px solid #e0dcd2;
  border-radius: 10px;

  background: var(--cream);
  color: var(--ink);

  font: inherit;
  line-height: 1.4;

  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.form__group textarea {
  min-height: 130px;
  resize: vertical;
}

.form__group input:hover,
.form__group select:hover,
.form__group textarea:hover {
  border-color: #c8c1b4;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;

  border-color: var(--green-500);

  background: var(--white);

  box-shadow: 0 0 0 3px rgba(74, 138, 95, 0.15);
}

.form__group.invalid input,
.form__group.invalid select,
.form__group.invalid textarea {
  border-color: var(--danger);
}

.form__error {
  display: none;

  margin-top: 0.3rem;

  color: var(--danger);

  font-size: 0.78rem;
  line-height: 1.4;
}

.form__group.invalid .form__error {
  display: block;
}

.form__group--check {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.form__group--check input {
  width: 18px;
  height: 18px;

  flex: 0 0 auto;

  padding: 0;

  accent-color: var(--green-700);
}

.form__group--check label {
  margin: 0;

  font-size: 0.85rem;
  font-weight: 400;
}

.btn__spinner {
  display: none;

  width: 18px;
  height: 18px;

  flex: 0 0 18px;

  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;

  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn.loading .btn__spinner {
  display: inline-block;
}

.form__success {
  display: none;

  margin-top: 1rem;
  padding: 0.9rem;

  border-radius: 10px;

  background: var(--success-bg);
  color: var(--success-text);

  font-size: 0.9rem;
  font-weight: 600;
}

.form__success.show {
  display: block;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.75);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.4rem;

  padding: 4rem 0 3rem;
}

.nav__logo--footer {
  margin-bottom: 1rem;
}

.footer__text {
  max-width: 300px;

  margin-bottom: 0;

  font-size: 0.9rem;
}

.footer__col h4 {
  margin-bottom: 1rem;

  color: var(--white);

  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.3;
}

.footer__col ul {
  display: grid;
  gap: 0.55rem;

  font-size: 0.9rem;
}

.footer__col a {
  transition: color var(--transition);
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__bottom {
  padding: 1.2rem 0;

  border-top: 1px solid rgba(255, 255, 255, 0.12);

  font-size: 0.82rem;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;

  flex-wrap: wrap;
}

.footer__legal {
  transition: color var(--transition);
}

.footer__legal:hover {
  color: var(--accent);
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;

  padding: 4rem 3rem;

  background: rgba(10, 20, 15, 0.92);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.35s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: min(86vw, 1400px);
  max-height: 76vh;

  border-radius: 12px;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);

  object-fit: contain;
}

.lightbox__caption {
  max-width: 80vw;

  color: rgba(255, 255, 255, 0.8);

  font-size: 0.95rem;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 1.4rem;
  right: 1.8rem;
  z-index: 3;

  display: grid;
  place-items: center;

  width: 48px;
  height: 48px;

  padding: 0;

  border: 0;

  background: transparent;
  color: var(--white);

  font-size: 2.6rem;
  line-height: 1;

  cursor: pointer;

  transition:
    color var(--transition),
    transform var(--transition);
}

.lightbox__close:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;

  display: grid;
  place-items: center;

  width: 52px;
  height: 52px;

  padding: 0;

  border: 0;

  background: rgba(20, 41, 31, 0.35);
  color: var(--white);

  font-size: 2.4rem;
  line-height: 1;

  cursor: pointer;

  border-radius: 50%;

  transform: translateY(-50%);

  transition:
    background-color var(--transition),
    color var(--transition);
}

.lightbox__arrow:hover {
  background: var(--accent);
  color: var(--green-900);
}

.lightbox__arrow--prev {
  left: 1.5rem;
}

.lightbox__arrow--next {
  right: 1.5rem;
}


/* =========================================================
   BACK TO TOP
   ========================================================= */

.backtop {
  position: fixed;
  right: 1.8rem;
  bottom: 1.8rem;
  z-index: 90;

  display: grid;
  place-items: center;

  width: 50px;
  height: 50px;

  border-radius: 50%;

  background: var(--accent);
  color: var(--green-900);

  box-shadow: var(--shadow);

  opacity: 0;
  transform: translateY(20px);

  pointer-events: none;

  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow),
    background-color var(--transition),
    color var(--transition);
}

.backtop svg {
  width: 22px;
  height: 22px;
}

.backtop.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.backtop:hover {
  background: var(--green-700);
  color: var(--white);
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 968px) {

  .servicios__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .empresa__grid,
  .serreria__grid,
  .contacto__grid {
    grid-template-columns: 1fr;
    gap: 2.6rem;
  }

  .empresa__media {
    max-width: 720px;
    margin-inline: auto;
  }

  .serreria__media {
    max-width: 720px;
    width: 100%;
    margin-inline: auto;
  }

  .contacto__form {
    max-width: 760px;
    width: 100%;
    margin-inline: auto;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__arrow {
    display: none;
  }

}


/* =========================================================
   RESPONSIVE — MÓVIL
   ========================================================= */

@media (max-width: 680px) {

  :root {
    --header-h: 68px;
  }

  .container {
    width: min(92%, 540px);
  }

  .section {
    padding: 70px 0;
  }

  /* Header */

  .nav__toggle {
    display: block;
  }

  .nav__menu {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 110;

    width: min(320px, 84vw);
    height: 100dvh;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 2rem;

    padding: 5rem 2rem 2rem;

    background: var(--green-900);

    transform: translateX(100%);

    transition:
      transform 0.4s ease,
      box-shadow 0.4s ease;

    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav__menu.open {
    transform: translateX(0);

    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
  }

  .nav__list {
    flex-direction: column;
    gap: 1.4rem;

    text-align: center;
  }

  .nav__link {
    font-size: 1.05rem;
  }

  /* Hero */

  .hero__slider {
    min-height: 600px;
  }

  .hero__content {
    padding-top: var(--header-h);
    padding-bottom: 5rem;
  }

  .hero__title {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .hero__text {
    font-size: 1rem;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .hero__dots {
    bottom: 1.5rem;
  }

  .hero__scroll {
    display: none;
  }

  /* Stats */

  .stats {
    padding: 2.8rem 0;
  }

  .stats__grid {
    gap: 2rem 1rem;
  }

  .stat__number,
  .stat__plus {
    font-size: 2.3rem;
  }

  /* Empresa */

  .empresa__badge {
    right: 0.5rem;
    bottom: -1rem;
  }

  /* Servicios */

  .servicios__grid,
  .galeria__grid,
  .form__row {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.5rem;
  }

  /* Serreria */

  .serreria__grid {
    gap: 2.2rem;
  }

  .serreria__nav {
    justify-content: center;
  }

  /* CTA */

  .cta-band {
    padding: 2.8rem 0;
  }

  .cta-band__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-band .btn {
    width: 100%;
  }

  /* Contacto */

  .contacto__grid {
    gap: 2.2rem;
  }

  .contacto__form {
    padding: 1.5rem;
  }

  .form__group--check {
    align-items: flex-start;
  }

  /* Footer */

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;

    padding: 3.2rem 0 2.5rem;
  }

  .footer__bottom-inner {
    flex-direction: column;
  }

  /* Lightbox */

  .lightbox {
    padding: 4rem 1rem 2rem;
  }

  .lightbox__img {
    max-width: 94vw;
    max-height: 72vh;
  }

  .lightbox__caption {
    max-width: 90vw;
  }

  .lightbox__close {
    top: 0.8rem;
    right: 0.8rem;
  }

  .lightbox__arrow {
    width: 44px;
    height: 44px;

    font-size: 1.9rem;
  }

  .lightbox__arrow--prev {
    left: 0.5rem;
  }

  .lightbox__arrow--next {
    right: 0.5rem;
  }

  /* Back to top */

  .backtop {
    right: 1rem;
    bottom: 1rem;

    width: 46px;
    height: 46px;
  }

}


/* =========================================================
   MÓVILES MUY PEQUEÑOS
   ========================================================= */

@media (max-width: 400px) {

  .container {
    width: 90%;
  }

  .nav__logo-text {
    font-size: 1.15rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat__number,
  .stat__plus {
    font-size: 2rem;
  }

}


/* =========================================================
   REDUCCIÓN DE MOVIMIENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hero__slide,
  .serreria__slider img,
  .card,
  .galeria__item img {
    transform: none !important;
  }

}
/* =========================================================
   GIL FORESTAL — COMPATIBILIDAD INDEX.HTML + MAIN.JS
   IMPORTANTE:
   El HTML actual utiliza esta nomenclatura:
   .brand, .nav__links, .nav__cta, .burger, .mobile-menu,
   .hero, .hero__bg, .hero__content, .h2, .eyebrow,
   .split, .grid, .svc-card, .stats, .stat, .cta,
   .footer__brand, .footer__links, .footer__contact, .to-top...
   Esta capa adapta el diseño sin modificar ninguna clase HTML.
   ========================================================= */

/* ---------- Variables adicionales ---------- */
:root {
  --green-950: #0c1711;
  --line: rgba(20, 41, 31, .12);
  --cream-dark: #eeece5;
  --header-h: 76px;
}

/* ---------- Header real del HTML ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  width: 100%;
  height: var(--header-h);
  background: transparent;
  transition:
    background-color .35s ease,
    box-shadow .35s ease,
    transform .35s ease,
    backdrop-filter .35s ease;
}

.header.is-scrolled {
  background: rgba(20, 41, 31, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 5px 28px rgba(0,0,0,.18);
}

.header.is-hidden {
  transform: translateY(-105%);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--white);
  flex: 0 0 auto;
  position: relative;
  z-index: 1201;
}

.brand__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--accent);
}

.brand__icon svg {
  width: 100%;
  height: 100%;
}

.brand__name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: .2px;
}

.brand__name small {
  margin-top: .25rem;
  font-family: var(--font-body);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.7rem);
  margin-left: auto;
}

.nav__links a {
  position: relative;
  padding: .35rem 0;
  color: rgba(255,255,255,.82);
  font-size: .86rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color .25s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--white);
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  width: 100%;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 42px;
  padding: .65rem 1.15rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--green-900);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .25s ease, background-color .25s ease, color .25s ease;
}

.nav__cta:hover {
  transform: translateY(-2px);
  background: #e6b556;
  color: var(--green-950);
}

.burger {
  display: none;
  position: relative;
  z-index: 1201;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 9px;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform .3s ease, opacity .3s ease;
}

.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 29px; }

.burger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.is-open span:nth-child(2) {
  opacity: 0;
}
.burger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Menú móvil ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .8rem;
  padding: 90px 8vw 40px;
  background: var(--green-950);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition:
    transform .4s cubic-bezier(.22,1,.36,1),
    opacity .3s ease,
    visibility .3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.mm-link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .45rem 0;
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1;
  transform: translateX(35px);
  opacity: 0;
  transition: transform .45s ease, opacity .45s ease, color .25s ease;
  transition-delay: calc(var(--i, 0) * .04s);
}

.mobile-menu.is-open .mm-link {
  transform: none;
  opacity: 1;
}

.mm-link:hover {
  color: var(--accent);
}

.mm-link small {
  color: var(--accent);
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.mm-foot {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.55);
  font-size: .75rem;
}

/* ---------- Preloader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: var(--green-950);
  color: var(--white);
  opacity: 1;
  visibility: visible;
  transition: opacity .65s ease, visibility .65s ease;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader > div {
  width: min(280px, 70vw);
  text-align: center;
}

.loader__mark {
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-size: 2.2rem;
  letter-spacing: 1px;
}

.loader__mark span {
  display: inline-block;
  animation: loaderLetter .7s both;
  animation-delay: calc(var(--i, 0) * .045s);
}

.loader__mark .g {
  color: var(--accent);
}

.loader__bar {
  height: 2px;
  overflow: hidden;
  background: rgba(255,255,255,.16);
}

.loader__bar i {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left;
  background: var(--accent);
  animation: loaderBar 1.8s ease both;
}

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

@keyframes loaderBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ---------- Cursor ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4000;
  pointer-events: none;
  border-radius: 50%;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(217,164,65,.75);
  transition: width .2s ease, height .2s ease, background-color .2s ease;
}

.cursor-ring.is-hover {
  width: 52px;
  height: 52px;
  background: rgba(217,164,65,.08);
}

/* ---------- Hero real ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  height: max(680px, 100svh);
  overflow: hidden;
  isolation: isolate;
  background: var(--green-900);
}

.hero__bg {
  position: absolute;
  inset: -8%;
  z-index: -2;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.08);
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7,18,11,.82) 0%, rgba(7,18,11,.54) 48%, rgba(7,18,11,.35) 100%),
    linear-gradient(180deg, rgba(7,18,11,.35) 0%, rgba(7,18,11,.2) 45%, rgba(7,18,11,.72) 100%);
}

.hero__content {
  min-height: 100svh;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 5rem;
  color: var(--white);
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.1rem;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero__tag .dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(217,164,65,.12);
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(3rem, 7.2vw, 6.4rem);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.035em;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .line > span {
  display: inline-block;
  animation: heroLineIn 1s cubic-bezier(.22,1,.36,1) both;
  animation-delay: calc(.1s + var(--i, 0) * .12s);
}

@keyframes heroLineIn {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: none; }
}

.accent {
  color: var(--accent);
  font-style: normal;
}

.hero__content > p {
  max-width: 650px;
  margin: 1.5rem 0 2rem;
  color: rgba(255,255,255,.82);
  font-size: clamp(.95rem, 1.5vw, 1.08rem);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.18);
}

.hero__meta div {
  color: rgba(255,255,255,.62);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__meta b {
  display: block;
  margin-bottom: .15rem;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.scroll-hint {
  position: absolute;
  right: 2.5rem;
  bottom: 2rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .7rem;
  color: rgba(255,255,255,.58);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-hint i {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollHint 1.8s ease-in-out infinite;
}

@keyframes scrollHint {
  0%,100% { transform: scaleY(.65); transform-origin: top; opacity: .5; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--green-900);
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeMove 32s linear infinite;
}

.marquee__track > span {
  display: inline-flex;
  align-items: center;
  gap: 1.3rem;
  padding: .9rem 1.3rem;
  white-space: nowrap;
  color: rgba(255,255,255,.7);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.marquee__track i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes marqueeMove {
  to { transform: translateX(-50%); }
}

/* ---------- Generic section helpers used by HTML ---------- */
.section--tight {
  padding-top: 0;
  padding-bottom: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: .8rem;
  color: var(--green-500);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 2.3px;
  line-height: 1.3;
  text-transform: uppercase;
}

.h2 {
  margin-bottom: 1.15rem;
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.lead {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.sec-head {
  margin-bottom: 3.2rem;
}

.sec-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
}

.sec-head--split > div {
  flex: 1 1 auto;
}

/* ---------- Reveal used by main.js ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity .8s cubic-bezier(.22,1,.36,1),
    transform .8s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--d, 0s);
}

[data-reveal="left"] {
  transform: translateX(-45px);
}

[data-reveal="right"] {
  transform: translateX(45px);
}

[data-reveal="zoom"] {
  transform: scale(.96);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Split / intro ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6.5rem);
}

.split__media {
  position: relative;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split__badge {
  position: absolute;
  right: -1.25rem;
  bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 180px;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: var(--accent);
  color: var(--green-900);
  box-shadow: var(--shadow);
  font-size: .72rem;
  line-height: 1.4;
}

.split__badge b {
  font-family: var(--font-head);
  font-size: 1rem;
}

.split__body p {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: .75rem;
  margin: 1.5rem 0 2rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 500;
}

.check-list svg {
  flex: 0 0 18px;
  margin-top: .2rem;
  color: var(--green-500);
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

/* ---------- Service cards used by index ---------- */
.svc-card {
  position: relative;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(
      280px circle at var(--mx, 50%) var(--my, 20%),
      rgba(74,138,95,.11),
      transparent 65%
    ),
    var(--cream);
  transition:
    transform .4s cubic-bezier(.22,1,.36,1),
    border-color .35s ease,
    box-shadow .35s ease,
    background-color .35s ease;
}

.svc-card:hover {
  transform: translateY(-7px);
  border-color: rgba(74,138,95,.42);
  background-color: var(--white);
  box-shadow: var(--shadow);
}

.svc-card__num {
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  color: rgba(20,41,31,.2);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
}

.svc-card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: auto;
  border-radius: 16px;
  background: var(--green-800);
  color: var(--accent);
  transition: transform .35s ease, background-color .35s ease, color .35s ease;
}

.svc-card:hover .svc-card__icon {
  transform: rotate(-5deg) scale(1.05);
  background: var(--accent);
  color: var(--green-900);
}

.svc-card h3 {
  max-width: 85%;
  margin: 2.5rem 0 .6rem;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}

.svc-card p {
  margin-bottom: 1.3rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}

.svc-card__link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: auto;
  color: var(--green-700);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.svc-card__link svg {
  transition: transform .25s ease;
}

.svc-card__link:hover {
  color: var(--green-900);
}

.svc-card__link:hover svg {
  transform: translateX(4px);
}

/* ---------- Stats used by index ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 3rem 0;
  background: var(--green-900);
  color: var(--white);
  border-radius: 0;
}

.stat {
  position: relative;
  padding: .5rem 1.5rem;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid rgba(255,255,255,.12);
}

.stat b {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-head);
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}

.stat > span {
  display: block;
  margin-top: .55rem;
  color: rgba(255,255,255,.65);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.stat .plus {
  display: inline;
  margin-left: .1rem;
}

/* ---------- CTA used by index ---------- */
.cta {
  position: relative;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
  border-radius: 24px;
  isolation: isolate;
  background: var(--green-900);
  color: var(--white);
}

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: .55;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10,25,16,.94), rgba(10,25,16,.54));
}

.cta .eyebrow {
  color: var(--accent);
}

.cta .h2 {
  max-width: 800px;
  margin-bottom: 1rem;
}

.cta > p {
  max-width: 650px;
  margin-bottom: 1.7rem;
  color: rgba(255,255,255,.76);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

/* ---------- Footer used by index ---------- */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--green-950);
  color: rgba(255,255,255,.7);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
  gap: 2.5rem;
  padding: 4.5rem 0 3rem;
}

.footer__brand > .brand {
  margin-bottom: 1rem;
}

.footer__brand > p {
  max-width: 320px;
  margin-bottom: 1.2rem;
  color: rgba(255,255,255,.58);
  font-size: .85rem;
}

.footer h4 {
  margin-bottom: 1rem;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.05rem;
}

.footer__links,
.footer__contact {
  display: grid;
  gap: .6rem;
  font-size: .82rem;
}

.footer__links a {
  transition: color .25s ease, transform .25s ease;
}

.footer__links a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
}

.footer__contact svg {
  flex: 0 0 16px;
  margin-top: .2rem;
  color: var(--accent);
}

.footer__contact a:hover {
  color: var(--accent);
}

.socials {
  display: flex;
  gap: .5rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  color: rgba(255,255,255,.7);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}

.socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--green-900);
  transform: translateY(-2px);
}

.footer__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .72rem;
}

.footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__bottom a:hover {
  color: var(--accent);
}

.footer__big {
  position: absolute;
  right: -2%;
  bottom: -1.4rem;
  pointer-events: none;
  color: rgba(255,255,255,.025);
  font-family: var(--font-head);
  font-size: clamp(5rem, 16vw, 13rem);
  font-weight: 700;
  line-height: .75;
  white-space: nowrap;
}

/* ---------- Back to top real selector ---------- */
.to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--green-900);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  cursor: pointer;
  transition: opacity .35s ease, transform .35s ease, background-color .25s ease, color .25s ease;
}

.to-top.is-show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  background: var(--green-700);
  color: var(--white);
}

/* ---------- Hero/content links and SVG consistency ---------- */
.hero .btn--ghost {
  border-color: rgba(255,255,255,.45);
}

.hero .btn--ghost:hover {
  border-color: rgba(255,255,255,.7);
}

/* ---------- Responsive real HTML ---------- */
@media (max-width: 1050px) {
  .nav__links {
    gap: 1rem;
  }

  .nav__links a {
    font-size: .8rem;
  }

  .nav__cta {
    padding-inline: .9rem;
    font-size: .72rem;
  }

  .split {
    gap: 3rem;
  }

  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  :root {
    --header-h: 70px;
  }

  .nav__links,
  .nav__cta {
    display: none;
  }

  .burger {
    display: block;
  }

  .hero {
    min-height: 700px;
  }

  .hero__content {
    min-height: 700px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 10vw, 5rem);
  }

  .split {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .split__media {
    max-width: 700px;
    width: 100%;
    margin-inline: auto;
  }

  .split__body {
    max-width: 700px;
    margin-inline: auto;
  }

  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2rem;
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 2rem;
  }

  .sec-head--split {
    align-items: flex-start;
    flex-direction: column;
    gap: .5rem;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .container {
    width: 90%;
  }

  .section {
    padding: 68px 0;
  }

  .hero {
    height: 760px;
    min-height: 760px;
  }

  .hero__content {
    min-height: 760px;
    padding-top: calc(var(--header-h) + 1rem);
    padding-bottom: 3.5rem;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }

  .hero__content > p {
    font-size: .92rem;
  }

  .hero__actions {
    width: 100%;
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__meta {
    width: 100%;
    gap: 1rem;
    justify-content: space-between;
  }

  .hero__meta div {
    font-size: .62rem;
  }

  .hero__meta b {
    font-size: 1.35rem;
  }

  .scroll-hint {
    display: none;
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .svc-card {
    min-height: 315px;
    padding: 1.6rem;
  }

  .svc-card h3 {
    margin-top: 2rem;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    padding: 2.4rem 0;
  }

  .stat {
    padding-inline: .7rem;
  }

  .stat:nth-child(odd) {
    border-left: 0;
  }

  .stat:nth-child(even) {
    border-left: 1px solid rgba(255,255,255,.12);
  }

  .stat:nth-child(n+3) {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 1.5rem;
  }

  .stat b {
    font-size: 2.2rem;
  }

  .stat > span {
    font-size: .62rem;
  }

  .split__badge {
    right: .6rem;
    bottom: .8rem;
  }

  .cta {
    min-height: 480px;
    padding: 2rem 1.4rem;
    border-radius: 18px;
  }

  .cta__actions {
    width: 100%;
    flex-direction: column;
  }

  .cta__actions .btn {
    width: 100%;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    padding-top: 3.3rem;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer__big {
    font-size: 24vw;
  }

  .to-top {
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
  }
}

/* ---------- Mobile / reduced motion ---------- */
@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader__mark span,
  .loader__bar i,
  .hero h1 .line > span,
  .marquee__track,
  .scroll-hint i {
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero__bg {
    transform: scale(1.03) !important;
  }
}

/* =========================================================
   GIL FORESTAL — PÀGINES INTERIORS (PAGE-HERO, FAQ, TAULES,
   GALERIA, FORM-CARD, ISO-BAND, TIMELINE, VALUE-CARD...)
   Afegir al FINAL de style.css
   ========================================================= */

/* ---------------------------------------------------------
   1. PAGE HERO (capçalera de pàgines interiors)
   --------------------------------------------------------- */

.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 5rem) 0 4.5rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--green-900);
  color: var(--white);
}

.page-hero__bg {
  position: absolute;
  inset: -5%;
  z-index: -2;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.05);
}

.page-hero::after {
  content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgb(7 18 11 / 28%) 0%, rgb(7 18 11 / 16%) 55%, rgba(7, 18, 11, .40) 100%), linear-gradient(180deg, rgb(7 18 11 / 14%) 0%, rgb(7 18 11 / 20%) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0 0 1rem;
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--white);
}

.page-hero .lead {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(.95rem, 1.4vw, 1.08rem);
  line-height: 1.7;
}

/* Breadcrumbs */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1.4rem;
  color: rgba(255, 255, 255, .62);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .4px;
}

.crumbs a {
  color: rgba(255, 255, 255, .78);
  transition: color .25s ease;
}

.crumbs a:hover {
  color: var(--accent);
}

.crumbs span {
  color: rgba(255, 255, 255, .45);
}

.crumbs span:last-child {
  color: var(--white);
}

/* Text amb gradient accent (per a <em class="text-grad">) */
.text-grad {
  background: linear-gradient(120deg, var(--accent) 0%, #f0c47a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-style: normal;
}

/* ---------------------------------------------------------
   2. SPLIT REVERSIBLE (imatge a la dreta)
   --------------------------------------------------------- */

.split--rev {
  direction: rtl;
}

.split--rev > * {
  direction: ltr;
}

@media (max-width: 800px) {
  .split--rev {
    direction: ltr;
  }
}

/* ---------------------------------------------------------
   3. VALUE CARD (empresa + calidad)
   --------------------------------------------------------- */

.value-card {
  position: relative;
  padding: 2rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition:
    transform .4s cubic-bezier(.22,1,.36,1),
    border-color .35s ease,
    box-shadow .35s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 138, 95, .42);
  box-shadow: var(--shadow);
}

.value-card svg {
  color: var(--green-500);
  margin-bottom: 1rem;
  transition: color .3s ease, transform .3s ease;
}

.value-card:hover svg {
  color: var(--accent);
  transform: scale(1.08) rotate(-4deg);
}

.value-card h3 {
  margin: 0 0 .55rem;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}

/* ---------------------------------------------------------
   4. TIMELINE (empresa)
   --------------------------------------------------------- */

.timeline {
  position: relative;
  display: grid;
  gap: 2.4rem;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: .6rem;
  bottom: .6rem;
  left: 5px;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    rgba(74, 138, 95, .35) 60%,
    rgba(74, 138, 95, 0) 100%
  );
}

.tl-item {
  position: relative;
  padding-left: 1.5rem;
}

.tl-item::before {
  content: "";
  position: absolute;
  top: .55rem;
  left: -2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(217, 164, 65, .18);
}

.tl-item__year {
  display: inline-block;
  margin-bottom: .5rem;
  padding: .25rem .7rem;
  border-radius: 999px;
  background: var(--green-800);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.tl-item h3 {
  margin: 0 0 .4rem;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.tl-item p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
}

/* ---------------------------------------------------------
   5. ISO BAND + ISO CARDS (calidad)
   --------------------------------------------------------- */

.iso-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.iso-card {
  position: relative;
  padding: 2.2rem 1.9rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--green-900), var(--green-800));
  color: var(--white);
  overflow: hidden;
  transition:
    transform .4s cubic-bezier(.22,1,.36,1),
    box-shadow .4s ease;
}

.iso-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,164,65,.18), transparent 65%);
  pointer-events: none;
}

.iso-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(20, 41, 31, .35);
}

.iso-card__code {
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--accent);
  text-transform: uppercase;
}

.iso-card__code i {
  font-style: normal;
  color: var(--white);
  font-size: 1.6rem;
}

.iso-card h3 {
  margin: 0 0 .7rem;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
}

.iso-card p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: .9rem;
  line-height: 1.7;
}

/* ---------------------------------------------------------
   6. FAQ / ACORDEÓ (servicios)
   --------------------------------------------------------- */

.faq {
  display: grid;
  gap: .9rem;
  max-width: 900px;
  margin-inline: auto;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.faq__item.is-open {
  border-color: rgba(74, 138, 95, .45);
  box-shadow: var(--shadow);
}

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: color .25s ease, background-color .25s ease;
}

.faq__q:hover {
  color: var(--green-700);
  background: rgba(74, 138, 95, .04);
}

.faq__q .fi {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--accent);
  transition: transform .35s ease, background-color .3s ease, color .3s ease;
}

.faq__item.is-open .faq__q .fi {
  transform: rotate(45deg);
  background: var(--accent);
  color: var(--green-900);
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.22,1,.36,1);
}

.faq__a p {
  margin: 0;
  padding: 0 1.5rem 1.4rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.75;
}

/* ---------------------------------------------------------
   7. SPEC TABLE (biomasa + serreria)
   --------------------------------------------------------- */

.spec-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 6px 26px rgba(20, 41, 31, .07);
  font-size: .9rem;
}

.spec-table thead {
  background: var(--green-900);
  color: var(--white);
}

.spec-table thead th {
  padding: 1rem 1.2rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.spec-table tbody td {
  padding: 1.1rem 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  vertical-align: middle;
  line-height: 1.5;
}

.spec-table tbody tr {
  transition: background-color .25s ease;
}

.spec-table tbody tr:hover {
  background: rgba(74, 138, 95, .05);
}

.spec-table tbody td:first-child {
  font-weight: 600;
  color: var(--green-800);
}

.tag {
  display: inline-block;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(74, 138, 95, .12);
  color: var(--green-700);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .3px;
  line-height: 1.4;
}

/* ---------------------------------------------------------
   8. GALLERY (serreria)
   --------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.gallery figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--green-900);
  cursor: zoom-in;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.22,1,.36,1);
}

.gallery figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 45%,
    rgba(7, 18, 11, .85) 100%
  );
  opacity: .9;
  transition: opacity .35s ease;
}

.gallery figcaption {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1rem;
  z-index: 2;
  color: var(--white);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .3px;
  line-height: 1.4;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

.gallery figure:hover img {
  transform: scale(1.08);
}

.gallery figure:hover::after {
  opacity: 1;
}

/* ---------------------------------------------------------
   9. CONTACT GRID + OFFICE CARDS + FORM CARD (contacto)
   --------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.office {
  position: relative;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition:
    transform .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
  overflow: hidden;
}

.office::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s ease;
}

.office:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 138, 95, .4);
  box-shadow: var(--shadow);
}

.office:hover::before {
  transform: scaleY(1);
}

.office h3 {
  margin: 0 0 .3rem;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-800);
  line-height: 1.25;
}

.office .role {
  margin-bottom: 1rem;
  color: var(--accent-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.office address {
  display: grid;
  gap: .65rem;
  font-style: normal;
  font-size: .86rem;
  color: var(--muted);
}

.office address span {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  line-height: 1.55;
}

.office address svg {
  flex: 0 0 15px;
  margin-top: .25rem;
  color: var(--green-500);
}

.office address a {
  color: var(--ink);
  transition: color .25s ease;
}

.office address a:hover {
  color: var(--green-700);
}

/* Form card */

.form-card {
  position: relative;
  padding: 2.4rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 20px 60px rgba(20, 41, 31, .1);
  border: 1px solid var(--line);
}

.form-card .h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  margin-bottom: .45rem;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .2px;
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  padding: .9rem 1rem;
  border: 1.5px solid #e0dcd2;
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
  line-height: 1.45;
  transition:
    border-color .25s ease,
    box-shadow .25s ease,
    background-color .25s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #c8c1b4;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(74, 138, 95, .15);
}

.form-status {
  margin: 1rem 0 0;
  min-height: 1.2em;
  color: var(--green-700);
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
  transition: color .25s ease;
}

.form-status[data-error="true"] {
  color: var(--danger);
}

/* ---------------------------------------------------------
   10. MAP EMBED (contacto)
   --------------------------------------------------------- */

.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--green-900);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(15%) contrast(1.03);
}

/* ---------------------------------------------------------
   11. RESPONSIVE — PÀGINES INTERIORS
   --------------------------------------------------------- */

@media (max-width: 968px) {

  .page-hero {
    min-height: 55vh;
    padding: calc(var(--header-h) + 3.5rem) 0 3.5rem;
  }

  .iso-band {
    grid-template-columns: 1fr 1fr;
  }

  .iso-card:last-child {
    grid-column: 1 / -1;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.6rem;
  }

  .spec-table {
    font-size: .85rem;
  }
}

@media (max-width: 680px) {

  .page-hero {
    min-height: 60vh;
    padding: calc(var(--header-h) + 3rem) 0 3rem;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .iso-band {
    grid-template-columns: 1fr;
  }

  .iso-card:last-child {
    grid-column: auto;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 1.4rem;
  }

  .tl-item {
    padding-left: 1.1rem;
  }

  .tl-item::before {
    left: -1.55rem;
    width: 10px;
    height: 10px;
  }

  .form-card {
    padding: 1.6rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .faq__q {
    padding: 1.1rem 1.2rem;
    font-size: .98rem;
  }

  .faq__a p {
    padding: 0 1.2rem 1.2rem;
  }

  .office {
    padding: 1.3rem 1.3rem;
  }

  .spec-table {
    min-width: 560px;
    font-size: .8rem;
  }

  .spec-table thead th,
  .spec-table tbody td {
    padding: .8rem .9rem;
  }
}

/* ---------------------------------------------------------
   12. REDUCED MOTION — pàgines interiors
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .value-card,
  .iso-card,
  .office,
  .gallery img,
  .faq__q .fi,
  .tl-item::before {
    transition: none !important;
    transform: none !important;
  }
}

/* ---------------------------------------------------------
   MODIFICACIONS MEVES
   --------------------------------------------------------- */

.brand__logo {
  width: auto;
  height: 42px;
  display: block;
}
