/* ═══════════════════════════════════════════
   LAS MARIMORENAS BCN — STYLES
   ═══════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────── */
/* ── COLORES REALES DE MARCA (valores CMYK convertidos a HEX) ── */
:root {
  --bg:           #FFFFFF;
  --green-dark:   #0d4a46;      /* Teal oscuro → hero bg, footer, secciones dark */
  --green-olive:  #0EAB6C;      /* Verde principal C:92 M:00 Y:37 K:33 → títulos, CTAs */
  --green-sage:   #4A9E97;      /* Teal medio → eyebrows, hover */
  --green-light:  #99FF59;      /* Verde lima C:40 M:00 Y:65 K:00 → tagline hero */
  --earth:        #E8614A;      /* Coral logo "Marimorenas" */
  --siena:        #C44A36;      /* Coral hover */
  --arena:        #F0F0F0;      /* Gris claro → separadores, fondos alternos */
  --white:        #FFFFFF;
  --text:         #404040;      /* Gris C:00 M:00 Y:00 K:75 → texto principal */
  --text-muted:   #404040;      /* Mismo gris para consistencia */

  /* Tipografías */
  /* Core Circus: fuente corporativa nav (instalar localmente) */
  --font-nav:    'Core Circus', 'DM Sans', system-ui, sans-serif;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  /* Lora = sustituto de Minion Variable Concept para body */
  --font-body:   'Lora', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;
  --font-hand:   'Caveat', cursive;

  /* Si tienes Core Circus en local, descomenta: */
  /* @font-face {
       font-family: 'Core Circus';
       src: url('fonts/CoreCircus.woff2') format('woff2');
     } */

  --nav-h:       72px;
  --container:   1160px;
  --radius:      4px;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

/* ── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Garantiza que el atributo hidden funcione aunque haya display:flex en el selector */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
  font-family: var(--font-sans);
  font-size: 1rem;
  width: 100%;
}

/* ── UTILITIES ──────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-sage);
  margin-bottom: 1.25rem;
}
.eyebrow--dark  { color: var(--green-dark); }
.eyebrow--light { color: var(--green-sage); }

.num {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--earth);
  display: inline-block;
  min-width: 2rem;
}

.caveat {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--earth);
}

.section-header { margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-intro {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--green-dark);
  max-width: 600px;
}
/* Palabras de colores en el subtítulo de servicios */
.color-green  { color: var(--green-dark); font-style: italic; }
.color-red    { color: #E8614A; font-style: italic; }
.color-yellow { color: #D4A017; font-style: italic; }
.color-pink   { color: #D45E8A; font-style: italic; }
.color-blue   { color: #4A7EC4; font-style: italic; }

/* ── TYPOGRAPHY ─────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.15;
  color: var(--green-dark);
}
/* H2 usa el verde corporativo exacto C:92 M:00 Y:37 K:33 */
h2 { color: var(--green-dark); }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 400; }
h4 { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }

em { font-style: italic; color: var(--earth); }

/* Body text usa Lora (Minion Variable Concept) */
p { color: var(--text); font-family: var(--font-body); }
p + p { margin-top: 1rem; }

/* ── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  font-family: var(--font-nav);   /* Core Circus — tipografía corporativa para botones */
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}
.btn--primary {
  background: var(--green-olive);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn--outline {
  background: transparent;
  color: var(--green-olive);
  border: 1.5px solid var(--green-olive);
}
.btn--outline:hover {
  background: var(--green-olive);
  color: var(--white);
}
.btn--white {
  background: var(--white);
  color: var(--green-dark);
}
.btn--white:hover {
  background: var(--bg);
  transform: translateY(-2px);
}
.btn--ghost-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}
.btn--ghost-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}
.btn--full { width: 100%; justify-content: center; }

/* card link */
.card-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--earth);
  letter-spacing: 0.04em;
  margin-top: 1.25rem;
  transition: gap 0.2s;
  border-bottom: 1px solid transparent;
}
.card-link:hover { border-bottom-color: var(--earth); }

/* ══════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(247,243,238,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Logo — imágenes reales */
.nav__logo {
  display: flex;
  align-items: center;
  line-height: 1;
}
.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s;
}
/* Sobre hero (fondo verde): logo blanco visible, color oculto */
.logo-img--white { display: block; }
.logo-img--color { display: none; }
/* Scrolled (fondo blanco): logo color visible, blanco oculto */
.nav.scrolled .logo-img--white { display: none; }
.nav.scrolled .logo-img--color { display: block; }
/* Elimina el fondo blanco del JPG del logo en color usando multiply */
.logo-img--color { mix-blend-mode: multiply; }

