/* ============================================================
   Biobras — Hoja de estilos global
   Compartida por: home.html, areasdenegocio.html,
                   proyectos.html, contact.html
   ============================================================ */

/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0f0f0f;
  --surface:      #1a1a1a;
  --surface2:     #222;
  --green:        #006838;
  --green-light:  #007a42;
  --white:        #fff;
  --gray:         #888;
  --gray2:        #555;
  --border:       rgb(255 255 255 / 8%);
  --nav-bg:       rgb(15 15 15 / 90%);

  /* Texto sobre fondo plano (nav, footer, paneles) — SÍ cambia con el modo claro/oscuro.
     --white se deja intacto porque se usa sobre fotos y botones verdes,
     que deben seguir siendo blancos sin importar el modo. */
  --fg:           #fff;
  --fg-rgb:       255 255 255;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:         #ffffff;
    --surface:    #f4f4f2;
    --surface2:   #eaeae7;
    --border:     rgb(0 0 0 / 10%);
    --gray:       #6b6b6b;
    --gray2:      #4a4a4a;
    --nav-bg:     rgb(255 255 255 / 90%);
    --fg:         #16160f;
    --fg-rgb:     22 22 15;
  }
}

html { scroll-behavior: smooth; touch-action: pan-x pan-y; }
body { touch-action: pan-x pan-y; }

/* Logo: versión oscura (hoja verde) por defecto, versión clara (marca gris) en modo claro */
.logo-light-mode { display: none; }
@media (prefers-color-scheme: light) {
  .logo-dark-mode { display: none; }
  .logo-light-mode { display: block; }
}

/* ── PRELOADER ── */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
.preloader.hidden {
  opacity: 0; visibility: hidden;
}
.preloader-inner {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.preloader-logo img {
  width: 280px; height: 150px; object-fit: contain;
  animation: preloader-pulse 1.2s ease-in-out infinite;
}
.preloader-name {
  font-size: 2.0rem; font-weight: 800; letter-spacing: 6px;
  color: var(--fg); text-transform: uppercase;
}
.preloader-slogan {
  font-size: .9rem; letter-spacing: 2px; color: var(--green);
  text-transform: uppercase; text-align: center;
}
.preloader-bar {
  width: 120px; height: 1px; background: rgb(var(--fg-rgb) / 10%);
  margin-top: .5rem; overflow: hidden;
}
.preloader-fill {
  height: 100%; width: 0; background: var(--green);
  animation: preloader-load 1.8s ease forwards;
}
@keyframes preloader-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(.92); }
}
@keyframes preloader-load {
  0%   { width: 0; }
  100% { width: 100%; }
}

body {
  font-family: Arial, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0 5%;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  margin-left: -2%;
}

.logo-icon {
  height: 62px; width: auto;
  display: flex; align-items: center;
}
.logo-img { height: 75px; width: auto; object-fit: contain; }

.logo-light-mode { display: none; }
@media (prefers-color-scheme: light) {
  .logo-dark-mode  { display: none; }
  .logo-light-mode { display: inline-block; }
}



.logo-text-block {
  display: flex; flex-direction: column; justify-content: center; gap: 7px;
}
.logo-name {
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: 3px; color: var(--fg);
  line-height: 1;
}
.logo-tagline {
  font-size: .52rem; font-weight: 400;
  letter-spacing: 2.5px; color: var(--green);
  text-transform: uppercase; line-height: 1;
}

.nav-links { display: flex; gap: 2.5rem; list-style: none; }

.nav-links a {
  color: rgb(var(--fg-rgb) / 65%);
  text-decoration: none;
  font-size: .78rem; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--green); }

/* ── FOOTER ── */
footer {
  padding: 4rem 5% 2rem;
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
  background: var(--bg);
}
footer p { font-size: .75rem; color: var(--gray); }
.footer-keywords {
  font-size: .65rem; letter-spacing: 2px; text-transform: uppercase;
  color: rgb(var(--fg-rgb) / 25%);
}

.footer-top {
  display: flex; justify-content: space-between; gap: 3rem;
  flex-wrap: wrap; padding-bottom: 2.5rem;
  max-width: 1100px; margin: 0 auto;
}
.footer-brand { flex: 1 1 280px; max-width: 340px; }
.footer-logo-row { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.footer-logo-row .logo-img { height: 34px; }
.footer-logo {
  font-size: .8rem; font-weight: 700;
  letter-spacing: 3px; color: var(--fg);
}
.footer-desc { font-size: .8rem; color: var(--gray); line-height: 1.6; }

.footer-col-title {
  display: block; font-size: .65rem; letter-spacing: 2px;
  text-transform: uppercase; color: rgb(var(--fg-rgb) / 35%);
  margin-bottom: 1.1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links li, .footer-links a {
  font-size: .82rem; color: var(--gray); text-decoration: none;
}
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: var(--green-light); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  padding-top: 1.75rem; border-top: 1px solid var(--border);
  max-width: 1100px; margin: 0 auto;
}
.footer-bottom p { font-size: .75rem; color: var(--gray); }

@media (max-width: 640px) {
  .footer-top { flex-direction: column; gap: 2.2rem; }
  .footer-brand { flex: none; max-width: 100%; }
  .footer-col { flex: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .6rem; }
}

/* ── SECTION LABEL ── */
.section-label {
  font-size: .68rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}

.section-label::after {
  content: ''; width: 30px; height: 1px; background: var(--green);
}

/* ── PAGE HERO (interior pages) ── */
.page-hero {
  padding: 140px 5% 80px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -2px;
}
.page-hero h1 em { color: var(--green); font-style: normal; }

.page-hero p {
  font-size: .95rem; color: rgb(var(--fg-rgb) / 50%);
  max-width: 480px; line-height: 1.75; margin-top: 1.5rem;
}

/* ── BUTTONS ── */
.btn-orange {
  background: var(--green); color: var(--white);
  padding: 22px 48px;
  font-size: 1.05rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .6rem;
  transition: background .2s; white-space: nowrap;
  font-family: Arial, "Helvetica Neue", sans-serif; border: none; cursor: pointer;
}
.btn-orange:hover { background: var(--green-light); }

.btn-outline {
  border: 1px solid rgb(255 255 255 / 30%); color: var(--white);
  padding: 14px 28px;
  font-size: .78rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .6rem;
  transition: all .2s;
}
.btn-outline:hover { border-color: var(--white); }

.ver-proyecto {
  display: inline-flex; align-items: center; gap: .8rem;
  font-size: .75rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--green); text-decoration: none;
  border-bottom: 1px solid var(--green); padding-bottom: .3rem;
  transition: gap .2s; width: fit-content;
}
.ver-proyecto:hover { gap: 1.2rem; }

