/*
Theme Name: Alianza Solar
Theme URI: https://alianza.solar
Author: Alianza Solar Team
Author URI: https://alianza.solar
Description: Tema premium de energía solar residencial para WordPress. Versión 3.1.0 optimizada: Hero con imagen difuminada a la derecha en PC/Widescreen y oculta en dispositivos móviles. Totalmente administrable.
Version: 3.1.0
License: GNU General Public License v2 or later
*/

:root {
  --navy: #0b2b63;
  --navy-dark: #071f49;
  --orange: #f47b00;
  --orange-hover: #dc6f00;
  --orange-light: #fff5e9;
  --ink: #17243b;
  --muted: #667085;
  --line: #e7ebf1;
  --soft: #f7f9fc;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1600px;
  margin: auto;
  padding: 0 clamp(16px, 3.5vw, 64px);
}

/* Header */
header {
  width: 100%;
  height: 78px;
  border-bottom: 1px solid #eef1f5;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.logo-wrap { display: flex; align-items: center; }
.logo-wrap a { display: inline-flex; align-items: center; }
.logo {
  width: clamp(135px, 14vw, 190px);
  max-height: 58px;
  height: auto;
  object-fit: contain;
}

/* Menú Desktop */
nav#navMenu {
  display: flex;
  gap: clamp(14px, 1.8vw, 30px);
  font-size: 14px;
  color: #27364f;
  align-items: center;
  font-weight: 600;
}
nav#navMenu a { padding: 8px 0; }
nav#navMenu a:hover { color: var(--orange); }
nav#navMenu a.active-link { color: var(--orange); font-weight: 700; }

/* Botón Hamburguesa Móvil */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
  font-size: 26px;
  line-height: 1;
  border-radius: 6px;
}
.menu-toggle:hover {
  background: var(--soft);
  color: var(--orange);
}

.btn {
  border: 0;
  border-radius: 8px;
  padding: 13px 22px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-hover); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--navy); border: 1px solid #cbd4e2; }
.btn-outline:hover { border-color: var(--navy); background: var(--soft); }