/* Nav links — Core Circus uppercase */
.nav__links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav__link {
  font-family: var(--font-nav);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  transition: color 0.3s;
}
.nav.scrolled .nav__link { color: var(--text); }
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; right: 50%;
  height: 1px;
  background: var(--earth);
  transition: left 0.3s var(--ease-out), right 0.3s var(--ease-out);
}
.nav__link:hover::after { left: 0; right: 0; }
.nav__link--cta {
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 2px;
  color: var(--white) !important;
  transition: all 0.3s;
}
.nav.scrolled .nav__link--cta {
  border-color: var(--green-olive);
  color: var(--green-olive) !important;
}
.nav__link--cta:hover {
  background: var(--white);
  color: var(--green-dark) !important;
}
.nav.scrolled .nav__link--cta:hover {
  background: var(--green-olive);
  color: var(--white) !important;
}
.nav__link--cta::after { display: none; }

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}
.nav.scrolled .nav__burger span { background: var(--text); }
.nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--bg);
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid var(--arena);
  transform: translateY(-8px);
  opacity: 0;
  transition: all 0.35s var(--ease-out);
}
.nav__mobile.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.mobile-link {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.1rem;
  color: var(--text);
  border-bottom: 1px solid var(--arena);
}
.mobile-link:last-child { border-bottom: none; }

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);  /* evita que el nav tape el eyebrow */
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-color: #0d4a46;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 0.1s linear;
  overflow: hidden;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Grain texture overlay */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.2) 50%,
    rgba(0,0,0,0.5) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 820px;
}
.hero__content .eyebrow {
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.5rem;
}

/* H1 hero = "LA NATURALEZA EN TU ESPACIO" — Core Circus, verde lima */
.hero__title {
  font-family: var(--font-nav);      /* Core Circus */
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-light);         /* #99FF59 — verde lima */
  line-height: 1.15;
  margin-bottom: 1.75rem;
}
.hero__sub {
  color: rgba(255,255,255,0.8);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
/* Botón principal del hero — verde lima C:40,M:00,Y:65,K:00 */
.hero .btn--primary {
  background: var(--green-light);  /* #99FF59 verde claro */
  color: var(--green-dark);        /* texto oscuro para contraste */
}
.hero .btn--primary:hover {
  background: #FFFFFF;
  color: var(--green-dark);
}
/* Botón ghost del hero — silueta en verde lima */
.hero .btn--ghost {
  border-color: var(--green-light);
  color: var(--white);
}
.hero .btn--ghost:hover {
  background: rgba(153,255,89,0.15);
  border-color: var(--green-light);
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ══════════════════════════════════════════════
   VALOR
══════════════════════════════════════════════ */
.valor {
  padding: 7rem 0;
  background: var(--white);
}
/* Layout 2 columnas: título izquierda, foto derecha */
.valor__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 5rem;
}
.valor__top-img {
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.valor__top-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.valor__title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.25;
  color: var(--green-dark);
  margin-bottom: 4rem;
  max-width: 700px;
}
.valor__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.valor__col .num {
  display: block;
  font-size: 2rem;
  color: var(--arena);
  margin-bottom: 1rem;
}
.valor__col p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════
   SERVICIOS
══════════════════════════════════════════════ */
.servicios {
  padding: 7rem 0;
  background: var(--bg);
}
/* Intro: texto izq + mosaico fotos der */
.servicios__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}
.servicios__fotos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 140px);
  gap: 6px;
}
.servicios__foto {
  overflow: hidden;
  border-radius: 3px;
}
.servicios__foto:first-child {
  grid-row: 1 / -1;   /* primera foto ocupa 2 filas */
}
.servicios__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.servicios__foto:hover img { transform: scale(1.05); }

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

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--arena);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(44,56,32,0.1);
  border-color: var(--green-sage);
}
.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--green-dark);
  margin-bottom: 1.5rem;
}
.service-card__icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--green-dark);
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════
   GALERÍA COMPLETA DE PROYECTOS
══════════════════════════════════════════════ */