/* ── CTA ROW ── */
.cta-row {
  padding: 6rem 5%;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: flex-start;
  gap: 3rem; flex-wrap: wrap;
}

.cta-row .btn-orange { margin-left: auto; }

.cta-row h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; letter-spacing: -1px;
  max-width: 500px; line-height: 1.15;
}

/* ════════════════════════════════════════
   HOME — HERO
   ════════════════════════════════════════ */
.hero {
  height: 100vh; min-height: 640px;
  position: sticky; top: 0;
  display: flex; align-items: flex-end;
  padding: 0 5% 6rem; overflow: hidden;
  z-index: 0;
}

.home-content {
  position: relative;
  z-index: 1;
  background: var(--bg);
}

/* Real background photo */
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  z-index: 0;
}

/* Gradient overlay: heavy on left for text legibility, lighter on right */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right,
      rgba(8,8,8,.75) 0%,
      rgba(8,8,8,.55) 35%,
      rgba(8,8,8,.20) 60%,
      rgba(8,8,8,.05) 100%
    ),
    linear-gradient(to top,
      rgba(8,8,8,.50) 0%,
      transparent 45%
    );
}

.hero-content { position: relative; z-index: 2; max-width: 580px; }

.hero-num {
  font-size: .75rem; color: var(--green);
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .8rem;
}
.hero-num::before { content: ''; width: 30px; height: 1px; background: var(--green); }

.hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -1px; margin-bottom: 1.4rem;
  color: var(--white);
}
.hero h1 em { color: var(--green); font-style: normal; }

.hero-sub {
  font-size: .95rem; color: rgb(255 255 255 / 55%);
  line-height: 1.75; max-width: 380px; margin-bottom: 2.5rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-wave {
  position: absolute; bottom: 2rem; right: 5%; z-index: 2;
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 20%);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.hero-wave svg { width: 24px; height: 24px; fill: rgb(255 255 255 / 70%); }

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .65rem; letter-spacing: 2px; text-transform: uppercase;
  color: rgb(255 255 255 / 35%);
}
.hero-scroll::after { content: ''; width: 1px; height: 40px; background: rgb(255 255 255 / 20%); }

/* ── HOME: ÁREAS DE NEGOCIO ── */
.areas { padding: 6rem 5% 0; }

.areas-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border-top: 1px solid var(--border);
}

.area-item {
  padding: 2rem; border-right: 1px solid var(--border);
  display: flex; align-items: flex-start;
}
.area-item:first-child { padding-left: 0; }
.area-item:last-child { border-right: none; }

/* On desktop, text takes full width and thumb is hidden */
.area-text { flex: 1; }
.area-thumb { display: none; }

.area-num { font-size: .7rem; color: var(--green); font-weight: 600; letter-spacing: 1px; margin-bottom: .8rem; }
.area-title { font-size: .85rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: .8rem; }
.area-desc { font-size: .82rem; color: rgb(var(--fg-rgb) / 45%); line-height: 1.6; }

/* ── ÁREAS DE NEGOCIO ── */
.areas-negocio {
  padding: 2rem 5% 1rem;
}
.areas-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.areas-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.areas-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.area-col {
  padding: 1.8rem 2rem 1.8rem 0;
  display: block; text-decoration: none; color: inherit;
  transition: opacity .2s;
}
.area-col:hover { opacity: .8; }
.area-col:hover h3 { color: var(--green); }
.area-col .area-num {
  font-size: .7rem;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 1px;
  display: block;
  margin-bottom: .6rem;
}
.area-col-line {
  width: 1.5rem;
  height: 2px;
  background: var(--border);
  margin-bottom: 1rem;
}
.area-col h3 {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: .6rem;
  color: var(--fg);
}
.area-col p {
  font-size: .8rem;
  color: rgb(var(--fg-rgb) / 45%);
  line-height: 1.6;
}
.area-col-img { display: none; }
.area-arrow { display: none; }

.contact-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.contact-plus { display: none; }

/* ── HOME: PHOTO GRID ── */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; height: 300px; margin-left: 5%; margin-right: 5%; margin-top: 0; }

.photo-cell {
  background: var(--surface); position: relative; overflow: hidden; cursor: pointer;
}
.photo-cell img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: grayscale(100%);
  transition: transform .5s ease, filter .5s ease;
}
.photo-cell:hover img { transform: scale(1.05); filter: grayscale(0%); }
.photo-cell:hover .photo-overlay { opacity: 1; }

.photo-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,104,56,.15) 100%);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: flex-end; padding: 1rem;
}
.photo-overlay span { font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--white); }

