/* ============================================================
   EXPERCASA · LANDING VALORACIÓN v2 (orientada a conversión)
   Mobile-first
   ============================================================ */
:root {
  --verde:        #1B6B2A;
  --verde-oscuro: #134d1f;
  --verde-claro:  #EDF6F0;
  --verde-medio:  #cfe8d6;
  --acento:       #EFFF00;   /* amarillo fosforito Expercasa (css/miCss.css) */
  --acento-hover: #e1f000;
  --texto:        #1f2a22;
  --texto-suave:  #55625a;
  --borde:        #d5e3d9;
  --error:        #c0392b;
  --radio:        12px;
  --sombra:       0 10px 40px rgba(10,40,18,.18);
  --f-titulo: 'Poppins', system-ui, sans-serif;
  --f-texto:  'M PLUS Rounded 1c', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-texto);
  color: var(--texto);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* hueco para la barra sticky móvil */
}
img { max-width: 100%; display: block; }
a { color: var(--verde); }
h1, h2, legend { font-family: var(--f-titulo); line-height: 1.15; }
[hidden] { display: none !important; }

/* ── HEADER ─────────────────────────────────────────────── */
.header {
  background: var(--verde-oscuro);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.header-logo { width: 140px; height: auto; }
.header-tel {
  display: inline-flex; align-items: center; gap: 7px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem;
  background: rgba(255,255,255,.12);
  padding: 8px 14px; border-radius: 30px;
}
.header-tel:hover { background: rgba(255,255,255,.22); }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  background:
    linear-gradient(160deg, rgba(19,77,31,.95) 0%, rgba(27,107,42,.88) 100%),
    url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1600&q=70') center/cover no-repeat;
  padding: 26px 16px 36px;
  color: #fff;
}
.hero-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; gap: 22px;
}
.hero h1 { font-size: clamp(1.75rem, 6vw, 3rem); font-weight: 800; margin-bottom: 10px; }
.hero h1 span { color: var(--acento); }
.hero-sub { color: rgba(255,255,255,.9); font-size: 1.02rem; margin-bottom: 14px; max-width: 520px; }
.hero-sub b { color: #fff; }
.hero-checks { list-style: none; display: none; margin-bottom: 18px; }
.hero-checks li {
  position: relative; padding-left: 30px; margin-bottom: 8px;
  font-size: 1rem; color: #fff;
}
.hero-checks li::before {
  content: '✓'; position: absolute; left: 0; top: 1px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--acento); color: var(--verde-oscuro);
  font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.hero-rating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.85); }
.estrellas { color: var(--acento); letter-spacing: 2px; font-size: 1rem; }

/* ── BARRA DE CONFIANZA ─────────────────────────────────── */
.confianza { background: var(--verde-claro); padding: 18px 16px; }
.confianza-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; text-align: center;
}
.confianza b { display: block; font-family: var(--f-titulo); font-size: 1.3rem; color: var(--verde-oscuro); }
.confianza span { font-size: .82rem; color: var(--texto-suave); }

/* ── SECCIONES ──────────────────────────────────────────── */
.seccion { padding: 44px 16px; }
.seccion-alt { background: #f6f8f6; }
.seccion-inner { max-width: 1000px; margin: 0 auto; }
.seccion-estrecha { max-width: 720px; }
.seccion h2 { font-size: clamp(1.45rem, 4vw, 2rem); color: var(--verde-oscuro); text-align: center; margin-bottom: 24px; }

.pasos-lista { list-style: none; counter-reset: p; display: grid; gap: 14px; }
.pasos-lista li {
  counter-increment: p; position: relative;
  padding: 16px 16px 16px 64px;
  background: #fff; border: 1px solid var(--borde); border-radius: var(--radio);
}
.pasos-lista li::before {
  content: counter(p);
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--verde); color: #fff;
  font-family: var(--f-titulo); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.pasos-lista b { display: block; color: var(--verde-oscuro); }
.pasos-lista span { font-size: .92rem; color: var(--texto-suave); }

.test-grid { display: grid; gap: 14px; }
.test-card { background: #fff; border-radius: var(--radio); padding: 18px; box-shadow: 0 4px 18px rgba(0,0,0,.06); }
.test-stars { color: #f2b600; margin-bottom: 6px; }
.test-card blockquote { font-size: .95rem; color: #3b463e; margin-bottom: 10px; }
.test-card figcaption { font-size: .85rem; color: var(--texto-suave); }
.test-card figcaption b { color: var(--verde-oscuro); }

details { border: 1px solid var(--borde); border-radius: var(--radio); margin-bottom: 10px; background: #fff; }
summary {
  list-style: none; cursor: pointer; padding: 15px 44px 15px 16px; position: relative;
  font-weight: 700; color: var(--verde-oscuro);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--verde); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 16px 15px; color: var(--texto-suave); font-size: .95rem; }

/* ── CTA FINAL ──────────────────────────────────────────── */
.cta-final { background: var(--verde-oscuro); color: #fff; text-align: center; padding: 44px 16px; }
.cta-final h2 { font-size: clamp(1.45rem, 4vw, 2rem); margin-bottom: 6px; }
.cta-final p { color: rgba(255,255,255,.85); margin-bottom: 20px; }
.btn-cta {
  display: inline-block; padding: 16px 30px; border-radius: 10px;
  background: var(--acento); color: #1d1d1d; text-decoration: none;
  font-family: var(--f-titulo); font-weight: 700; font-size: 1.05rem;
}
.btn-cta:hover { background: var(--acento-hover); }

.footer { background: #0e3a16; color: rgba(255,255,255,.6); text-align: center; font-size: .78rem; padding: 18px 16px; }
.footer a { color: rgba(255,255,255,.75); }

/* ── ESCRITORIO ─────────────────────────────────────────── */
@media (min-width: 860px) {
  body { padding-bottom: 0; }
  .header { padding: 12px 32px; }
  .header-logo { width: 170px; }
  .hero { padding: 56px 32px 64px; }
  .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
  .hero-sub { font-size: 1.15rem; margin-bottom: 22px; }
  .hero-checks { display: block; }
  .confianza-inner { grid-template-columns: repeat(4, 1fr); }
  .pasos-lista, .test-grid { grid-template-columns: repeat(3, 1fr); }
  .seccion { padding: 64px 32px; }
}
@media (max-width: 380px) {
  .header-tel span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Teléfono en la pantalla "sin valoración" */
.sin-tel { text-align: left; margin-top: 6px; }