/* Cabecera de cada categoría */
.proy-cat-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 3rem 0 1.5rem;
  grid-column: 1 / -1;
}
.proy-cat-header span {
  font-family: var(--font-nav);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-dark);
  white-space: nowrap;
}
.proy-cat-line {
  flex: 1;
  height: 1px;
  background: var(--arena);
}

/* Grid por categoría */
.proy-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Card de cada proyecto */
.proy-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--arena);
}
.proy-card__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.55s var(--ease-out);
}
.proy-card:hover .proy-card__img { transform: scale(1.07); }

.proy-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,74,70,0.88) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.proy-card:hover .proy-card__overlay { opacity: 1; }

.proy-card__cat {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 0.3rem;
}
.proy-card__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
  margin: 0;
}
.proy-card__count {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.3rem;
}

/* ══════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13,74,70,0.96);
  cursor: pointer;
}
.lb-img-wrap {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img-wrap img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 2px;
  transition: opacity 0.3s;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  z-index: 2;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
  padding: 0.5rem;
}
.lb-close { top: 1.5rem; right: 1.5rem; font-size: 1.4rem; opacity: 0.7; }
.lb-close:hover { opacity: 1; transform: scale(1.1); }
.lb-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 3rem; opacity: 0.7; }
.lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 3rem; opacity: 0.7; }
.lb-prev:hover { opacity: 1; transform: translateY(-50%) translateX(-4px); }
.lb-next:hover { opacity: 1; transform: translateY(-50%) translateX(4px); }

.lb-info {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
}
.lb-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--white);
  opacity: 0.9;
}
.lb-counter {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
}

/* ══════════════════════════════════════════════
   IDENTIDAD (DARK)
══════════════════════════════════════════════ */
.identidad {
  position: relative;
  background: #0d4a46;   /* Teal muy oscuro de marca */
  padding: 8rem 0;
  overflow: hidden;
}
.identidad__plantas {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 42%;
  max-width: 420px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  color: #fff;
}
.identidad__plantas svg { display: block; width: 100%; height: auto; }

.identidad__texture {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 60px,
      rgba(255,255,255,0.015) 60px,
      rgba(255,255,255,0.015) 61px
    );
  pointer-events: none;
}
.identidad__inner {
  position: relative;
  z-index: 1;
}
.identidad__title {
  color: var(--white);
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  margin: 2rem 0 3rem;
}
.identidad__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 820px;
  margin-bottom: 4rem;
}
.identidad__cols p {
  color: rgba(247,243,238,0.7);
  font-size: 1rem;
  line-height: 1.8;
}
.identidad__cols p + p { margin-top: 1rem; }
.identidad__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 300;
  color: var(--green-sage);
  line-height: 1.4;
  border-left: 2px solid var(--earth);
  padding-left: 2rem;
  max-width: 540px;
}

/* ══════════════════════════════════════════════
   PROYECTOS
══════════════════════════════════════════════ */
.proyectos {
  padding: 7rem 0;
  background: var(--bg);
}
.proyectos__filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter {
  padding: 0.45rem 1.25rem;
  border-radius: 100px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border: 1px solid var(--arena);
  transition: all 0.25s;
}
.filter:hover { border-color: var(--green-olive); color: var(--green-olive); }
.filter.active {
  background: var(--green-olive);
  color: var(--white);
  border-color: var(--green-olive);
}

/* Contenedor de categorías — layout de bloque para que cada proy-cat-grid sea full-width */
.proyectos__grid {
  display: block;
}
/* H2 de proyectos en el tono oscuro corporativo */
.proyectos .section-header h2 {
  color: var(--green-dark);
}
.proy-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.proy-item--tall  { grid-row: span 2; }
.proy-item--wide  { grid-column: span 2; }

.proy-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-out);
}
.proy-item:hover .proy-img { transform: scale(1.06); }

.proy-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,56,32,0.85) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.proy-item:hover .proy-overlay { opacity: 1; }
.proy-type {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-sage);
  margin-bottom: 0.4rem;
}
.proy-overlay h3 {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 400;
}

.proy-item.hidden {
  display: none;
}

.proyectos__cta {
  text-align: center;
  margin-top: 3.5rem;
}