/* Keep fallback gradient classes for project cards in proyectos.html */
.pc1 { background: linear-gradient(135deg, #1a1a14, #2a2416); }
.pc2 { background: linear-gradient(135deg, #141414, #1e1e1e); }
.pc3 { background: linear-gradient(135deg, #1a1410, #242018); }
.pc4 { background: linear-gradient(135deg, #0f1214, #181c1e); }
.pc5 { background: linear-gradient(145deg, #141a10, #1c2414); }
.pc6 { background: linear-gradient(145deg, #1a1214, #241820); }

/* ── HOME: PROYECTO DESTACADO ── */
.proyecto {
  position: relative;
  min-height: 60vh;
  overflow: hidden;
  margin-left: 5%;
  margin-right: 5%;
  margin-top: 4rem;
  display: flex;
  align-items: center;
}

.proyecto-img {
  position: absolute; inset: 0;
}

.proyecto-slides {
  position: absolute; inset: 0;
}

.pslide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  animation: slowZoom 3.5s ease-out forwards;
}

.pslide.active {
  opacity: 1;
}

@keyframes slowZoom {
  from { transform: scale(2); }
  to   { transform: scale(1); }
}

.proyecto-img-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 35%, transparent 65%);
}

.proyecto-text {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 3rem 5%;
  max-width: 40%;
}
.proyecto-text .section-label { margin-bottom: 1.2rem; color: var(--green); }

.proyecto-text h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem); font-weight: 800;
  letter-spacing: -.5px; line-height: 1.15; margin-bottom: 1rem;
  color: #fff; text-transform: uppercase;
}
.proyecto-text .loc { font-size: .8rem; color: rgb(255 255 255 / 65%); letter-spacing: 1px; margin-bottom: 1.4rem; }
.proyecto-text .ver-proyecto { color: var(--green); border-bottom-color: var(--green); }

/* ── HOME: VALORES ── */
.valores {
  padding: 4rem 5%; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem;
}
.valor { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .8rem; }
.valor-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.valor-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--fg); }
.valor h4 { font-size: .8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.valor p { font-size: .8rem; color: rgb(var(--fg-rgb) / 45%); line-height: 1.6; }

/* ── HOME: CONTACT FORM ── */
.contact-section {
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 4rem; padding: 4rem 5%;
  align-items: center;
}

.contact-info {
  display: flex; flex-direction: column; justify-content: center;
  order: 1;
}
.contact-info h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -1px; margin-bottom: .8rem;
}
.contact-desc {
  font-size: .85rem; color: rgb(var(--fg-rgb) / 50%);
  line-height: 1.6; margin-bottom: 1.8rem; max-width: 340px;
}
.contact-items { display: flex; flex-direction: column; gap: .9rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; }
.contact-item-icon {
  width: 36px; height: 36px; border-radius: 7px;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; color: var(--green);
  flex-shrink: 0;
}
.contact-item-label {
  font-size: .58rem; letter-spacing: 2px; color: rgb(var(--fg-rgb) / 35%);
  text-transform: uppercase; margin-bottom: .15rem;
}
.contact-item-value { font-size: .85rem; color: var(--fg); }
.contact-link {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.contact-link:hover {
  color: var(--green-light); border-bottom-color: var(--green-light);
}

.contact-map {
  order: 2;
  display: flex; flex-direction: column;
}
.contact-map-wrap {
  border-radius: 14px; overflow: hidden;
  position: relative; height: 380px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.contact-map-wrap iframe {
  width: 100%; height: 100%; border: 0; display: block;
}
.contact-map-btn {
  position: absolute; top: 12px; left: 12px; z-index: 10;
  background: #fff; color: #222;
  font-size: .72rem; font-weight: 600; letter-spacing: .5px;
  padding: 7px 12px; border-radius: 6px;
  text-decoration: none; display: flex; align-items: center; gap: .4rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.contact-map-btn svg { width: 13px; height: 13px; }

.form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
}
.form-field { background: var(--bg); padding: 1rem 1.2rem; }

.form-field label {
  display: block; font-size: .62rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gray2); margin-bottom: .5rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; background: transparent; border: none; outline: none;
  font-family: Arial, "Helvetica Neue", sans-serif; font-size: .85rem; color: var(--fg);
  padding: .4rem 0; border-bottom: 1px solid transparent; transition: border-color .2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-bottom-color: var(--green); }

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--gray2); }
.form-field select { color: var(--gray2); appearance: none; cursor: pointer; }
.form-field select option { background: var(--surface); color: var(--fg); }
.form-wide { grid-column: 1 / -1; }
.form-field textarea { height: 80px; resize: none; }
.form-submit { background: var(--border); padding: 1px; }

.form-submit-inner {
  background: var(--bg); display: flex; align-items: center;
  justify-content: flex-end; padding: 1rem 1.2rem;
}

.btn-submit {
  background: var(--green); color: var(--white); border: none;
  padding: 12px 28px; font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: .75rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; display: inline-flex; align-items: center; gap: .6rem;
  transition: background .2s;
}
.btn-submit:hover { background: var(--green-light); }
.btn-submit:disabled { background: var(--gray2); cursor: not-allowed; }

#success-msg {
  display: none; font-size: .78rem; color: var(--green);
  letter-spacing: 1px; margin-top: 1rem;
}

/* ════════════════════════════════════════
   ÁREAS DE NEGOCIO — SERVICE ROWS
   ════════════════════════════════════════ */
.services { padding: 0; }

.service-row {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 420px; border-bottom: 1px solid var(--border);
}
.service-row:nth-child(even) .service-info  { order: 2; }
.service-row:nth-child(even) .service-visual { order: 1; }

.service-info {
  padding: 4rem 5%; display: flex; flex-direction: column;
  justify-content: center; border-right: 1px solid var(--border);
}

.service-row:nth-child(even) .service-info {
  border-right: none; border-left: 1px solid var(--border);
}

.service-num {
  font-size: .7rem; color: var(--green); font-weight: 600;
  letter-spacing: 2px; margin-bottom: 1.2rem;
}

.service-info h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem); font-weight: 800;
  letter-spacing: -1px; margin-bottom: 1rem; line-height: 1.1;
}

.service-info p {
  font-size: .9rem; color: rgb(var(--fg-rgb) / 55%);
  line-height: 1.75; margin-bottom: 2rem; max-width: 400px;
}
.service-list { list-style: none; display: flex; flex-direction: column; gap: .7rem; margin-bottom: 2rem; }
.service-list li { font-size: .82rem; color: rgb(var(--fg-rgb) / 60%); display: flex; align-items: flex-start; gap: .8rem; }
.service-list li::before { content: '—'; color: var(--green); flex-shrink: 0; }

.service-price {
  font-size: .75rem; letter-spacing: 1px; color: rgb(var(--fg-rgb) / 30%);
  border-top: 1px solid var(--border); padding-top: 1.2rem;
}
.service-price strong { color: var(--green); }

.service-visual {
  background: var(--surface); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.service-visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: .8; transition: transform .6s ease;
}
.service-visual:hover img { transform: scale(1.05); }
.service-visual::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.2) 100%);
}
.sv1 { background: #1a1810; }
.sv2 { background: #141414; }
.sv3 { background: #14120e; }
.sv4 { background: #0f1410; }

/* ════════════════════════════════════════
   PROYECTOS
   ════════════════════════════════════════ */
.filters {
  padding: 2rem 5%; display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
}

.filter-btn {
  font-family: Arial, "Helvetica Neue", sans-serif; font-size: .7rem;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 8px 20px; border: none; background: transparent;
  color: rgb(var(--fg-rgb) / 40%); cursor: pointer;
  border-bottom: 2px solid transparent; transition: all .2s; margin-bottom: -1px;
}

.filter-btn.active,
.filter-btn:hover { color: var(--green); border-bottom-color: var(--green); }

.proj-featured {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 500px; border-bottom: 1px solid var(--border);
}

.proj-featured-img {
  background: #1a1810;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.proj-featured-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .6s ease;
}
.proj-featured-img:hover img { transform: scale(1.04); }
.proj-featured-img svg { display: none; }

.proj-featured-img .proj-year {
  position: absolute; bottom: 2rem; right: 2rem;
  font-size: 5rem; font-weight: 900; color: rgb(255 255 255 / 4%); line-height: 1;
}

.proj-featured-info {
  padding: 4rem; display: flex; flex-direction: column;
  justify-content: center; border-left: 1px solid var(--border);
}

.proj-tag {
  font-size: .65rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--green); margin-bottom: 1rem; display: block;
}

.proj-featured-info h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.8rem); font-weight: 800;
  letter-spacing: -1px; line-height: 1.1; margin-bottom: .6rem;
}
.proj-featured-info .loc { font-size: .8rem; color: var(--gray); letter-spacing: 1px; margin-bottom: 2rem; }
.proj-featured-info p { font-size: .88rem; color: rgb(var(--fg-rgb) / 50%); line-height: 1.75; margin-bottom: 2rem; max-width: 380px; }
.proj-meta-row { display: flex; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.proj-meta-item { display: flex; flex-direction: column; gap: .3rem; }
.proj-meta-item span:first-child { font-size: .62rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray); }
.proj-meta-item span:last-child { font-size: .85rem; font-weight: 600; }

.proj-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.proj-card { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.proj-card:nth-child(3n) { border-right: none; }

.proj-card-img {
  height: 220px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.proj-card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .5s ease;
}
.proj-card-img:hover img { transform: scale(1.06); }
.proj-card-img svg { display: none; }
.proj-card-img:hover .proj-hover { opacity: 1; }

.proj-hover {
  position: absolute; inset: 0;
  background: rgb(0 104 56 / 12%); opacity: 0; transition: opacity .3s;
}
.proj-card-body { padding: 1.5rem 1.8rem 2rem; }
.proj-card-body .loc { font-size: .75rem; color: var(--gray); letter-spacing: .5px; margin-bottom: 1rem; display: block; }
.proj-card-body h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.5px; margin-bottom: .5rem; line-height: 1.2; }
.proj-card-body p { font-size: .8rem; color: rgb(var(--fg-rgb) / 45%); line-height: 1.6; }

/* ════════════════════════════════════════
   PROYECTOS — PÁGINA
   ════════════════════════════════════════ */

/* Hero con imagen de fondo */
.proj-page-hero {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  align-items: center;
  min-height: 420px;
  padding-top: 70px;
  padding-right: 5%;
  overflow: hidden;
}

.proj-page-hero-bg { display: none; }
.proj-page-hero-overlay { display: none; }

.proj-page-hero-content {
  padding: 4rem 5% 4rem 12%;
  z-index: 2;
}

.proj-page-hero-img {
  height: 380px;
  position: relative;
  overflow: hidden;
}

.proj-page-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 22%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 22%, black 100%);
}

