/* Le Energy - CSS especifico de la pagina 'contacto'. Carga DESPUES del nucleo. */

/* ── Banda compromiso ambiental — Bajas emisiones CO₂ / DS N°38 (decorativa, foto de fondo) ── */
.eco-band {
  background: url('/wp-content/uploads/leenergy/img/motor-detalle.jpg') center / cover no-repeat;
  color: #fff; position: relative; overflow: hidden;
}
/* Foto industrial real como fondo a todo ancho */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/wp-content/uploads/leenergy/img/despacho-grua.jpg') center 35% / cover no-repeat;
  pointer-events: none;
}
/* Hero visual — panel de vidrio con datos (la foto ahora es el fondo del hero) */
.hero-visual {
  position: relative; align-self: center;
  background: rgba(20,20,21,.42); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg);
  padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.hero-photo-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-family: var(--ff-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  background: rgba(42,42,43,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15); color: var(--white);
  padding: 7px 13px; border-radius: var(--r-pill);
}
.hero-photo-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
/* ═══════════════ LÍNEAS DE NEGOCIO (verde protagonista + foto de faena tenue) ═══════════════ */
.lines-section {
  background: url('/wp-content/uploads/leenergy/img/flota-equipos.jpg') center / cover no-repeat fixed;
  border: none; position: relative; overflow: hidden;
}
.lines-section .section-head .eyebrow { color: rgba(255,255,255,.85); }
.lines-section .section-head h2 { color: var(--white); }
.lines-section .section-head p { color: rgba(255,255,255,.82); }
.product-footer .link {
  font-family: var(--ff-head); font-weight: 600; font-size: 13px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 4px;
}
.case-cover .case-label .id {
  font-family: var(--ff-mono); font-size: 11px; color: var(--green);
  font-weight: 600; letter-spacing: 0.14em; margin-bottom: 6px;
}
.case-cover .case-label .nm {
  font-family: var(--ff-head); font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
}
.case-cover .badge-img {
  position: absolute; top: 20px; right: 20px; z-index: 1;
  font-family: var(--ff-mono); font-size: 10px; font-weight: 600; color: var(--green);
  background: rgba(27,164,95,.12); border: 1px solid rgba(27,164,95,.3);
  padding: 6px 10px; border-radius: var(--r-pill); letter-spacing: 0.12em; text-transform: uppercase;
}
.case-cover .case-power .lbl {
  font-family: var(--ff-mono); font-size: 9px; color: var(--green);
  letter-spacing: 0.16em; text-transform: uppercase; margin-top: 5px; font-weight: 600;
}
.ceo-portrait {
  aspect-ratio: 1;
  background: radial-gradient(circle at 30% 30%, rgba(27,164,95,.3), transparent 50%), linear-gradient(135deg, #3A393A 0%, #2A2A2B 100%);
  border-radius: var(--r-md); position: relative; display: grid; place-items: center;
  color: var(--green); font-family: var(--ff-head); font-weight: 700; font-size: 96px; letter-spacing: -0.04em;
}
.ceo-signature { display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 24px; }
.clients-strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.client-logo {
  aspect-ratio: 16/9; border-radius: var(--r-md);
  display: grid; place-items: center; position: relative; overflow: hidden;
  background: var(--line-soft);
}
.client-logo svg { width: 40px; height: 40px; color: #C9CBD0; stroke-width: 1.4; }
/* shimmer sutil para comunicar "espacio reservado" */
.client-logo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: client-shimmer 2.6s ease-in-out infinite;
}
@keyframes client-shimmer {
  0% { background-position: 180% 0; }
  100% { background-position: -60% 0; }
}
@media (prefers-reduced-motion: reduce) { .client-logo::after { animation: none; } }
.cta-final .eyebrow { color: rgba(255,255,255,.85); }
.cta-final h2 { font-family: var(--ff-head); font-size: 52px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 20px; }
.cta-final > .cta-grid > div > p { font-size: 18px; opacity: .9; }
.case-cover.has-photo .case-label, .case-cover.has-photo .badge-img { z-index: 2; }
/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 960px) {
  .hero h1 { font-size: 42px; }
  .hero-grid, .publico-grid, .cta-grid, .ceo-card { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 340px; }
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .stat-item { padding: 0; border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 24px; }
  .stat-item:last-child { border-bottom: none; padding-bottom: 0; }
  .lines-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr 1fr; }
  .catalogo-grid { grid-template-columns: 1fr 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .sectores-grid { grid-template-columns: 1fr; }
  .clients-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .ceo-card { padding: 40px; }
  .ceo-portrait { max-width: 240px; margin: 0 auto; }
  .stat-value, .cta-final h2 { font-size: 42px; }
  #cotizar .coti-grid { grid-template-columns: minmax(0, 1fr) !important; }
  #cotizar .coti-grid > * { min-width: 0; }
  .coti-aside { position: static !important; top: auto; }

  /* ── Menú móvil ── */
  .header-row { flex-wrap: wrap; }
  .menu-toggle { display: flex; order: 3; margin-left: 4px; }
  .header-cta { order: 2; margin-left: auto; }
  #primary-nav { order: 4; width: 100%; }
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-top: 12px;
    border-top: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .main-nav li { width: 100%; }
  .main-nav a {
    display: block;
    width: 100%;
    padding: 14px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--line-soft);
  }
  .main-nav a.active::after { display: none; }
  .main-nav a.active { color: var(--green-dark); }

  /* Dropdown como acordeón en móvil */
  .nav-parent {
    width: 100%;
    justify-content: space-between;
    padding: 14px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--line-soft);
  }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0;
    background: var(--bg-soft, #f4f6f5);
    border-radius: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .dropdown.open { max-height: 320px; }
  .dropdown a {
    padding: 13px 18px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }
  .dropdown::before { display: none; }
}
@media (max-width: 560px) {
  .solutions-grid, .catalogo-grid, .footer-grid, .clients-strip { grid-template-columns: 1fr; }
  #cotizar .need-grid { grid-template-columns: 1fr !important; }
  .hero-visual { height: 280px; }
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 32px; }
  .section-head h2 { font-size: 28px; }
}
/* ═══ Formulario de cotización fusionado (scoped #cotizar) ═══ */
/* LAYOUT */
.coti-layout { padding: 64px 0 90px; }
#cotizar .coti-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 40px; align-items: start; }
/* FORM CARD */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; box-shadow: 0 8px 32px rgba(42,42,43,.04); }
#cotizar .form-card > h2 { font-family: var(--ff-head); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 6px; }
#cotizar .form-card > .lead { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
#cotizar .field { margin-bottom: 22px; }
#cotizar .field > label { display: block; font-family: var(--ff-head); font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 9px; }
#cotizar .field > label .req { color: var(--green-dark); }
#cotizar .field input[type=text], #cotizar .field input[type=email], #cotizar .field input[type=tel], #cotizar .field select, #cotizar .field textarea {
  width: 100%; font-family: var(--ff-body); font-size: 14px; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg); transition: border .15s, box-shadow .15s; outline: none;
}
#cotizar .field input:focus, #cotizar .field select:focus, #cotizar .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); background: var(--white); }
#cotizar .field textarea { resize: vertical; min-height: 110px; }
#cotizar .field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
#cotizar .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* NEED TYPE — segmented options */
.need-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#cotizar .need-opt { position: relative; }
#cotizar .need-opt input { position: absolute; opacity: 0; pointer-events: none; }
#cotizar .need-opt label {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px;
  transition: border .15s, background .15s; font-family: var(--ff-head); font-weight: 600; font-size: 14px; color: var(--ink);
}
#cotizar .need-opt label .ic { width: 38px; height: 38px; flex-shrink: 0; border-radius: var(--r-sm); background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; transition: background .15s, color .15s; }
#cotizar .need-opt label .ic svg { width: 20px; height: 20px; stroke-width: 1.8; }
#cotizar .need-opt label .txt small { display: block; font-family: var(--ff-body); font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 1px; }
#cotizar .need-opt input:checked + label { border-color: var(--green); background: var(--green-soft); }
#cotizar .need-opt input:checked + label .ic { background: var(--green); color: var(--white); }
#cotizar .need-opt input:focus-visible + label { box-shadow: 0 0 0 3px var(--green-soft); }
/* CONDITIONAL BLOCKS */
.cond { display: none; padding: 22px; background: var(--bg); border: 1px dashed var(--line); border-radius: var(--r-md); margin-bottom: 22px; animation: fade .25s ease; }
#cotizar .cond.active { display: block; }
#cotizar .cond .cond-title { font-family: var(--ff-head); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
#cotizar .cond .cond-title::before { content: ''; width: 18px; height: 1px; background: var(--green); }
#cotizar .cond .field:last-child { margin-bottom: 0; }
@keyframes fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
#cotizar .form-divider { height: 1px; background: var(--line); margin: 4px 0 26px; }
#cotizar .form-section-label { font-family: var(--ff-head); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
#cotizar .privacy { font-size: 12px; color: var(--muted); margin-top: 18px; line-height: 1.5; }
#cotizar .privacy a { color: var(--green-dark); font-weight: 600; }
/* ASIDE */
.coti-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }
#cotizar .aside-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
#cotizar .aside-card.dark { background: var(--ink); color: var(--white); border: none; }
#cotizar .aside-card h3 { font-family: var(--ff-head); font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 18px; letter-spacing: -0.01em; }
#cotizar .aside-card.dark h3 { color: var(--white); }
#cotizar .aside-card.dark .label { font-family: var(--ff-mono); font-size: 11px; font-weight: 600; color: var(--green); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 20px; }
#cotizar .steps-list { list-style: none; padding: 0; }
#cotizar .steps-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
#cotizar .steps-list li:last-child { border-bottom: none; padding-bottom: 0; }
#cotizar .steps-list .n { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); font-family: var(--ff-head); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
#cotizar .steps-list .st strong { display: block; font-family: var(--ff-head); font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 1px; }
#cotizar .steps-list .st span { font-size: 12.5px; color: var(--muted); }
#cotizar .channel { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
#cotizar .channel:last-child { border-bottom: none; }
#cotizar .channel-icon { width: 40px; height: 40px; border-radius: var(--r-sm); background: rgba(27,164,95,.15); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
#cotizar .channel-icon svg { width: 18px; height: 18px; }
#cotizar .channel-text strong { font-family: var(--ff-head); font-weight: 600; font-size: 14px; display: block; }
#cotizar .channel-text span { font-family: var(--ff-mono); font-size: 12px; color: rgba(255,255,255,.55); }
#cotizar .aside-card.dark .wa-cta { margin-top: 18px; }
#cotizar .branches { display: grid; gap: 16px; }
#cotizar .branch { font-size: 13px; }
#cotizar .branch .b-name { font-family: var(--ff-head); font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
#cotizar .branch .b-name svg { width: 15px; height: 15px; stroke: var(--green); }
#cotizar .branch .b-addr { color: var(--ink-soft); padding-left: 22px; }

