/* ============================================================
   EHKAT — styles.css
   Colores: #A6C900 verde | #353535 negro | #FFFFFF blanco
   Fuente tipográfica: Raleway
   ============================================================ */

:root {
  --green: #A6C900;
  --dark: #353535;
  --white: #FFFFFF;
  --nav-h: 58px;
  --radius-btn: 50px;
  --radius-text: 4px;
  --section-pad: 72px 64px;
  --section-pad-mob: 40px 20px;
  --gap-titulo: 5px;
  --gap-texto: 2%;
  --gap-texto-btn: 15px;
  --padding: 12%;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

/* ===========================
   PÁGINAS
   =========================== */
.page {
  display: none;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.page.active {
  display: block;
  overflow: visible;
}

/* ===========================
   TIPOGRAFÍA
   =========================== */
.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.05;
  color: var(--dark);
}
.hero-title.green { color: var(--green); font-weight: 900; font-size: 52px; }
.hero-title.white { color: var(--white); }
.hero-dot { color: var(--green); }

.section-h2 {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: var(--gap-titulo);
  color: var(--dark);
}
.section-h2.green { color: var(--green); font-weight: 900; font-size: 32px; }
.section-h2.light { color: var(--white); }

.proy-name {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 12px;
}
.proy-dot { color: var(--green); }

.body-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--dark);
}
.body-text.center { text-align: center; }
.body-text.light { color: var(--white); }
.body-text.center.idea { margin-top: var(--gap-titulo); }

.label-text {
  font-size: 20px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: var(--gap-titulo);
}
.label-text.light { color: var(--white); }
.label-text.green { color: var(--green); }

.caption-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  font-style: italic;
  margin-bottom: 10px;
}

/* ===========================
   BUTTONS
   =========================== */
.btn-primary {
  background: var(--green);
  color: var(--dark);
  border: none;
  border-radius: var(--radius-btn);
  padding: 13px 36px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  white-space: nowrap;
}
.btn-primary:hover { background: #8faa00; transform: translateY(-2px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-primary.full { width: 100%; text-align: center; display: block; }

.btn-dark {
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius-btn);
  padding: 13px 36px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  margin-top: var(--gap-texto-btn);
}
.btn-dark:hover { background: #111; transform: translateY(-2px); }

.btn-wrap { display: flex; }

/* ===========================
   TAGS
   =========================== */
.tag-outline {
  display: inline-block;
  border-radius: var(--radius-text);
  padding: 9px 21px;
  font-size: 16px;
  font-weight: 500;
  margin: 4px 6px 0 0;
}
.tag-outline.green { background: var(--green); color: var(--dark); }
.tag-outline.light { background: var(--white); color: var(--dark); }
.tag-outline.dark  { background: var(--dark); color: var(--white); }

.tag-row  { display: flex; flex-wrap: wrap; margin-top: 20px; }
.val-tags { display: flex; flex-wrap: wrap; margin-top: 20px; }

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--dark);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-inner {
  background: var(--green);
  border-radius: 50px;
  padding: 5px 8px;
}
.nav-links { list-style: none; display: flex; gap: 4px; }
.nav-link {
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--dark);
  padding: 7px 20px;
  border-radius: 50px;
  transition: background 0.2s, color 0.2s;
  display: block;
}
.nav-link:hover { background: rgba(0,0,0,0.10); }
.nav-link.active { background: var(--dark); color: var(--white); font-weight: 700; }

/* ===========================
   HOME — HERO
   =========================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--dark);
  overflow: hidden;
}

.hero-left,
.hero-right {
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  flex: 1;
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 40px;
  text-align: center;
  background: var(--white);
  gap: 20px;
}

.hero-img-left,
.hero-img-right {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 0;
}

/* ===========================
   HOME — STATS BAR
   =========================== */
.stats-bar {
  background: var(--dark);
  display: flex;
  justify-content: center;
  align-items: stretch;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 72px;
  border-right: 1px solid rgba(255,255,255,0.1);
  gap: 6px;
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  max-width: 140px;
}