.proj-page-hero-content h1 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 900; letter-spacing: -1px;
  text-transform: uppercase; margin-bottom: 1.2rem;
  line-height: 1;
}

.proj-hero-list {
  list-style: none; display: flex; flex-direction: column; gap: .5rem;
  margin-bottom: 1.5rem;
}
.proj-hero-list li {
  font-size: 1.25rem; color: rgb(var(--fg-rgb) / 80%);
}

.proj-hero-line {
  width: 36px; height: 2px; background: var(--green);
}

/* Section with project grid */
.proj-section {
  padding: 4rem 5%;
}

.page-proyectos .cta-row { border-top: none; }

/* ════════════════════════════════════════
   MANTENIMIENTO — SECCIÓN
   ════════════════════════════════════════ */
.mant-section { padding: 0; scroll-margin-top: 70px; }

/* Hero idéntico al de construcción */
.mant-hero {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  align-items: center;
  min-height: 320px;
  overflow: hidden;
  padding-left: 5%;
  padding-right: 5%;
}

.mant-hero-content { padding: 3rem 2rem 3rem 0; }

.mant-hero-content h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 900; letter-spacing: -1px;
  text-transform: uppercase; margin-bottom: .8rem; line-height: 1;
}

.mant-hero-list {
  list-style: none; display: flex; flex-direction: column; gap: .4rem;
  margin-bottom: 1.2rem;
}
.mant-hero-list li { font-size: 1.1rem; color: rgb(var(--fg-rgb) / 80%); }
.mant-hero-line { width: 36px; height: 2px; background: var(--green); }

/* Hero invertido: imagen izquierda, texto derecha */
.mant-hero-reverse {
  grid-template-columns: 1.6fr 1fr;
}
.mant-hero-reverse .mant-hero-img {
  mask-image: linear-gradient(to left, transparent 0%, black 22%, black 100%);
  -webkit-mask-image: linear-gradient(to left, transparent 0%, black 22%, black 100%);
}
.mant-hero-reverse .mant-hero-content { padding: 3rem 0 3rem 3rem; }

/* Slideshow row invertido: texto izquierda, slideshow derecha */
.mant-slideshow-row-reverse { direction: rtl; }
.mant-slideshow-row-reverse > * { direction: ltr; }

.mant-hero-img {
  height: 320px; position: relative; overflow: hidden;
}
.mant-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 22%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 22%, black 100%);
}

/* Slideshow de mantenimiento (visible directo en página) */
.mant-slideshow-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  padding: 3rem 5%;
  align-items: center;
  gap: 3rem;
}

