/*
 * Estilos específicos de la landing LEPAS L6 (lepas-l6.html).
 * Incluye variables :root propias de esta página.
 */

    :root {
      --bg: #0f1113;
      --panel: rgba(21, 24, 28, 0.92);
      --panel-strong: rgba(25, 29, 34, 0.98);
      --text: #f6f1ea;
      --muted: #b9b0a3;
      --line: rgba(255, 255, 255, 0.09);
      --brand: #c98a2e;
      --brand-strong: #e0a64a;
      --brand-text: #111317;
      --maxw: 1240px;
      --hero-bg: url("../../img/lepas6/lepas-l6-hero.jpg");
    }

    body {
      margin: 0;
      font-family: "SourceHan", Arial, sans-serif;
      background: radial-gradient(circle at 15% 0%, #1b2025 0%, var(--bg) 42%) fixed;
      color: var(--text);
      line-height: 1.5;
    }

    a { color: inherit; }

    .page-hero {
      padding: 38px 0 24px;
    }

    .brand-video-hero {
      position: relative;
      width: 100%;
      min-height: 82vh;
      overflow: hidden;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      background: #0b0d0f;
    }

    .brand-video-hero video {
      width: 100%;
      height: 82vh;
      object-fit: cover;
      object-position: center center;
      display: block;
    }

    .brand-video-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(180deg, rgba(7, 9, 11, 0.34) 0%, rgba(7, 9, 11, 0.6) 68%, rgba(7, 9, 11, 0.9) 100%),
        linear-gradient(120deg, rgba(11, 13, 16, 0.62) 0%, rgba(11, 13, 16, 0.08) 48%);
      pointer-events: none;
    }

    .brand-video-hero__content {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: flex-end;
      z-index: 1;
      padding-bottom: 56px;
    }

    .brand-video-hero__panel {
      max-width: 680px;
    }

    .brand-video-hero__title {
      margin: 10px 0 0;
      font-size: clamp(34px, 5vw, 66px);
      line-height: 1.02;
      letter-spacing: -0.03em;
    }

    .brand-video-hero__desc {
      margin: 16px 0 0;
      color: #d3d8de;
      max-width: 54ch;
      font-size: 16px;
      line-height: 1.55;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 28px;
      align-items: start;
    }

    .hero-copy,
    .hero-visual {
      border: 1px solid var(--line);
      border-radius: 28px;
      background: rgba(20, 23, 27, 0.88);
      overflow: hidden;
      box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
      min-height: 100%;
      height: 100%;
      align-self: start;
    }

    .hero-copy {
      padding: 34px;
      display: grid;
      align-content: center;
      gap: 18px;
      background:
        linear-gradient(180deg, rgba(25, 29, 34, 0.96), rgba(15, 17, 19, 0.86)),
        var(--hero-bg) center/cover no-repeat;
    }

    .eyebrow {
      margin: 0;
      color: var(--brand-strong);
      text-transform: uppercase;
      letter-spacing: 0.16em;
      font-size: 12px;
      font-weight: 700;
    }

    h1, h2, h3, p { margin-top: 0; }
    h1 {
      margin-bottom: 0;
      font-size: clamp(34px, 4.5vw, 62px);
      line-height: 0.98;
      letter-spacing: -0.04em;
    }

    .hero-copy p {
      color: var(--muted);
      font-size: 17px;
      max-width: 60ch;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 4px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 12px 18px;
      border-radius: 999px;
      text-decoration: none;
      border: 1px solid transparent;
      font-weight: 700;
      letter-spacing: 0.04em;
      transition: transform .2s ease, background .2s ease, border-color .2s ease;
    }

    .btn:hover { transform: translateY(-1px); }
    .btn-primary { background: var(--brand); color: #000; }
    .btn-primary:hover { background: var(--brand-strong); }
    .btn-secondary { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.03); color: var(--text); }
    .btn-secondary:hover { border-color: rgba(201,138,46,.5); }
    .hero-actions--toggle {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .hero-actions--toggle .model-toggle {
      width: 100%;
    }
    .model-toggle {
      min-width: 152px;
      justify-content: center;
      transition: border-color .2s ease, background-color .2s ease, color .2s ease;
    }
    .model-toggle.is-active {
      background: var(--brand);
      border-color: var(--brand);
      color: #000;
    }

    .stat-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      align-items: stretch;
    }

    .stat {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      padding: 14px 16px;
      min-height: 96px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      box-sizing: border-box;
    }

    .stat strong {
      display: block;
      font-size: 24px;
      color: var(--text);
      line-height: 1.05;
    }

    .stat span {
      display: block;
      margin-top: 6px;
      color: var(--muted);
      font-size: 12px;
    }

    .hero-visual {
      display: flex;
      flex-direction: column;
      align-content: stretch;
      background: linear-gradient(180deg, rgba(17, 20, 24, 0.95), rgba(15, 17, 19, 0.92));
      margin: 0;
    }

    .hero-visual__image {
      flex: 1 1 auto;
      min-height: 440px;
      object-fit: cover;
      width: 100%;
      height: auto;
    }

    .hero-visual__meta {
      flex: none;
      padding: 18px 20px 20px;
      display: grid;
      gap: 14px;
      border-top: 1px solid var(--line);
    }

    .hero-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .tag {
      display: inline-flex;
      align-items: center;
      padding: 7px 11px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.08);
      background: rgba(255,255,255,.04);
      color: var(--muted);
      font-size: 12px;
      letter-spacing: .05em;
      text-transform: uppercase;
    }

    .page-section {
      padding: 26px 0;
    }

    .section-shell {
      border: 1px solid var(--line);
      border-radius: 28px;
      background: rgba(20, 23, 27, 0.74);
      overflow: hidden;
      box-shadow: 0 24px 60px rgba(0,0,0,.18);
      padding: 28px;
    }

    .section-header {
      display: grid;
      gap: 10px;
      margin-bottom: 20px;
    }

    .section-header h2 {
      font-size: clamp(24px, 2.7vw, 40px);
      line-height: 1.02;
      margin-bottom: 0;
      letter-spacing: -0.03em;
    }

    .section-header p {
      color: var(--muted);
      max-width: 72ch;
      margin-bottom: 0;
    }

    .section-title {
      margin: 0 0 18px;
      font-size: clamp(28px, 3.4vw, 44px);
      letter-spacing: -0.02em;
    }

    .section-lead {
      margin: 0;
      color: var(--muted);
      max-width: 70ch;
    }
    .cards-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      align-items: stretch;
    }

    .tech-comparison {
      display: grid;
      gap: 16px;
      margin-top: 28px;
    }

    .tech-common,
    .tech-panel {
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 24px;
      background: rgba(255,255,255,.03);
    }

    .tech-common {
      padding: 22px;
    }

    .tech-common__head {
      display: grid;
      gap: 8px;
      margin-bottom: 16px;
    }

    .tech-common__chips {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .tech-chip {
      display: inline-flex;
      align-items: center;
      min-height: 38px;
      padding: 8px 14px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.08);
      background: rgba(255,255,255,.04);
      color: var(--text);
      font-size: 13px;
      line-height: 1.15;
    }

    .tech-panels {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .tech-panel {
      padding: 22px;
      display: grid;
      gap: 18px;
      background:
        linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)),
        rgba(255,255,255,.03);
    }

    .tech-panel__head {
      display: grid;
      gap: 10px;
    }

    .tech-panel__head h3 {
      margin: 0;
      font-size: 24px;
      line-height: 1.05;
    }

    .tech-panel__lead {
      margin: 0;
      color: var(--muted);
      max-width: 62ch;
    }

    .tech-stats {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .tech-stat {
      padding: 14px 15px;
      border-radius: 18px;
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.06);
    }

    .tech-stat strong {
      display: block;
      font-size: 22px;
      line-height: 1.02;
      color: var(--text);
      margin-bottom: 6px;
    }

    .tech-stat span {
      display: block;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.35;
    }

    .card {
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 22px;
      background: rgba(255,255,255,.03);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      min-height: 100%;
    }

    .card img {
      width: 100%;
      height: 260px;
      object-fit: cover;
    }

    .card-media {
      position: relative;
      height: 260px;
      overflow: hidden;
      background: #0d1013;
    }

    .card-media__track {
      position: relative;
      width: 100%;
      height: 100%;
    }

    .card-media__slide {
      position: absolute;
      inset: 0;
      opacity: 0;
      transform: scale(1.02);
      transition: opacity .6s ease, transform .8s ease;
    }

    .card-media__slide.is-active {
      opacity: 1;
      transform: scale(1);
    }

    .card-media__slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .card-media__dots {
      position: absolute;
      left: 14px;
      right: 14px;
      bottom: 14px;
      display: flex;
      gap: 8px;
      justify-content: center;
      z-index: 2;
      pointer-events: none;
    }

    .card-media__dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: rgba(255,255,255,.4);
      box-shadow: 0 0 0 1px rgba(0,0,0,.12);
      transition: transform .3s ease, background .3s ease, width .3s ease;
    }

    .card-media__dot.is-active {
      width: 22px;
      background: var(--brand);
    }

    .card-body {
      padding: 18px 18px 20px;
      display: grid;
      gap: 10px;
      flex: 1;
    }

    .card-body h3 {
      margin-bottom: 0;
      font-size: 22px;
      line-height: 1.05;
    }

    .card-body p,
    .card-body li {
      color: var(--muted);
      font-size: 15px;
    }

    .feature-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      gap: 8px;
    }

    .feature-list li {
      position: relative;
      padding-left: 18px;
    }

    .feature-list li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 10px;
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: var(--brand);
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 16px;
    }

    .gallery-item {
      border-radius: 20px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,.08);
      background: rgba(255,255,255,.03);
    }

    .gallery-item img {
      width: 100%;
      height: 220px;
      object-fit: cover;
    }

    .gallery-item figcaption {
      padding: 12px 14px 14px;
      color: var(--muted);
      font-size: 13px;
    }

    .gallery-item--wide {
      grid-column: span 2;
    }

    .collage-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-auto-rows: minmax(240px, auto);
      gap: 8px;
      margin-top: 28px;
      margin-inline: -12px;
    }

    .collage-item {
      overflow: hidden;
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,.08);
      background: rgba(255,255,255,.03);
      min-height: 220px;
    }

    .collage-item img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .color-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-top: 16px;
    }

    .tech-panel-image {
      margin-top: 18px;
      border-radius: 16px;
      border: 1px solid var(--line);
      width: 100%;
      height: 220px;
      object-fit: cover;
    }

    /* El formulario de contacto (.contact-grid, .panel, .contact-points,
       .contact-phone, form, inputs, botón, .consent-row, .lead-modal*) es un
       componente único compartido por toda la web: ver
       public/assets/css/lead-form.css (fuente de verdad de su diseño). */

    .brand-strip {
      padding: 56px 0 28px;
    }

    .brand-strip__inner {
      display: flex;
      gap: 18px;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      opacity: .94;
    }

    .brand-strip__inner img { height: 42px; width: auto; }

    .faq-list {
      display: grid;
      gap: 10px;
    }
    .faq-item {
      border: 1px solid var(--line);
      border-radius: 16px;
      background: var(--panel);
      padding: 4px 18px;
    }
    .faq-item summary {
      cursor: pointer;
      list-style: none;
      padding: 14px 0;
      font-weight: 600;
      color: var(--text);
    }
    .faq-item summary::-webkit-details-marker { display: none; }
    .faq-item summary::after {
      content: "+";
      float: right;
      color: var(--brand-strong);
    }
    .faq-item[open] summary::after { content: "−"; }
    .faq-item p {
      margin: 0 0 16px;
      color: var(--muted);
    }

    @media (max-width: 1040px) {
      .hero-grid {
        grid-template-columns: 1fr;
      }

      .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .collage-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        margin-inline: -8px;
      }

      .collage-item--large,
      .collage-item--medium,
      .collage-item--small {
        grid-column: span 3;
        min-height: 240px;
      }
    }

    @media (max-width: 760px) {
      .brand-video-hero,
      .brand-video-hero video { min-height: 72vh; height: 72vh; }
      .brand-video-hero__content { padding-bottom: 32px; }
      .brand-video-hero__title { font-size: clamp(30px, 8vw, 44px); }
      .brand-video-hero__desc { font-size: 14px; }
      .hero-copy { padding: 24px; }
      .hero-copy p { font-size: 15px; }
      .stat-grid,
      .cards-grid,
      .gallery-grid,
      .color-grid {
        grid-template-columns: 1fr;
      }
      .gallery-item--wide { grid-column: auto; }
      .collage-grid {
        grid-template-columns: 1fr;
        margin-inline: 0;
      }
      .collage-item--large,
      .collage-item--medium,
      .collage-item--small {
        grid-column: auto;
        min-height: 220px;
      }
      .hero-visual__image { min-height: 300px; }
      .section-shell { padding: 20px; border-radius: 22px; }
    }