/* ===========================
   HOME — NOS ENCARGAMOS
   =========================== */
.encargamos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--dark);
  min-height: 440px;
  overflow: hidden;
  align-items: stretch;
}
.encargamos-img {
  overflow: hidden;
  background: var(--dark);
}
.encargamos-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.encargamos-content {
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--dark);
}
.encargamos-content .label-text { color: var(--white); margin-bottom: 8px; }
.encargamos-content .body-text { color: var(--white); margin: 10px 0; font-weight: 400; }

/* ===========================
   HOME — EXPERIENCIA
   =========================== */
.experiencia {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  min-height: 400px;
  border-bottom: 1px solid #e8e8e8;
}
.exp-content {
  padding: 72px var(--padding);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.exp-content .body-text {
  margin-top: 16px;
  margin-bottom: var(--gap-texto-btn);
  max-width: 520px;
}
.exp-right {
  padding: 56px 48px 56px 0;
  display: flex;
  flex-direction: column;
}
.exp-img {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exp-img img {
  width: 65%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* ===========================
   HOME — PROYECTOS DESTACADOS
   =========================== */
.proyectos-dest {
  padding: 72px 0 80px;
  background: var(--white);
  text-align: center;
  overflow: hidden;
}
.proyectos-dest .section-h2 { margin-bottom: var(--gap-titulo); margin-top: var(--gap-titulo); }
.proyectos-dest .body-text  { margin-bottom: 40px; }

/* SLIDER */
.slider-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 40px;
}
.slider-viewport {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 460px;
  overflow: hidden;
}
.slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  top: 50%;
  margin-top: -210px;
  border-radius: 8px;
  overflow: hidden;
  transition: left 0.45s ease, width 0.45s ease, height 0.45s ease,
              opacity 0.45s ease, margin-top 0.45s ease;
}
.slide-inner { width: 100%; height: 100%; }
.slide-img   { width: 100%; height: 100%; object-fit: cover; }

/* Slide central: doble de tamaño */
.slide[data-state="active"]      { width: 560px; height: 420px; left: calc(50% - 280px); margin-top: -210px; opacity: 1; z-index: 3; }
/* Solo dos slides laterales (uno a cada lado) visibles */
.slide[data-state="adj-right"]   { width: 160px; height: 120px; left: calc(50% + 300px); margin-top: -60px;  opacity: 0.55; z-index: 2; }
.slide[data-state="adj-left"]    { width: 160px; height: 120px; left: calc(50% - 460px); margin-top: -60px;  opacity: 0.55; z-index: 2; }
/* Far y hidden: completamente ocultos */
.slide[data-state="far-right"]   { width: 100px; height: 80px;  left: calc(50% + 520px); margin-top: -40px;  opacity: 0; z-index: 0; pointer-events: none; }
.slide[data-state="far-left"]    { width: 100px; height: 80px;  left: calc(50% - 620px); margin-top: -40px;  opacity: 0; z-index: 0; pointer-events: none; }
.slide[data-state="hidden-right"]{ width: 100px; height: 80px;  left: calc(50% + 640px); margin-top: -40px;  opacity: 0; z-index: 0; pointer-events: none; }
.slide[data-state="hidden-left"] { width: 100px; height: 80px;  left: calc(50% - 740px); margin-top: -40px;  opacity: 0; z-index: 0; pointer-events: none; }

.slider-arrow {
  flex-shrink: 0;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  z-index: 10;
}
.slider-arrow:hover { background: var(--green); color: var(--dark); transform: scale(1.08); }

/* ===========================
   CTA BANNER
   =========================== */
.cta-banner {
  background: var(--green);
  text-align: center;
  padding: var(--section-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--dark);
  padding: 24px 56px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-logo-wrap { flex-shrink: 0; }
.footer-logo-img  { width: 80px; height: auto; display: block; }
.footer-info      { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--green); }
.footer-ig         { color: var(--white); transition: color 0.2s; }
.footer-ig:hover   { color: var(--green); }

/* ===========================
   NOSOTROS — HERO
   =========================== */
.nos-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  background: var(--white);
  align-items: stretch;
}
.nos-hero-img {
  min-height: 520px;
}
.nos-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.nos-hero-content {
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nos-hero-content .body-text { margin-top: 12px; }
.nos-proc-img {
  min-height: 520px;
}
.nos-proc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ===========================
   NOSOTROS — QUIÉNES SOMOS
   =========================== */
.quienes-somos {
  background: var(--white);
  padding: 5% 5%;
  border-bottom: 1px solid #ebebeb;
  text-align: center;
  display: flex;
  justify-content: center;
}
.qs-inner { max-width: 820px; }
.qs-inner .label-text { margin-bottom: 10px; }
.qs-titulo {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.12;
  color: var(--green);
  margin: 10px 0 10px;
}
.qs-dot { color: var(--dark); }
.qs-texto {
  color: #555;
  max-width: 680px;
  text-align: center;
}
.label-text-25 {
  color: var(--white);
}

/* ===========================
   NOSOTROS — COMO TRABAJAMOS
   =========================== */
.como-trabajamos {
  background: var(--green);
  padding: 56px 64px;
  text-align: center;
}
.ct-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}
.ct-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ===========================
   NOSOTROS — VALORES
   =========================== */
