/* Le Energy - CSS especifico de la pagina 'casos'. 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;
}
.eco-band-fuels {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16);
}
.eco-band-fuels-label {
  font-family: var(--ff-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.75);
}
.eco-band-fuels .eco-band-chips { margin-top: 12px; }
.eco-band-chips .chip.fuel {
  background: rgba(27,164,95,.9); border-color: transparent; color: #fff; font-weight: 600;
}
/* Foto industrial real como fondo a todo ancho */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/wp-content/uploads/leenergy/img/home-hero.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: 700; font-size: 13px; color: var(--green-dark);
  display: inline-flex; align-items: center; gap: 5px;
  text-decoration: underline; text-decoration-color: rgba(27,164,95,.4);
  text-underline-offset: 3px; transition: gap .15s, text-decoration-color .15s;
}
.product-footer .link:hover { gap: 9px; text-decoration-color: var(--green); }
.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 !important; }
  .catalogo-grid { grid-template-columns: 1fr 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .sectores-grid { grid-template-columns: 1fr 1fr !important; }
  .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; }

  /* ── 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, .sectores-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; }
}
/* Renders del cliente: badge DS 38 vive en la esquina inferior -> anclar abajo (arriba solo hay fondo gris) */
img[src*="render-"] { object-position: center bottom; }
.caso-card.is-hidden { display:none !important; }
.case-filter { cursor:pointer; font-family:var(--ff-mono); font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; padding:9px 18px; border-radius:999px; border:1px solid var(--line); background:var(--white); color:var(--ink-soft); transition:all .15s; }
/* ===== Casos de éxito ===== */
.casos-hero { background: linear-gradient(100deg, rgba(42,42,43,.96), rgba(20,122,71,.72)), url('/wp-content/uploads/leenergy/img/casos-banner.jpg') center 72%/cover no-repeat; color:#fff; padding: 96px 0 72px; }
.casos-hero .eyebrow.light { color: rgba(255,255,255,.85); }
.casos-hero h1 { font-family: var(--ff-head); font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing:-.02em; margin: 14px 0 16px; max-width: 860px; }
.casos-hero p { max-width: 640px; font-size: 17px; color: rgba(255,255,255,.86); line-height:1.6; }
.casos-section { padding: 80px 0; background: var(--bg); }
.caso-card { background: var(--white); border:1px solid var(--line); border-radius: var(--r-lg); overflow:hidden; margin-bottom: 40px; display:grid; grid-template-columns: 0.8fr 1fr; align-items:start; }
.caso-gallery { padding: 20px; background: var(--bg); border-right:1px solid var(--line); }
.caso-gallery .g-main { position:relative; aspect-ratio: 16/10; border-radius: var(--r-md); overflow:hidden; background: var(--ink); }
.caso-gallery .g-main img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.caso-gallery .g-badge { position:absolute; top:16px; left:16px; z-index:2; background: var(--green); color:#fff; font-family:var(--ff-mono); font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; padding:6px 12px; border-radius: var(--r-sm); }
.caso-gallery .g-thumbs { display:grid; grid-template-columns: repeat(3,1fr); gap:8px; margin-top:8px; }
.caso-gallery .g-thumb { aspect-ratio:16/10; border:2px solid var(--line); border-radius: var(--r-sm); overflow:hidden; cursor:pointer; transition: border .15s, transform .15s; background: var(--ink); }
.caso-gallery .g-thumb img { width:100%; height:100%; object-fit:cover; }
.caso-gallery .g-thumb:hover { transform: translateY(-2px); }
.caso-gallery .g-thumb.active { border-color: var(--green); }
/* placeholder de foto honesto */
.caso-gallery.is-ph .g-main { display:grid; place-items:center; color: rgba(255,255,255,.5); }
.caso-gallery.is-ph .g-ph-note { font-family:var(--ff-mono); font-size:12px; letter-spacing:.06em; text-align:center; padding:0 20px; }
.caso-gallery.is-ph .g-ph-note svg { width:44px; height:44px; display:block; margin:0 auto 10px; opacity:.5; }
.caso-body { padding: 36px 40px; }
.caso-body .caso-seg { display:inline-block; font-family:var(--ff-mono); font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color: var(--green-dark); background: var(--green-soft); padding:5px 12px; border-radius: 999px; margin-bottom: 14px; }
.caso-body h2 { font-family:var(--ff-head); font-size: 24px; font-weight:700; letter-spacing:-.02em; margin-bottom: 10px; line-height:1.25; }
.caso-meta { display:flex; flex-wrap:wrap; gap: 20px 32px; margin: 18px 0 20px; padding: 18px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.caso-meta .m { display:flex; flex-direction:column; gap:4px; }
.caso-meta .m .lbl { font-family:var(--ff-mono); font-size:10px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color: var(--muted); }
.caso-meta .m .val { font-family:var(--ff-head); font-size:15px; font-weight:600; color: var(--ink); }
.caso-body .caso-desc { font-size:14.5px; color: var(--ink-soft); line-height:1.7; }
.placeholder-txt { color: var(--muted); font-style: italic; }
@media (max-width: 900px) {
  .caso-card { grid-template-columns: 1fr; }
  .caso-gallery { border-right:none; border-bottom:1px solid var(--line); }
  .caso-body { padding: 28px 24px; }
}