/* ══════════════════════════════════════════════
   BENEFICIOS
══════════════════════════════════════════════ */
.beneficios {
  background: var(--white);
  padding: 7rem 0;
}
.beneficios__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.beneficios__text h2 { margin-bottom: 2rem; }

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.benefit-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.arrow {
  color: var(--earth);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.benefit-list strong {
  display: block;
  color: var(--green-dark);
  font-weight: 500;
  margin-bottom: 0.05rem;  /* interlineado más cercano con el texto siguiente */
}
.benefit-list p, .benefit-list div { font-size: 0.92rem; color: var(--text-muted); }
.benefit-desc {
  display: block;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  line-height: 1.55;
}

.benefit-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 1.5rem;
  border-top: 1px solid var(--arena);
}

.beneficios__img {
  position: relative;
}
.beneficios__img-bg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.beneficios__img-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 60%;
  height: 50%;
  border: 2px solid var(--arena);
  border-radius: 2px;
  z-index: -1;
}

/* ══════════════════════════════════════════════
   TESTIMONIOS
══════════════════════════════════════════════ */
.testimonios {
  padding: 7rem 0;
  background: #F5F9F8;   /* Teal muy claro, casi blanco */
  text-align: center;
}
.testimonios__track {
  position: relative;
  min-height: 200px;
  max-width: 720px;
  margin: 3rem auto 2rem;
}
.testi {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  pointer-events: none;
}
.testi--active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}
.testi blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-style: italic;
  font-weight: 300;
  color: var(--green-dark);
  line-height: 1.55;
  margin-bottom: 1.75rem;
}
.testi cite {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
  letter-spacing: 0.04em;
}
.testimonios__dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}
.tdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-sage);
  opacity: 0.35;
  transition: opacity 0.3s, transform 0.3s;
}
.tdot--active { opacity: 1; transform: scale(1.3); }

/* ══════════════════════════════════════════════
   CTA FINAL
══════════════════════════════════════════════ */
.cta-final {
  position: relative;
  padding: 9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.cta-final__bg {
  position: absolute;
  inset: 0;
  background-color: #0d4a46;
  background-size: cover;
  background-position: center;
}
.cta-final__overlay {
  position: absolute;
  inset: 0;
  background: rgba(44,56,32,0.6);
}
.cta-final__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.cta-final__content h2 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  margin-bottom: 1.25rem;
}
.cta-final__content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}
.cta-final__btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.cta-final__note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════════
   NOSOTRAS
══════════════════════════════════════════════ */
.nosotras {
  background: var(--bg);
  padding: 7rem 0;
}
.nosotras__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.nosotras__img {
  position: relative;
  height: 580px;
}
.nosotras__img-bg {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background-color: #1B706A;
  background-size: cover;
  background-position: center;
}
.nosotras__olivia {
  position: absolute;
  bottom: 1.5rem;
  right: -1.5rem;
  width: 48%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  border: 3px solid var(--white);
  z-index: 2;
}
.nosotras__img-label {
  position: absolute;
  bottom: -1rem;
  left: 2rem;
  background: var(--white);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.nosotras__img-label .caveat { font-size: 1.3rem; }

.nosotras__text h2 { margin-bottom: 1.5rem; }
.nosotras__text p  { font-size: 0.97rem; line-height: 1.8; }

.nosotras__valores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--arena);
}
.valor-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.valor-item .num { font-size: 0.8rem; color: var(--earth); }

/* ══════════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════════ */
.contacto {
  background: var(--white);
  padding: 7rem 0;
}
.contacto__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6rem;
  align-items: start;
}
.contacto__intro {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 1rem 0 2.5rem;
}

/* Form */
.form { display: flex; flex-direction: column; gap: 1.25rem; }

.field {
  position: relative;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 1rem 0 0.6rem;
  border: none;
  border-bottom: 1.5px solid var(--arena);
  background: transparent;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-bottom-color: var(--green-olive); }
.field textarea { resize: vertical; min-height: 100px; }

.field label {
  position: absolute;
  top: 1rem;
  left: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.25s var(--ease-out);
  transform-origin: left top;
}
.field input:not(:placeholder-shown) ~ label,
.field input:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label {
  transform: translateY(-100%) scale(0.75);
  color: var(--green-dark);
}
.field--select label {
  transform: translateY(-100%) scale(0.75);
  color: var(--green-dark);
}
.field--select select option { color: var(--text); }

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -0.25rem;
}

/* Form success */
.form-success {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(138,155,110,0.1), rgba(92,107,58,0.1));
  border-radius: var(--radius);
  border: 1px solid var(--green-sage);
}
.form-success .caveat { display: block; font-size: 2rem; margin-bottom: 0.5rem; }
.form-success p { font-size: 0.95rem; }