.mant-slideshow-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--surface2);
  overflow: hidden;
}

.mant-slideshow-wrap .slideshow-track { height: 100%; }

.mant-slideshow-wrap .slide img {
  object-fit: cover; object-position: center;
}

/* Project name label on each slide */
.mant-slide-name {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  padding: .7rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
  font-size: .78rem; font-weight: 600; letter-spacing: 1px;
  color: var(--white);
}

.mant-desc {
  font-size: .95rem; color: rgb(var(--fg-rgb) / 65%);
  line-height: 1.85;
}

.proj-section-label {
  font-size: .78rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--green); margin-bottom: 2rem;
  display: flex; align-items: center; gap: 1rem;
}
.proj-section-label::after { content: ''; width: 30px; height: 1px; background: var(--green); }

/* 3-column card grid */
.proj-thumb-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
}
.proj-thumb-card {
  flex: 0 0 calc(33.333% - 3px);
  position: relative; overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3; background: var(--surface2);
}

.proj-thumb-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: grayscale(100%);
  transition: transform .55s ease, filter .55s ease;
}

.proj-thumb-card:hover img {
  transform: scale(1.06); filter: grayscale(0%);
}

.proj-thumb-label {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: .9rem 1.1rem;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
  font-size: .82rem; font-weight: 600; letter-spacing: .5px;
  color: var(--green);
  transition: color .3s;
}
.proj-thumb-card:hover .proj-thumb-label { color: var(--white); }

/* Placeholder card (sin imagen) */
.proj-thumb-placeholder {
  position: absolute; inset: 0;
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
}
.proj-thumb-placeholder svg { width: 40px; height: 40px; fill: var(--gray2); }

/* ════════════════════════════════════════
   PROYECTOS — MODAL DE DETALLE
   ════════════════════════════════════════ */
.proj-modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.9);
  display: flex; align-items: stretch;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.proj-modal-overlay.open {
  opacity: 1; pointer-events: all;
}

.proj-modal {
  width: 100%; display: flex; overflow: hidden;
  transform: translateY(24px);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.proj-modal-overlay.open .proj-modal { transform: translateY(0); }

.proj-modal-slides {
  flex: 1; position: relative; background: #0a0a0a;
  min-height: 100vh;
}

.proj-modal-slides .slide img {
  object-fit: contain;
  padding: 3rem 2rem;
}

.proj-modal-info {
  width: 380px; flex-shrink: 0;
  background: var(--surface); border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 3rem 2.5rem; overflow-y: auto;
}

.proj-modal-close {
  position: absolute; top: 1.2rem; right: 1.2rem; z-index: 10;
  width: 40px; height: 40px;
  background: rgb(0,0,0,.6); border: 1px solid rgb(255 255 255 / 20%);
  color: var(--white); font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background .2s;
}
.proj-modal-close:hover { background: var(--green); border-color: var(--green); }

.proj-modal-tag {
  font-size: .62rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--green); margin-bottom: 1rem;
}
.proj-modal-info h2 {
  font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 800;
  letter-spacing: -1px; margin-bottom: .5rem; line-height: 1.1;
}
.proj-modal-loc {
  font-size: .78rem; color: var(--gray); letter-spacing: .5px;
  margin-bottom: 2rem;
}
.proj-modal-desc {
  font-size: .85rem; color: rgb(var(--fg-rgb) / 55%);
  line-height: 1.75; margin-bottom: 2rem; flex: 1;
}
.proj-modal-meta { display: flex; flex-direction: column; gap: 1.2rem; }
.proj-modal-meta-item { display: flex; flex-direction: column; gap: .3rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.proj-modal-meta-item span:first-child { font-size: .6rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray); }
.proj-modal-meta-item span:last-child { font-size: .9rem; font-weight: 600; }

/* ════════════════════════════════════════
   PROYECTOS — SLIDESHOW
   ════════════════════════════════════════ */
.slideshow {
  position: relative; overflow: hidden;
  width: 100%; height: 100%;
  background: #111;
}

.slideshow-track {
  display: flex; height: 100%;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.slide {
  min-width: 100%; height: 100%;
  position: relative; flex-shrink: 0;
}

.slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

.slide-counter {
  position: absolute; top: 1.2rem; left: 1.5rem; z-index: 5;
  font-size: .65rem; letter-spacing: 2px; text-transform: uppercase;
  color: rgb(255 255 255 / 60%);
  background: rgb(0 0 0 / 40%); padding: 4px 10px;
  backdrop-filter: blur(4px);
}

.slideshow-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5; width: 40px; height: 40px;
  background: rgb(0 0 0 / 55%); border: 1px solid rgb(255 255 255 / 20%);
  color: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
  backdrop-filter: blur(4px);
}
.slideshow-btn:hover { background: var(--green); border-color: var(--green); }
.slideshow-btn.prev { left: 1rem; }
.slideshow-btn.next { right: 1rem; }
.slideshow-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

.slideshow-dots {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; gap: 6px;
}
.slideshow-dots button {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgb(255 255 255 / 35%); border: none; cursor: pointer;
  padding: 0; transition: background .2s, transform .2s;
}
.slideshow-dots button.active {
  background: var(--green); transform: scale(1.4);
}

/* Stage badge (e.g. "Obra Gris") */
.slide-stage {
  position: absolute; bottom: 2.5rem; right: 1.5rem; z-index: 5;
  font-size: .6rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--green); background: rgb(0 0 0 / 55%);
  padding: 4px 10px; backdrop-filter: blur(4px);
  border: 1px solid rgb(0 104 56 / 40%);
}

/* ════════════════════════════════════════
   CONTACTO
   ════════════════════════════════════════ */
.info-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
}
.strip-item { padding: 3rem 5%; border-right: 1px solid var(--border); }
.strip-item:last-child { border-right: none; }
.strip-item .strip-num { font-size: 2.5rem; font-weight: 800; color: var(--green); line-height: 1; margin-bottom: .4rem; }
.strip-item .strip-label { font-size: .75rem; color: rgb(var(--fg-rgb) / 45%); letter-spacing: .5px; }