.btn-card-action {
  width: 100%;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  background: var(--soft);
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  margin-top: 8px;
}
.project-card:hover .btn-card-action {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* ==========================================================================
   HERO EN PC / WIDESCREEN:
   - Imagen en la parte derecha con degradado suave / difuminado hacia la izquierda
   - Texto alineado a la izquierda
   ========================================================================== */
.hero {
  width: 100%;
  min-height: clamp(540px, 60vh, 720px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #ffffff;
}

/* Capa de imagen derecha con degradación suave en PC */
.hero-desktop-bg {
  position: absolute;
  right: 0;
  top: 0;
  width: 60%;
  height: 100%;
  background-size: cover;
  background-position: center right;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.35) 15%, rgba(0,0,0,0.85) 38%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.35) 15%, rgba(0,0,0,0.85) 38%, black 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-copy {
  width: clamp(52%, 50vw, 65%);
  padding: clamp(40px, 5vw, 70px) 0;
}

.kicker { color: var(--orange); font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
h1 {
  font-size: clamp(36px, 4.2vw, 62px);
  line-height: 1.05;
  color: var(--navy);
  margin: 14px 0 16px;
  letter-spacing: -1.6px;
  font-weight: 900;
}
h1 span { color: var(--orange); }
.lead {
  font-size: clamp(15px, 1.18vw, 18px);
  line-height: 1.6;
  max-width: 620px;
  color: #344054;
}
.actions { display: flex; gap: 12px; margin: 24px 0 28px; flex-wrap: wrap; }
.stats { display: flex; gap: 0; margin-top: 14px; }
.stat { padding: 0 clamp(14px, 1.8vw, 28px); border-left: 1px solid #dfe4ec; }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat b { display: block; color: var(--navy); font-size: clamp(19px, 1.7vw, 25px); font-weight: 900; }
.stat span { font-size: 13px; color: #667085; }

/* Calculadora */
.calculator { margin-top: -45px; position: relative; z-index: 10; }
.calc-card {
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(12,35,72,.08);
  padding: clamp(22px, 2.8vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(22px, 2.8vw, 44px);
}
.calc-card h2 { margin: 0 0 8px; color: var(--navy); font-size: clamp(20px, 1.8vw, 26px); font-weight: 800; letter-spacing: -0.5px; }
.calc-card p { color: var(--muted); margin: 0 0 18px; font-size: 14px; line-height: 1.5; }
.input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #cfd6e2;
  border-radius: 10px;
  padding: 0 16px;
  height: 64px;
  margin: 12px 0 10px;
  background: #fff;
}
.input-wrap:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244,123,0,0.12);
}
input[type="number"] {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 34px;
  font-weight: 900;
  color: var(--navy);
  text-align: center;
  font-family: inherit;
}
.unit { font-weight: 700; color: #344054; white-space: nowrap; font-size: 15px; }
.slider-range {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 4px;
  outline: none;
  accent-color: var(--orange);
  cursor: pointer;
  margin: 8px 0 12px;
}
.calc-helper-btn {
  background: none;
  border: none;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.calc-helper-btn:hover { color: var(--orange); }

.result { border: 1px solid #e0e6ee; border-radius: 12px; overflow: hidden; background: #fff; }
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid #e9edf3;
  font-size: 14px;
}
.row:last-child { border-bottom: 0; }
.row strong { color: var(--navy); font-size: 16px; font-weight: 800; }
.row.highlight-row { background: #fdf9f4; }
.row.highlight-row strong { color: var(--orange); font-size: 18px; }
.note { font-size: 12px; color: #667085; line-height: 1.45; margin-top: 12px; }

.calc-bottom {
  grid-column: 1/-1;
  border-top: 1px solid #edf0f4;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.calc-bottom-text h4 { margin: 0 0 4px; font-size: 15px; color: var(--navy); font-weight: 800; }
.calc-bottom-text p { margin: 0; font-size: 13px; color: var(--muted); }

/* Secciones Generales */
.section { width: 100%; padding: clamp(54px, 5.5vw, 85px) 0; }
.center { text-align: center; }
.section h2 {
  font-size: clamp(26px, 2.3vw, 38px);
  color: var(--navy);
  margin: 0 0 12px;
  letter-spacing: -.8px;
  font-weight: 800;
}
.sub {
  color: var(--muted);
  max-width: 740px;
  margin: 0 auto 38px;
  line-height: 1.6;
  font-size: clamp(14px, 1.05vw, 15.5px);
}

/* Beneficios */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}
.benefit { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: transform .2s ease; }
.benefit:hover { transform: translateY(-3px); border-color: #cfd8e3; }
.icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--orange-light);
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.benefit h3 { color: var(--navy); margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.benefit p { color: var(--muted); line-height: 1.55; margin: 0; font-size: 14px; }

/* Diagrama */
.how { background: var(--soft); }
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(8px, 1.2vw, 16px);
  align-items: stretch;
}
.step { text-align: center; padding: 22px 12px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.step .num { font-size: 12px; color: var(--orange); font-weight: 900; display: block; margin-bottom: 6px; }
.step .step-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 20px;
}
.step h3 { font-size: 15px; color: var(--navy); margin: 0 0 6px; font-weight: 800; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 0; }

/* Proceso */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.8vw, 28px);
}
.process-card { padding: 28px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.process-card .n { font-size: 32px; font-weight: 900; color: var(--orange); margin-bottom: 6px; }
.process-card h3 { color: var(--navy); margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.process-card p { color: var(--muted); line-height: 1.55; font-size: 14px; margin: 0; }

/* Slider Proyectos */
.projects-slider-container { position: relative; margin-top: 10px; }
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--navy);
  box-shadow: 0 6px 16px rgba(11,43,99,0.12);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 20;
  transition: all .2s ease;
  font-size: 20px;
}
.slider-nav-btn:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.slider-prev { left: -22px; }
.slider-next { right: -22px; }

.projects-track {
  display: flex;
  gap: clamp(14px, 1.8vw, 24px);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 4px 18px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.projects-track::-webkit-scrollbar { display: none; }

.project-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 290px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(11,43,99,0.1);
  border-color: #cfd8e3;
}
.project-img-box {
  position: relative;
  height: 195px;
  overflow: hidden;
}
.project-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.project-card:hover .project-img-box img { transform: scale(1.04); }
.project-badge-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(11,43,99,0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
}
.project-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
.project-body b {
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}
.project-body small {
  color: var(--muted);
  font-size: 12.5px;
  display: block;
  margin-bottom: 10px;
}

/* Modal Popup Proyectos */
.modal-project-box {
  background: #fff;
  border-radius: 18px;
  max-width: 820px;
  width: 100%;
  padding: clamp(20px, 3vw, 34px);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.project-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  margin-top: 14px;
}
.gallery-main {
  border-radius: 12px;
  overflow: hidden;
  height: 240px;
  background: #edf2f7;
  margin-bottom: 10px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery-thumb {
  height: 65px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease;
}
.gallery-thumb.active-thumb, .gallery-thumb:hover { border-color: var(--orange); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.modal-specs-list { margin-top: 12px; }
.spec-box {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 8px;
}
.spec-box h5 {
  margin: 0 0 3px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}
.spec-box p {
  margin: 0;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.45;
}

/* Mantenimiento */
.maint-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
}
.maint-box-content { flex: 1; }
.maint-box h3 { margin: 0 0 6px; color: var(--navy); font-size: clamp(17px, 1.6vw, 20px); font-weight: 800; }
.maint-box p { margin: 0; color: var(--muted); font-size: 14px; max-width: 750px; line-height: 1.5; }
.maint-box-btn-wrap { flex-shrink: 0; }

/* FAQ */
.faq-wrap { max-width: 900px; margin: 0 auto; }
.faq-category-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.faq-tab-btn {
  padding: 9px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.faq-tab-btn.active, .faq-tab-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: all .2s ease;
}
.faq-item.active {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(11,43,99,0.05);
}
.faq-btn {
  width: 100%;
  padding: 18px 22px;
  text-align: left;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  border: 0;
  background: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}
.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 11px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--orange-light);
  color: var(--orange);
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease-out;
  padding: 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.faq-item.active .faq-content { padding-bottom: 18px; }

/* Contacto y Formulario */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: clamp(20px, 3vw, 36px);
}
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 34px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-field label { font-size: 13px; font-weight: 700; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cfd6e2;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.form-field textarea { height: 85px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--orange);
}

.upload-zone {
  border: 1.5px dashed #CBD5E1;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  background: #FAFCFE;
  cursor: pointer;
  position: relative;
}
.upload-zone:hover {
  border-color: var(--orange);
  background: #FFF4ED;
}
.upload-zone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-preview {
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
}

/* CTA */
.cta-wrapper {
  width: 100%;
  padding: 0 clamp(16px, 3.5vw, 64px);
  margin: 15px auto 65px;
}
.cta {
  max-width: 1600px;
  margin: 0 auto;
  border-radius: 20px;
  padding: clamp(28px, 3.5vw, 44px) clamp(28px, 4vw, 50px);
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cta h2 { color: #fff; margin: 0 0 5px; font-size: clamp(24px, 2.3vw, 34px); font-weight: 900; }
.cta p { margin: 0; color: #d9e2f2; font-size: clamp(14px, 1.05vw, 16px); }

/* Footer */
footer {
  width: 100%;
  background: var(--navy-dark);
  color: #fff;
  padding: 55px 0 25px;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(26px, 3.5vw, 50px);
  margin-bottom: 38px;
}
footer .footer-logo { width: 170px; filter: brightness(0) invert(1); margin-bottom: 14px; }
footer p, footer a { color: #c8d3e5; font-size: 13px; line-height: 1.7; }
footer a:hover { color: var(--orange); }
.footer-title { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 14px; color: #fff; }

.social-icons { display: flex; gap: 10px; margin-top: 16px; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: grid;
  place-items: center;
  color: #fff;
  transition: all 0.2s ease;
}
.social-btn:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}
.social-btn svg { width: 16px; height: 16px; fill: currentColor; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8da0be;
}

/* WhatsApp Flotante */
.whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #18b96b;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
  z-index: 99;
  cursor: pointer;
  transition: transform .2s ease;
}
.whatsapp:hover { transform: scale(1.08); }
.whatsapp svg { width: 30px; height: 30px; fill: currentColor; }

/* Modales */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11,43,99,0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}
.modal.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 14px;
  max-width: 440px;
  width: 100%;
  padding: 26px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all .2s ease;
}
.modal-close:hover {
  background: var(--soft);
  color: var(--navy);
}

/* ==========================================================================
   ADAPTACIÓN RESPONSIVA MÓVIL EXACTA (<= 900px)
   ========================================================================== */
@media(max-width: 1100px) {
  .flow { grid-template-columns: repeat(3, 1fr); }
  .project-card { flex: 0 0 calc(50% - 12px); }
}

@media(max-width: 900px) {
  /* 1. Menú Hamburguesa Móvil */
  .menu-toggle {
    display: block;
  }
  
  nav#navMenu {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 14px;
    box-shadow: 0 14px 28px rgba(11,43,99,0.12);
    border-bottom: 1px solid var(--line);
    z-index: 999;
  }
  nav#navMenu.open {
    display: flex;
  }
  nav#navMenu a {
    width: 100%;
    padding: 6px 0;
    font-size: 15px;
    border-bottom: 1px dashed var(--soft);
  }

  /* 2. HERO EN MÓVIL:
     - En dispositivos móviles NO se muestra la imagen en el Hero
     - Se ajustan los textos y estadísticas
  */
  .logo {
    width: 140px;
    max-height: 48px;
  }
  .hero {
    min-height: auto;
    background: #ffffff;
    padding: 24px 0 28px;
    display: block;
  }
  .hero-desktop-bg {
    display: none !important;
  }
  .hero .container {
    min-height: auto;
    display: block;
  }
  .hero-copy {
    width: 100%;
    padding: 0;
  }
  h1 { font-size: 34px; letter-spacing: -1px; }
  .lead { font-size: 15px; }
  .stats {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    flex-direction: column;
    gap: 10px;
  }
  .stat {
    padding: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
  }
  .stat:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  /* 3. Cotizador y Grids */
  .calculator { margin-top: 10px; }
  .calc-card { grid-template-columns: 1fr; padding: 20px; }
  .calc-bottom { grid-column: auto; flex-direction: column; align-items: stretch; }
  .benefits, .process { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  
  /* 4. Proyectos Slider en Móvil */
  .project-card { flex: 0 0 88%; }
  .slider-prev { left: -6px; }
  .slider-next { right: -6px; }
  .project-modal-grid { grid-template-columns: 1fr; }

  /* 5. Botón de Mantenimiento Móvil integrado dentro del marco */
  .maint-box {
    flex-direction: column;
    align-items: stretch;
    padding: 22px;
    gap: 18px;
  }
  .maint-box-content { width: 100%; }
  .maint-box-btn-wrap {
    width: 100%;
  }
  .maint-box-btn-wrap .btn {
    width: 100%;
    text-align: center;
  }

  /* 6. CTA y Footer */
  .cta {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 16px;
  }
  .cta .btn { width: 100%; }
  footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}