.valores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--dark);
  min-height: 500px;
  align-items: stretch;
}
.val-content {
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.val-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 20px;
  max-width: 440px;
}
.val-tags .tag-outline { margin: 4px 8px 4px 0; }

/* ===========================
   NOSOTROS — MAQUINAS
   =========================== */
.maquinas { padding: var(--section-pad); background: var(--white); }

.maq-header {
  max-width: 1100px;
  margin: 0 auto 48px;
}
.maq-subtitulo {
  margin-top: 10px;
  color: #555;
}

.maq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.maq-card {
  border-radius: 8px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  transition: box-shadow 0.2s, transform 0.2s;
}
/* Sin hover en tarjetas — no son botones */
.maq-img {
  width: 100%;
  height: 170px;
  max-height: 170px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.maq-img img { width: 100%; height: 170px; object-fit: contain; display: block; }
.maq-name { font-size: 16px; font-weight: 700; color: var(--dark); }
.maq-desc { font-size: 14px; font-weight: 500; color: #555; line-height: 1.55; }

/* ===========================
   PROYECTOS PAGE
   =========================== */
.proyecto-section {
  padding: var(--section-pad);
  background: var(--white);
}
/* Todas las secciones de proyectos con fondo blanco uniforme */
.proyecto-section.alt { background: var(--white); }

/* --- Fila principal: imagen grande + contenido de texto --- */
.proy-main {
  display: grid;
  grid-template-columns: 2fr 1fr; /* imagen grande | texto */
  gap: 40px;
  align-items: stretch;
  margin-bottom: 20px;
}

/* Reverse: texto izquierda (1fr) | imagen derecha (2fr) */
.proy-main.reverse {
  grid-template-columns: 1fr 2fr;
}
.proy-main.reverse .proy-main-content { order: 1; }
.proy-main.reverse .proy-main-img     { order: 2; }

.proy-main-img {
  overflow: hidden;
  min-height: 340px;
  max-height: 380px;
  border-radius: 4px;
}
.proy-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.proy-main-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

/* --- Galerías de múltiples imágenes --- */
.proy-gallery {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
  align-items: stretch;
}
.proy-gallery.three { grid-template-columns: repeat(3, 1fr); }
.proy-gallery.two   { grid-template-columns: repeat(2, 1fr); }

/* Altura galería three-column: más baja que la imagen principal */
.proy-gallery.three .proy-gal-img,
.proy-gallery.three .proy-main-img {
  min-height: 200px;
  max-height: 250px;
  border-radius: 4px;
}

/* Galería two-column */
.proy-gallery.two .proy-main-img {
  min-height: 280px;
  max-height: 360px;
  border-radius: 4px;
}

/* Galería split (Mercado Libre: 2fr | 1fr) */
.proy-gallery-split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.proy-gallery-split .proy-gal-img {
  min-height: 210px;
  max-height: 230px;
  border-radius: 4px;
}

/* Imagen dentro de cualquier galería */
.proy-gal-img {
  overflow: hidden;
  min-height: 200px;
}
.proy-gal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Divisor entre proyectos — visible */
.proy-divider {
  border: none;
  border-top: 1px solid #d8d8d8;
  margin: 56px 0;
}

/* Espacio simétrico alrededor de la línea: el padding inferior de la
   sección y el superior de la siguiente se ceden al margin del divisor */
.proyecto-section:has(+ .proyecto-section) { padding-bottom: 0; }
.proyecto-section + .proyecto-section { padding-top: 0; }

/* Desktop muestra desktop, oculta mobile */
.proy-mobile  { display: none; }
.proy-desktop { display: block; }

/* ===========================
   CONTACTO
   =========================== */
.contacto-section {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--green);
}
.contacto-bg {
  position: absolute;
  inset: 0;
  background: var(--green);
  background-size: cover;
  background-position: center;
}
.contacto-card {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: 8px;
  padding: 52px 56px;
  width: 100%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.14);
  margin: 40px 16px;
}
.contact-heading {
  font-size: 32px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.1;
}
.contact-heading.green { font-size: 48px; font-weight: 900; color: var(--green); }