.contact-layout {
  display: grid; grid-template-columns: 1fr 2fr;
  border-bottom: 1px solid var(--border);
}
.contact-left { padding: 5rem; border-right: 1px solid var(--border); }

.contact-left h2 {
  font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 800;
  line-height: 1.2; letter-spacing: -1px; margin-bottom: 3rem;
}
.contact-left h2 em { color: var(--green); font-style: normal; }
.info-list { display: flex; flex-direction: column; gap: 2.5rem; }
.info-item .label { font-size: .62rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); margin-bottom: .5rem; }
.info-item .value { font-size: .9rem; color: rgb(var(--fg-rgb) / 75%); line-height: 1.6; }
.info-item .value a { color: var(--green); text-decoration: none; }
.info-item .value a:hover { text-decoration: underline; }

.chat-cta {
  margin-top: 3rem; padding: 1.5rem;
  border: 1px solid var(--border); cursor: pointer; transition: border-color .2s;
}
.chat-cta:hover { border-color: var(--green); }
.chat-cta p { font-size: .75rem; color: rgb(var(--fg-rgb) / 40%); margin-bottom: 1rem; line-height: 1.6; }

.chat-cta-btn {
  font-family: Arial, "Helvetica Neue", sans-serif; font-size: .7rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--green);
  background: transparent; border: none; cursor: pointer;
  display: flex; align-items: center; gap: .6rem; padding: 0; transition: gap .2s;
}
.chat-cta-btn:hover { gap: 1rem; }
.contact-right { padding: 5rem; }
.contact-right h3 { font-size: .68rem; letter-spacing: 3px; text-transform: uppercase; color: var(--gray); margin-bottom: 2rem; }
.form-actions { margin-top: 2rem; display: flex; align-items: center; gap: 2rem; }
.form-note { font-size: .75rem; color: var(--gray2); }

/* ════════════════════════════════════════
   CHAT WIDGET  (todas las páginas)
   ════════════════════════════════════════ */
#chat-toggle {
  position: fixed; bottom: 28px; right: 28px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgb(0 0 0 / 35%);
  z-index: 1000; transition: transform .2s, background .2s;
  overflow: hidden;
}
#chat-toggle:hover { background: #f0f0f0; transform: scale(1.06); }
#chat-toggle svg { width: 24px; height: 24px; fill: #2a2a2a; }
#chat-toggle img.ic-chat { width: 56px; height: 56px; object-fit: cover; }
#chat-toggle .ic-close { display: none; }
.chat-open #chat-toggle .ic-chat  { display: none; }
.chat-open #chat-toggle .ic-close { display: block; }

#notif {
  position: absolute; top: 4px; right: 4px;
  width: 12px; height: 12px;
  background: #e8533a; border-radius: 50%; border: 2px solid var(--bg);
}
.chat-open #notif { display: none; }

#chat-bubble {
  position: fixed; bottom: 40px; right: 96px;
  max-width: 220px; padding: .8rem 1.1rem;
  background: var(--green); border: none;
  color: var(--white); font-size: .85rem; font-weight: 600; line-height: 1.3;
  border-radius: 12px 12px 2px 12px;
  box-shadow: 0 8px 24px rgb(0 104 56 / 45%);
  cursor: pointer; z-index: 999;
  animation: bubble-float 3s ease-in-out infinite;
  transition: background .2s, transform .2s, opacity .3s ease;
  opacity: 1;
}
#chat-bubble:hover { background: var(--green-light); transform: scale(1.03); }
.chat-open #chat-bubble { display: none; }
.in-hero #chat-bubble { opacity: 0; pointer-events: none; }
@keyframes bubble-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (max-width: 480px) {
  #chat-bubble { right: 20px; bottom: 92px; max-width: 180px; }
}

#chat-panel {
  position: fixed; bottom: 96px; right: 28px;
  width: 370px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 120px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 2px;
  display: flex; flex-direction: column; overflow: hidden;
  z-index: 999;
  transform: translateY(16px) scale(.96); opacity: 0; pointer-events: none;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease;
}

.chat-open #chat-panel {
  transform: translateY(0) scale(1); opacity: 1; pointer-events: all;
}

.ch-head {
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 14px 16px; display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}

.ch-logo {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--green);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ch-logo svg { width: 16px; height: 16px; fill: var(--green); }
.ch-name { font-size: .78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--fg); }
.ch-status { display: flex; align-items: center; gap: 5px; font-size: .68rem; color: var(--gray); margin-top: 2px; }
.sdot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pdot 2s infinite; }

@keyframes pdot { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.ch-msgs {
  flex: 1; overflow-y: auto;
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
  background: var(--bg);
}
.ch-msgs::-webkit-scrollbar { width: 3px; }
.ch-msgs::-webkit-scrollbar-thumb { background: var(--gray2); border-radius: 3px; }

.mrow { display: flex; align-items: flex-end; gap: 8px; }
.mrow.user { flex-direction: row-reverse; }

.mav {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--green);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mav svg { width: 13px; height: 13px; fill: var(--green); }

.bbl { max-width: 82%; padding: 9px 13px; font-size: 13px; line-height: 1.65; border-radius: 2px; }
.mrow.bot  .bbl { background: var(--surface); border: 1px solid var(--border); color: rgb(var(--fg-rgb) / 85%); }
.mrow.user .bbl { background: var(--green); color: var(--white); }

.tdots { display: flex; align-items: center; gap: 4px; padding: 10px 13px; }
.tdots span { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: bnc 1.1s infinite; }
.tdots span:nth-child(2) { animation-delay: .18s; }
.tdots span:nth-child(3) { animation-delay: .36s; }

@keyframes bnc { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }

#sugg {
  padding: 8px 12px 6px; display: flex; flex-wrap: wrap; gap: 6px;
  background: var(--surface); border-top: 1px solid var(--border);
}

.chip {
  font-family: Arial, "Helvetica Neue", sans-serif; font-size: .7rem;
  padding: 5px 11px; border: 1px solid var(--border);
  background: transparent; color: rgb(var(--fg-rgb) / 60%);
  cursor: pointer; transition: all .15s; letter-spacing: .5px;
}
.chip:hover  { border-color: var(--green); color: var(--green); }
.chip:disabled { opacity: .3; cursor: not-allowed; }