/* Contact info */
.contacto__info {
  padding-top: 5.5rem;
}
.ci-block {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--arena);
}
.ci-block:last-child { border-bottom: none; }
.ci-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.ci-link {
  font-size: 1rem;
  color: var(--green-dark);
  transition: color 0.2s;
}
.ci-link:hover { color: var(--earth); }
.ci-block span { font-size: 0.97rem; color: var(--text); line-height: 1.7; }

.socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--arena);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all 0.3s;
}
.social svg { width: 18px; height: 18px; }
.social:hover {
  border-color: var(--green-olive);
  color: var(--green-olive);
  transform: translateY(-2px);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding: 0.85rem 1.5rem;
  background: #25D366;
  color: var(--white);
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.3s;
}
.whatsapp-btn svg { width: 20px; height: 20px; }
.whatsapp-btn:hover { background: #1da851; transform: translateY(-2px); }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  background: #0d4a46;   /* Teal oscuro real de marca */
  color: var(--white);
  padding: 5rem 0 0;
}
.footer__top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
}
.footer-logo { display: inline-block; }
.footer-logo-img { height: 40px; width: auto; object-fit: contain; }
.footer__claim {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(247,243,238,0.6);
  line-height: 1.55;
  margin-top: 1rem;
}
.footer__city {
  font-size: 0.8rem;
  color: rgba(247,243,238,0.35);
  margin-top: 0.5rem;
  letter-spacing: 0.08em;
}
.footer__nav h4 { color: rgba(247,243,238,0.4); }
.footer__nav ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer__nav a {
  font-size: 0.9rem;
  color: rgba(247,243,238,0.65);
  transition: color 0.25s;
}
.footer__nav a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(247,243,238,0.35);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__bottom a {
  color: rgba(247,243,238,0.35);
  transition: color 0.2s;
  margin-left: 1.5rem;
}
.footer__bottom a:hover { color: rgba(247,243,238,0.65); }

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all 0.3s var(--ease-out);
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }

/* ── BOTÓN VOLVER ARRIBA ─────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 5rem;
  right: 1.75rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--green-olive); }
.back-to-top svg { width: 18px; height: 18px; }

/* ══════════════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════════════ */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-aos].aos-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-aos][data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos][data-aos-delay="120"] { transition-delay: 0.12s; }
[data-aos][data-aos-delay="150"] { transition-delay: 0.15s; }
[data-aos][data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos][data-aos-delay="240"] { transition-delay: 0.24s; }
[data-aos][data-aos-delay="250"] { transition-delay: 0.25s; }
[data-aos][data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-right"].aos-visible { transform: translateX(0); }
[data-aos="fade-left"]  { transform: translateX(30px); }
[data-aos="fade-left"].aos-visible  { transform: translateX(0); }

/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .servicios__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer__brand { grid-column: span 2; }
  .valor__cols { grid-template-columns: 1fr; gap: 2rem; max-width: 540px; }
  .beneficios__inner,
  .nosotras__inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .nosotras__img { height: 440px; }
  .beneficios__img { height: auto; }
  .contacto__inner { grid-template-columns: 1fr; gap: 3rem; }
  .contacto__info { padding-top: 0; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero__ctas { flex-direction: column; align-items: center; }

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

  .proyectos__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .proy-item--tall  { grid-row: span 1; }
  .proy-item--wide  { grid-column: span 1; }
  .proy-overlay { opacity: 1; }

  .identidad__cols { grid-template-columns: 1fr; gap: 1.5rem; }

  .nosotras__inner { grid-template-columns: 1fr; }
  .nosotras__img { height: 320px; order: -1; }

  .beneficios__inner { grid-template-columns: 1fr; }
  .beneficios__img { height: auto; }
  .beneficios__img-accent { display: none; }

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

  .footer__top { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 1; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__bottom a { margin-left: 0.75rem; }

  .cta-final__btns { flex-direction: column; align-items: center; }

  .wa-float { bottom: 1.25rem; right: 1.25rem; width: 46px; height: 46px; }
  .wa-float svg { width: 22px; height: 22px; }
}

@media (max-width: 480px) {
  .nosotras__valores { grid-template-columns: 1fr; }
  .testimonios__track { min-height: 260px; }
}
