/*
 * Estilos específicos de la home de marca (index.html).
 * Página de nivel superior centrada en LEPAS PROCHERY como distribuidor
 * oficial (no en un modelo concreto): hero de marca, selector de los 3
 * modelos, bloque de confianza sobre Grupo Marmo y contacto general.
 * Reutiliza la paleta y patrones visuales de tecnologia.css/lepas-l8.css.
 */

:root {
  --bg: #0f1113;
  --panel: #15191c;
  --panel-soft: #1d2328;
  --line: #2a333a;
  --text: #f4f6f8;
  --muted: #a5b0ba;
  --brand: #c98a2e;
  --brand-strong: #e0a64a;
  --brand-text: #111317;
  --radius-lg: 22px;
  --radius-md: 14px;
  --maxw: 1240px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

body {
  margin: 0;
  font-family: "SourceHan", "Segoe UI", 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; }

section { padding: 64px 0; }

.eyebrow {
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1, h2, h3, p { margin-top: 0; }

.section-title {
  margin: 0 0 18px;
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
  font-size: 16px;
}

/* Hero de marca: imagen a pantalla completa con el texto sobrepuesto */
.home-hero {
  position: relative;
  padding: 0;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 17, 19, .90) 0%, rgba(15, 17, 19, .70) 34%, rgba(15, 17, 19, .2) 60%, rgba(15, 17, 19, 0) 74%),
    linear-gradient(180deg, rgba(15, 17, 19, 0) 0%, rgba(15, 17, 19, .3) 55%, rgba(15, 17, 19, .85) 100%);
  z-index: 1;
}

.home-hero .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 580px;
  margin: 0;
  padding: 150px 0 56px;
  text-align: left;
}

.home-hero h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-copy p {
  color: var(--muted);
  font-size: 16px;
  margin: 20px 0 30px;
  max-width: 54ch;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  background: rgba(21, 25, 28, .72);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-md);
  padding: 14px;
  backdrop-filter: blur(6px);
}
.metric strong { font-size: 20px; display: block; }
.metric span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }

/* Selector de modelos */
.model-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.model-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.model-card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.model-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.model-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.model-card__tag {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(201, 138, 46, 0.14);
  color: var(--brand-strong);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.model-card__body h3 {
  font-size: 20px;
  margin: 0;
}

.model-card__body p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  flex: 1;
}

.model-card__cta {
  margin-top: 4px;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Bloque de confianza: Grupo Marmo */
.trust-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.trust-block__media {
  height: 100%;
}

.trust-block__media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.trust-block__copy ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.trust-block__copy li {
  padding-left: 26px;
  position: relative;
  color: var(--muted);
}

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

.trust-block__copy li strong { color: var(--text); }

.trust-block__link {
  display: inline-block;
  margin-top: 20px;
  color: var(--brand-strong);
  text-decoration: none;
  font-size: 14px;
}
.trust-block__link:hover { text-decoration: underline; }

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}
.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);
}

/* El formulario de contacto general (.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 {
  background: #13171b;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 24px;
  padding: 34px 0;
}

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

.brand-strip img { height: 30px; width: auto; opacity: .92; }

@media (max-width: 900px) {
  .model-grid,
  .trust-block {
    grid-template-columns: 1fr;
  }
  .home-hero { min-height: 500px; }
  .home-hero .hero-copy { padding: 110px 0 40px; }
  .hero-metrics { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  section { padding: 44px 0; }
  .home-hero { min-height: 440px; }
  .home-hero .hero-copy { padding: 76px 0 32px; }
  .hero-metrics { grid-template-columns: 1fr; }
}