.ch-inp {
  display: flex; background: var(--surface);
  border-top: 1px solid var(--border); align-items: stretch;
}

#uinput {
  flex: 1; font-family: Arial, "Helvetica Neue", sans-serif; font-size: .82rem;
  border: none; padding: 10px 14px; outline: none; resize: none;
  background: transparent; color: var(--fg); max-height: 80px; line-height: 1.5;
}
#uinput::placeholder { color: var(--gray2); }

#sbtn {
  width: 44px; background: var(--green); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .15s;
}
#sbtn:hover    { background: var(--green-light); }
#sbtn:disabled { background: var(--gray2); cursor: not-allowed; }
#sbtn svg { width: 16px; height: 16px; fill: var(--white); }

.cf {
  background: var(--surface); border: 1px solid var(--border);
  padding: 12px; display: flex; flex-direction: column; gap: 7px;
  font-size: 12px; max-width: 82%;
}
.cf label { font-size: .65rem; color: var(--green); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

.cf input,
.cf select {
  font-family: Arial, "Helvetica Neue", sans-serif; font-size: .8rem;
  border: 1px solid var(--border); padding: 6px 9px;
  background: var(--bg); color: var(--fg); outline: none; width: 100%;
}

.cf input:focus,
.cf select:focus { border-color: var(--green); }
.cf select option { background: var(--surface); }

.cbtn {
  background: var(--green); color: var(--white); border: none;
  padding: 8px; font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: .75rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; margin-top: 4px;
}
.cbtn:hover { background: var(--green-light); }

.agenda-picker { max-width: 82%; font-size: .8rem; }
.agenda-day { margin-bottom: .8rem; }
.agenda-day-label {
  font-size: .65rem; color: var(--green); font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: .4rem;
}
.agenda-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.agenda-slot {
  background: var(--surface); border: 1px solid var(--border); color: var(--fg);
  font-family: Arial, "Helvetica Neue", sans-serif; font-size: .75rem;
  padding: 6px 10px; cursor: pointer; transition: background .15s, border-color .15s;
}
.agenda-slot:hover { background: var(--green); border-color: var(--green); }

/* ── MOBILE NAV HAMBURGER ── */
/* ── Hamburger button ── */
.nav-menu-btn {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  cursor: pointer; background: none; border: none;
  padding: 8px; z-index: 1001;
}
.nav-menu-btn span {
  width: 24px; height: 1.5px;
  background: var(--fg); display: block;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s, width .3s;
  transform-origin: center;
}
.nav-menu-btn span:nth-child(3) { width: 14px; }
.nav-mobile-open .nav-menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-mobile-open .nav-menu-btn span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-mobile-open .nav-menu-btn span:nth-child(3) { width: 24px; transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile menu overlay ── */
.nav-mobile-overlay {
  display: none !important;
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.nav-mobile-open .nav-mobile-overlay { display: flex !important; }

.nav-mobile-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6%;
  height: 70px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-mobile-header .nav-logo { margin-left: 0; }

.nav-mobile-close {
  background: none; border: none; cursor: pointer;
  color: var(--fg); padding: 8px;
  display: flex; flex-direction: column; gap: 5px;
}
.nav-mobile-close span {
  width: 22px; height: 1.5px; background: currentColor;
  display: block; transform-origin: center;
}
.nav-mobile-close span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav-mobile-close span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

.nav-mobile-links {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center;
  padding: 2rem 6% 1rem;
  list-style: none; gap: 0;
}
.nav-mobile-links li {
  border-bottom: 1px solid var(--border);
}
.nav-mobile-links li:first-child { border-top: 1px solid var(--border); }

.nav-mobile-links a {
  display: flex; align-items: baseline; gap: 1.2rem;
  padding: 1.4rem 0;
  text-decoration: none;
  transition: color .2s;
}
.nav-mobile-links a:hover .nm-title,
.nav-mobile-links a.active .nm-title { color: var(--green); }
.nav-mobile-links a.active .nm-num { color: var(--green); }

.nm-num {
  font-size: .62rem; font-weight: 600;
  letter-spacing: 2px; color: rgb(var(--fg-rgb) / 25%);
  line-height: 1; flex-shrink: 0;
  padding-top: .15rem;
}
.nm-title {
  font-size: 1.9rem; font-weight: 800;
  letter-spacing: -0.5px; text-transform: uppercase;
  color: var(--fg); line-height: 1;
  transition: color .2s;
}

.nav-mobile-footer {
  padding: 1.5rem 6% 2.5rem;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .4rem;
  flex-shrink: 0;
}
.nav-mobile-footer span {
  font-size: .65rem; letter-spacing: 2px;
  text-transform: uppercase;
  color: rgb(var(--fg-rgb) / 25%);
  line-height: 1.6;
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */

/* ── Tablet / 900px ── */
@media (max-width: 900px) {
  .nav-menu-btn { display: flex; }
  .nav-links { display: none; }

  .photo-grid  { grid-template-columns: 1fr 1fr; height: 360px; }
  .proyecto    { grid-template-columns: 1fr; }
  .proyecto-img { height: 280px; }
  .valores     { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .form-grid   { grid-template-columns: 1fr; }

  .service-row { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-info,
  .service-row:nth-child(even) .service-visual { order: unset; }
  .service-info { border-right: none !important; border-left: none !important; border-bottom: 1px solid var(--border); }
  .service-visual { height: 220px; }

  .proj-featured { grid-template-columns: 1fr; }
  .proj-featured-img { height: 280px; }
  .proj-featured-info { border-left: none; border-top: 1px solid var(--border); padding: 2.5rem; }
  .proj-grid { grid-template-columns: 1fr 1fr; }
  .proj-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .proj-card:nth-child(2n) { border-right: none; }

  .contact-layout { grid-template-columns: 1fr; }
  .contact-left { border-right: none; border-bottom: 1px solid var(--border); padding: 3rem 5%; }
  .contact-right { padding: 3rem 5%; }
  .info-strip { grid-template-columns: 1fr; }
  .strip-item { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ── Mobile / 600px ── */
@media (max-width: 600px) {
  /* Nav */
  .nav-menu-btn { display: flex; }

  /* Hero home — ya es full-bleed con foto de fondo, solo ajustar padding */
  .hero { padding: 0 5% 4rem; min-height: 100svh; }
  .hero h1 { font-size: clamp(2rem, 11vw, 3.2rem); }

  /* Áreas de negocio — filas con foto a la derecha */
  .areas-cols { display: flex; flex-direction: column; }
  .area-col {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 5%; gap: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .area-col:first-child { border-top: 1px solid var(--border); }
  .area-col-info { flex: 1; display: flex; align-items: center; gap: .8rem; }
  .area-col .area-num { font-size: .65rem; margin-bottom: 0; flex-shrink: 0; }
  .area-col-line { display: none; }
  .area-col h3 { font-size: .78rem; letter-spacing: 1.5px; margin-bottom: 0; }
  .area-arrow { display: inline; margin-left: .4rem; color: var(--green); }
  .area-desc { display: none; }
  .area-col-img {
    display: block; width: 90px; height: 65px;
    object-fit: cover; border-radius: 4px; flex-shrink: 0;
  }

  /* Foto grid — ocultar en móvil (fotos ya en áreas) */
  .photo-grid { display: none; }

  /* Proyecto destacado home */
  /* Proyecto home — imagen arriba, texto abajo */
  .proyecto {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding: 0;
    margin: 1.5rem 0 0;
  }
  .proyecto-img {
    position: relative;
    inset: auto;
    width: 100%;
    height: 260px;
    overflow: hidden;
    flex-shrink: 0;
  }
  .proyecto-slides { position: absolute; inset: 0; }
  .proyecto-img-overlay { display: none; }
  .proyecto-text {
    position: relative;
    z-index: 1;
    padding: 1.5rem 5% 2rem;
    background: var(--bg);
  }
  .proyecto-text h2 { font-size: clamp(1.4rem, 7vw, 2rem); letter-spacing: -0.5px; margin-bottom: .4rem; }
  .proyecto-text .loc { margin-bottom: .8rem; font-size: .75rem; }

  /* Valores — 3 iconos en fila */
  .valores { grid-template-columns: 1fr 1fr 1fr; padding: 2rem 5%; gap: 1rem; }
  .valor h4 { font-size: .75rem; }
  .valor p { display: none; }
  .cta-row { flex-direction: column; align-items: flex-start; padding: 3rem 5%; }
  .cta-row .btn-orange { align-self: center; margin-left: 0; }

  /* ── PROYECTOS PAGE ── */

  /* Hero construcción — apilar imagen debajo */
  .proj-page-hero {
    grid-template-columns: 1fr;
    padding-top: 70px;
    padding-right: 0;
    min-height: auto;
  }
  .proj-page-hero-content {
    padding: 2.5rem 5%;
    order: 1;
  }
  .proj-page-hero-img {
    order: 2;
    height: 200px;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .proj-page-hero-img img {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .proj-page-hero-content h1 { font-size: clamp(1.8rem, 10vw, 3rem); }

  /* Grid miniaturas — 2 columnas */
  .proj-thumb-grid { grid-template-columns: 1fr 1fr; }

  /* Hero mantenimiento / solar — apilar imagen debajo */
  .mant-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0 5%;
  }
  .mant-hero-content { padding: 2.5rem 0 1rem; order: 1; }
  .mant-hero-img {
    order: 2;
    height: 200px;
    overflow: hidden;
    margin: 0 -5%;
  }
  .mant-hero-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    -webkit-mask-image: none;
    mask-image: none;
    position: relative; inset: auto;
  }
  .mant-hero-content h2 { font-size: clamp(1.6rem, 9vw, 2.5rem); }

  /* Slideshow + descripción — apilar */
  .mant-slideshow-row {
    grid-template-columns: 1fr;
    padding: 1.5rem 5% 2rem;
    gap: 1.5rem;
  }
  .mant-desc { font-size: .85rem; }

  /* Soluciones especiales */
  .sol-section { margin: 2rem 5% !important; }
  .sol-grid { grid-template-columns: 1fr 1fr !important; gap: 1rem !important; }
  .sol-header h2 { font-size: 1.3rem; }
  .sol-label { font-size: .85rem; }
  .sol-price { font-size: .8rem; }

  /* Contacto */
  .proj-grid  { grid-template-columns: 1fr; }
  .proj-card  { border-right: none; }
  .contact-section { grid-template-columns: 1fr; gap: 2rem; }

  /* Modal de proyecto — apilar en móvil */
  .proj-modal-overlay { align-items: flex-start; overflow-y: auto; }
  .proj-modal { flex-direction: column; }
  .proj-modal-slides { flex: none; height: 50vh; min-height: 280px; }
  .proj-modal-slides .slide img { padding: 1.5rem 1rem; }
  .proj-modal-info {
    width: 100%; border-left: none; border-top: 1px solid var(--border);
    padding: 2rem 5% 3rem;
  }
}

/* En móvil ".proyecto-text" pasa a estar sobre fondo plano (var(--bg)) en vez
   de sobre la foto, así que en modo claro sí debe cambiar a texto oscuro. */
@media (max-width: 600px) and (prefers-color-scheme: light) {
  .proyecto-text h2 { color: var(--fg); }
  .proyecto-text .loc { color: rgb(var(--fg-rgb) / 65%); }
}

/* ── Soluciones Especiales ─────────────────────── */
.sol-section {
  margin: 4rem 5% 2rem;
  scroll-margin-top: 5rem;
}
.sol-header {
  margin-bottom: 2rem;
}
.sol-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: .5rem;
}
.sol-header p {
  color: rgb(var(--fg-rgb) / 55%);
  font-size: .95rem;
  margin-bottom: .8rem;
}
.sol-header-line {
  width: 2.5rem;
  height: 3px;
  background: var(--green);
}
.sol-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.sol-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.sol-label {
  display: block;
  color: var(--green);
  font-size: .95rem;
  font-weight: 600;
  margin-top: .6rem;
}
.sol-price {
  color: rgb(var(--fg-rgb) / 55%);
  font-size: .9rem;
  margin-top: .4rem;
  line-height: 1.5;
}