/* ============================================================
   FIX CF7 — normaliza el markup que CF7/WP inyectan en los
   radios de "¿Qué necesitas?".
   CF7 envuelve el <input> en 3 <span> y añade su propia etiqueta
   de texto con el valor crudo ("venta", "arriendo"…), y el
   autoformato de WP mete <p>/<br> dentro de las tarjetas.
   Sin esto, el texto crudo queda flotando fuera de la tarjeta y
   el estado :checked nunca pinta (el input deja de ser hermano
   adyacente del label).
   ============================================================ */

/* 1. Ocultar la etiqueta de texto que genera CF7 */
#cotizar .need-opt .wpcf7-list-item-label { display: none; }

/* 2. Los wrappers de CF7 no deben ocupar espacio ni romper el flujo */
#cotizar .need-opt .wpcf7-form-control-wrap,
#cotizar .need-opt .wpcf7-radio,
#cotizar .need-opt .wpcf7-list-item { display: block; margin: 0; position: static; }

/* 3. El <label> que CF7 crea alrededor del input no debe verse como tarjeta */
#cotizar .need-opt .wpcf7-list-item > label { all: unset; display: block; }

/* 4. Neutralizar <br> y <p> inyectados por el autoformato de WP */
#cotizar .need-opt br { display: none; }
#cotizar .need-opt p { margin: 0; padding: 0; }

/* 5. El radio de CF7 se ESTIRA sobre toda la tarjeta y queda invisible.
      Así el clic en cualquier parte de la tarjeta lo marca.
      No se puede usar el <label for> del diseño porque CF7 movió el id
      al <span> contenedor: el for apuntaría a un span, no al input. */
#cotizar .need-opt { position: relative; }
#cotizar .need-opt input[type="radio"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer; z-index: 2;
  appearance: none; -webkit-appearance: none;
}
/* La tarjeta queda debajo del input transparente */
#cotizar .need-opt label[for] { position: relative; z-index: 1; }

/* 6. ESTADO SELECCIONADO — :has() reemplaza al selector de hermano
      adyacente, que dejó de funcionar por los wrappers de CF7 */
#cotizar .need-opt:has(input[type="radio"]:checked) label[for] { border-color: var(--green); background: var(--green-soft); }
#cotizar .need-opt:has(input[type="radio"]:checked) label[for] .ic { background: var(--green); color: var(--white); }
#cotizar .need-opt:has(input[type="radio"]:focus-visible) label[for] { box-shadow: 0 0 0 3px var(--green-soft); }