/* FORM */
.form-group { margin-bottom: 16px; text-align: left; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.req { color: #e53935; }
.form-group input,
.form-group textarea {
  width: 100%;
  background: #F0F0F0;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 13px 16px;
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #aaa; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--green); background: #fff; }
.form-group input.invalid,
.form-group textarea.invalid { border-color: #e53935; background: #fff5f5; }
.form-group textarea { height: 130px; }

.field-error { display: none; font-size: 12px; font-weight: 600; color: #e53935; margin-top: 4px; }
.field-error.show { display: block; }

/* SUCCESS STATE */
.contacto-success {
  display: none;
  position: relative;
  min-height: 640px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.contacto-success.visible { display: flex; }
.success-bg {
  position: absolute;
  inset: 0;
  background: var(--green);
  background-size: cover;
  background-position: center;
}
.success-card {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: 8px;
  padding: 56px 52px;
  width: 100%;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.14);
  margin: 32px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.success-icon {
  width: 64px; height: 64px;
  background: var(--green);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
}

/* =====================================================
   RESPONSIVE — TABLET (max 900px)
   ===================================================== */
@media (max-width: 900px) {
  .maq-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================
   RESPONSIVE — MOBILE (max 768px)
   ===================================================== */
@media (max-width: 768px) {
  :root {
    --nav-h: 50px;
    --section-pad: 44px 20px;
    --padding: 20px;
  }

  /* NAVBAR — fondo verde plano, sin pill negro interior */
  .navbar { background: var(--green); border-radius: 0; }
  .nav-inner { background: transparent; border-radius: 0; padding: 0 12px; }
  .nav-link { font-size: 16px; padding: 8px 12px; color: var(--dark); }
  .nav-link.active { background: var(--dark); color: var(--white); }

  /* BOTONES — mismo tamaño que texto mobile */
  .btn-primary {
    font-size: 16px;
    padding: 11px 24px;
  }
  .btn-primary.full { font-size: 16px; }
  .btn-dark {
    font-size: 16px;
    padding: 11px 24px;
  }

  /* HERO — sin full-height en mobile */
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-photos-desktop { display: none; }
  .hero-center { padding: 52px 24px; gap: 16px; }
  .hero-title { font-size: 40px; }
  .hero-tags { display: none; }

  /* STATS BAR */
  .stats-bar { flex-direction: row; flex-wrap: wrap; }
  .stat-item {
    flex: 1 1 33%;
    padding: 22px 12px;
    border-right: 1px solid rgba(255,255,255,0.1);
    border-bottom: none;
  }
  .stat-number { font-size: 28px; }
  .stat-label  { font-size: 12px; max-width: 100px; }

  /* NOS ENCARGAMOS — centrado en mobile */
  .encargamos { display: block !important; min-height: auto; }
  .encargamos-img { display: block; width: 100%; height: auto; }
  .encargamos-img img { width: 100%; height: auto; object-fit: contain; display: block; }
  .encargamos-content {
    padding: 16px 20px 40px;
    text-align: center;
    align-items: center;
  }
  .encargamos-content .tag-row { justify-content: center; }

  /* EXPERIENCIA */
  .experiencia { grid-template-columns: 1fr; min-height: auto; }
  .exp-right { order: -1; padding: 32px 20px 0; }
  .exp-img { min-height: 180px; }
  .exp-content { padding: 32px 20px 48px; text-align: center; align-items: center; }
  .exp-content .body-text { max-width: 100%; }
  .btn-wrap { justify-content: center; }

  /* SLIDER MOBILE — slides más grandes, solo adj visible */
  .proyectos-dest { padding: 48px 0 56px; }
  .proyectos-dest .body-text { padding: 0 20px; }
  .slider-wrapper { padding: 0 8px; gap: 6px; }
  .slider-arrow { width: 36px; height: 36px; font-size: 16px; }
  .slider-viewport { height: 55vw; }
  .slide[data-state="active"]      { width: 75vw; height: 52vw; left: calc(50% - 37.5vw); margin-top: -26vw; opacity: 1; z-index: 3; }
  .slide[data-state="adj-right"]   { width: 18vw; height: 12vw; left: calc(50% + 39vw); margin-top: -6vw; opacity: 0.55; z-index: 2; }
  .slide[data-state="adj-left"]    { width: 18vw; height: 12vw; left: calc(50% - 57vw); margin-top: -6vw; opacity: 0.55; z-index: 2; }
  .slide[data-state="far-right"]   { left: calc(50% + 280px); margin-top: -30px; opacity: 0; pointer-events: none; }
  .slide[data-state="far-left"]    { left: calc(50% - 380px); margin-top: -30px; opacity: 0; pointer-events: none; }
  .slide[data-state="hidden-right"]{ left: calc(50% + 400px); margin-top: -30px; opacity: 0; pointer-events: none; }
  .slide[data-state="hidden-left"] { left: calc(50% - 500px); margin-top: -30px; opacity: 0; pointer-events: none; }

  /* TIPOGRAFÍA GENERAL */
  .section-h2       { font-size: 26px; }
  .section-h2.green { font-size: 32px; }
  .proy-name        { font-size: 26px; margin-bottom: 8px; }

  /* CTA */
  .cta-banner { padding: 48px 20px; }

  /* FOOTER */
  .footer { padding: 24px 20px; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .footer-info  { flex-direction: column; gap: 10px; align-items: center; }
  .footer-link  { font-size: 15px; }

  /* ==============================
     NOSOTROS — reordenamiento mobile
     quienes-somos sube al tope con
     fondo fotográfico completo
     ============================== */
  #page-nosotros.active {
    display: flex;
    flex-direction: column;
  }

  /* Orden de secciones en mobile */
  #page-nosotros .quienes-somos   { order: 1; }
  #page-nosotros .nos-hero        { order: 2; }
  #page-nosotros .como-trabajamos { order: 3; }
  #page-nosotros .valores         { order: 4; }
  #page-nosotros .maquinas        { order: 5; }
  #page-nosotros .cta-banner      { order: 6; }
  #page-nosotros .footer          { order: 7; }

  .nos-proc-img {display: none !important;}

  /* QUIÉNES SOMOS — sección hero en mobile con foto de fondo */
  .quienes-somos {
    position: relative;
    padding: 72px 24px 64px;
    text-align: center;
    border-bottom: none;
    background:
      linear-gradient(rgba(53,53,53,0.70), rgba(53,53,53,0.70)),
      url('../Fotos/proceso.jpg') center / cover no-repeat;
  }
  .quienes-somos .qs-inner {
    max-width: 100%;
    text-align: center;
  }
  .quienes-somos .label-text { color: var(--white); }
  .quienes-somos .qs-titulo  { color: var(--green); font-size: 32px; }
  .quienes-somos .qs-texto   { color: var(--white)}
  .nos-hero { grid-template-columns: 1fr; min-height: auto; display: block; }
  .nos-hero-img { min-height: auto; }
  .nos-hero-img img { height: auto; object-fit: contain; }
  .nos-hero-content { padding: 44px 20px; }

  .como-trabajamos { padding: 40px 20px; }
  .ct-title { font-size: 24px; }

  /* VALORES — centrado en mobile */
  .valores { grid-template-columns: 1fr; min-height: auto; display: block; }
  .valores .nos-hero-img { min-height: auto; }
  .valores .nos-hero-img img { height: auto; object-fit: contain; }
  .val-content {
    padding: 20px 20px 44px;
    text-align: center;
    align-items: center;
  }
  .val-tags { justify-content: center; max-width: 100%; }
  .val-tags .tag-outline { margin: 4px 4px; }

  /* MAQUINAS — encabezado centrado */
  .maquinas { padding: var(--section-pad); }
  .maq-header {
    margin-bottom: 28px;
    text-align: center;
  }
  .maq-header .label-text { text-align: center; }
  .maq-subtitulo { max-width: 100%; }
  .maq-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .maq-img { height: 130px; }
  .maq-img img { height: 130px; }

  /* CONTACTO */
  .contacto-card { padding: 36px 22px; }
  .contact-heading { font-size: 24px; }
  .contact-heading.green { font-size: 36px; }
  .success-card { padding: 40px 24px; }

  /* ==============================
     PROYECTOS PAGE — MOBILE LAYOUT
     ============================== */

  /* Ocultar desktop, mostrar mobile */
  .proy-desktop { display: none !important; }
  .proy-mobile  { display: block !important; }

  /* Sin fondos de color — todos blancos en mobile */
  .proyecto-section,
  .proyecto-section.alt {
    padding: 0;
    background: var(--white);
  }

  /* Más margen superior entre proyecto y proyecto */
  .proy-mobile-content {
    padding: 36px 20px 16px;
  }

  /* Imagen principal del proyecto */
  .proy-mobile-main {
    width: 100%;
    height: 280px;
    overflow: hidden;
  }
  .proy-mobile-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  /* Galería de 2 columnas */
  .proy-mobile-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-top: 4px;
  }
  .proy-mobile-gallery .proy-gal-img {
    min-height: 160px;
    max-height: 200px;
  }
  .proy-mobile-gallery .proy-gal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  /* Divisor entre proyectos: línea sutil con espacio simétrico */
  .proy-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 32px 20px;
  }

  /* El padding superior de proy-mobile-content ya da espacio de sobra
     después de la línea del proyecto anterior; se cede para igualar
     el espacio de arriba y abajo de la línea */
  .proyecto-section + .proyecto-section .proy-mobile-content {
    padding-top: 0;
  }
}

/* =====================================================
   RESPONSIVE — PEQUEÑO (max 480px)
   ===================================================== */
@media (max-width: 480px) {
  .maq-grid { grid-template-columns: 1fr; }

  .stat-item {
    flex: 1 1 33%;
    border-right: 1px solid rgba(255,255,255,0.1);
    border-bottom: none;
    padding: 18px 8px;
  }
  .stat-item:last-child { border-right: none; border-bottom: none; }
  .stat-number { font-size: 26px; }
  .stat-label  { font-size: 11px; max-width: 80px; }
}
