/* =========================================================
   José Luis Otero Saavedra — Agente de Caser Seguros
   Hoja de estilos compartida
   ========================================================= */

:root {
  --color-primary: #007363;
  --color-primary-dark: #00564a;
  --color-primary-light: #e6f0ee;
  --color-accent: #c15807;
  --color-accent-dark: #9c4706;
  --color-text: #53575a;
  --color-text-dark: #2b2e30;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8f7;
  --color-border: #e2e5e4;

  --color-peach: #fff1e6;
  --color-peach-strong: #ffdcbf;

  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Lora", Georgia, "Times New Roman", serif;
  --font-brand: "Montserrat", Helvetica, Arial, sans-serif;

  --max-width: 1140px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 2px 24px rgba(20, 30, 28, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text-dark);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 400; }
h3 { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em; }

/* Marcador: resalta la frase clave, como subrayado a rotulador */
.mark {
  background: linear-gradient(180deg, transparent 58%, var(--color-peach-strong) 58%);
  padding: 0 0.14em;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.section-header { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.section-header p { font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: var(--color-accent-dark); box-shadow: 0 8px 20px rgba(193, 88, 7, 0.3); }

.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: 0 8px 20px rgba(0, 115, 99, 0.3); }

.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary-light); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  color: var(--color-text-dark);
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--color-text-dark);
}
.brand-name small { font-weight: 500; color: var(--color-text); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--color-text-dark); font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: var(--color-primary); text-decoration: none; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--color-text-dark);
  white-space: nowrap;
}
.header-phone svg { flex: none; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 24px;
    gap: 16px;
  }
  .main-nav.nav-open { display: flex; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: #fff;
  }
  .header-phone span.phone-text { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--color-bg-alt);
  padding: 64px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-solo { max-width: 680px; }
.hero h1 { margin-bottom: 0.4em; }
.hero-claim {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text-dark);
  margin-bottom: 0.7em;
}

/* Escenario: foto grande con tarjeta superpuesta */
.stage { background: var(--color-bg); padding: 20px 0 8px; }
.stage-photo {
  position: relative;
  min-height: 600px;
  border-radius: 30px;
  overflow: hidden;
  background-color: #dfe6e3;
  background-repeat: no-repeat;
  background-size: 150% auto;
  background-position: 0% 45%;
  display: flex;
  align-items: center;
  padding: 36px;
}
.stage-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: #fff;
  border-radius: var(--radius);
  padding: 44px 44px 36px;
  box-shadow: 0 20px 60px rgba(15, 25, 23, 0.18);
}
.stage-card h1 { margin-bottom: 0.45em; }
.stage-card .hero-sub { font-size: 1.05rem; margin-bottom: 1.4em; }
.stage-card .hero-actions { margin-bottom: 1.6em; }
.stage-card .hero-trust { gap: 10px 18px; padding: 0; margin: 0; }
@media (max-width: 900px) {
  .stage-photo { min-height: 0; padding: 220px 14px 14px; align-items: flex-end; background-size: cover; background-position: 62% 30%; border-radius: 24px; }
  .stage-card { padding: 28px 24px 24px; max-width: none; }
}
.hero-sub { font-size: 1.15rem; margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1.4em; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--color-text-dark);
}
.hero-trust li { display: flex; align-items: center; gap: 8px; list-style: none; }
.hero-trust ul { padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.hero-trust svg { color: var(--color-primary); flex: none; }

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
}
.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Portrait photo (smaller, fixed size to avoid pixelation on low-res source) ---------- */
.portrait {
  width: 260px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Photo trust band ---------- */
.photo-band {
  position: relative;
  min-height: 380px;
  background-size: cover;
  background-position: center 30%;
  display: flex;
  align-items: flex-end;
}
.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 25, 23, 0.75) 0%, rgba(15, 25, 23, 0.15) 60%, rgba(15, 25, 23, 0) 100%);
}
.photo-band-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 40px 0;
  max-width: 620px;
}
.photo-band-content h2, .photo-band-content p { color: #fff; }
.photo-band-content .eyebrow { color: #ffd9b3; }
.photo-band-content .mark { background: linear-gradient(180deg, transparent 58%, rgba(193, 88, 7, 0.65) 58%); }
.photo-band-content .btn { margin-top: 8px; }

/* ---------- Photo / image placeholders ---------- */
.placeholder-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-bg-alt);
  border: 1px dashed #c7cdcb;
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 0.85rem;
  padding: 24px;
  min-height: 220px;
}
.placeholder-box strong { color: var(--color-text-dark); display: block; margin-bottom: 4px; font-weight: 600; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20, 30, 28, 0.1); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* ---------- Feature list (editorial, no boxes) ---------- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}
@media (max-width: 900px) { .feature-list { grid-template-columns: 1fr; } }
.feature { padding-top: 22px; border-top: 2px solid var(--color-text-dark); }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--color-text); margin: 0; }

/* Icono ilustrado: trazo en verde oscuro sobre una mancha de color cálido */
.ico { position: relative; width: 76px; height: 76px; margin-bottom: 18px; color: var(--color-primary-dark); }
.ico::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 54px;
  height: 54px;
  border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  background: linear-gradient(135deg, #ffd9b8 0%, #ffab73 100%);
}
.ico svg { position: relative; width: 76px; height: 76px; padding: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Lista con check dibujado en CSS */
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.ticks li { position: relative; padding-left: 26px; color: var(--color-text); font-size: 0.97rem; line-height: 1.45; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(-45deg);
}
.fine-print { font-size: 0.82rem; color: var(--color-text); margin: 28px 0 0; text-align: center; }

/* Panel cálido para propuestas / revisión */
.panel-soft {
  background: var(--color-peach);
  border-radius: 30px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.panel-soft h2 { margin-bottom: 0.5em; }
.panel-soft-actions { display: flex; flex-direction: column; gap: 12px; }
.panel-soft-actions .btn { width: 100%; }
@media (max-width: 900px) { .panel-soft { grid-template-columns: 1fr; padding: 36px 26px; gap: 26px; } }

/* Producto destacado: foto + texto sobre fondo cálido */
.spot { display: grid; grid-template-columns: 0.85fr 1.15fr; border-radius: 30px; overflow: hidden; background: var(--color-peach); }
.spot-img { min-height: 420px; background-size: cover; background-position: center 40%; }
.spot-body { padding: 56px 52px; align-self: center; }
.spot-body .hero-claim { margin-bottom: 0.6em; }
.spot-body p { max-width: 52ch; }
.spot-body .btn { margin-top: 10px; }
@media (max-width: 900px) {
  .spot { grid-template-columns: 1fr; }
  .spot-img { min-height: 280px; }
  .spot-body { padding: 34px 26px 38px; }
}

/* Trío de "sin letra pequeña": mensajes cortos y directos */
.promise-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promise { background: var(--color-bg-alt); border-radius: var(--radius); padding: 26px 24px; }
.promise strong { display: block; font-family: var(--font-heading); font-weight: 500; font-size: 1.25rem; color: var(--color-text-dark); line-height: 1.25; margin-bottom: 6px; }
.promise span { font-size: 0.95rem; }
@media (max-width: 900px) { .promise-row { grid-template-columns: 1fr; } }

.coverage-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 640px) { .coverage-list { grid-template-columns: 1fr; } }
.coverage-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.coverage-list svg { flex: none; color: var(--color-primary); margin-top: 3px; }

/* ---------- About / advisor ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.badge {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 6px;
}

/* ---------- Form ---------- */
.form-wrap {
  background: var(--color-text-dark);
  border-radius: var(--radius);
  padding: 44px;
  color: #fff;
  box-shadow: var(--shadow);
}
.form-wrap h2, .form-wrap p { color: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 600; }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 13px 15px;
  border-radius: 10px;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
}
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; margin: 6px 0 20px; }
.form-consent input { margin-top: 4px; }
.form-consent a { color: #fff; text-decoration: underline; }
.form-note { font-size: 0.78rem; opacity: 0.85; margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
}
.faq-question .icon { flex: none; transition: transform 0.2s ease; color: var(--color-primary); }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 4px;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 20px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-text-dark);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-text-dark);
  color: #d8dbda;
  padding: 48px 0 24px;
  font-size: 0.88rem;
  border-top: 1px solid var(--color-border);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; margin-bottom: 12px; letter-spacing: 0; }
.site-footer a { color: #d8dbda; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: #a9adac;
}
.placeholder-flag { color: var(--color-accent); font-weight: 700; }

/* ---------- Floating call button (mobile) ---------- */
.floating-cta {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 200;
  display: flex;
  gap: 10px;
}
.floating-cta a {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  color: #fff;
}
.floating-cta .call { background: var(--color-accent); }
.floating-cta .whatsapp { background: #25d366; }

/* ---------- Lead pop-up ---------- */
.lead-popup {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(20, 30, 28, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lead-popup.show { display: flex; }
body.lead-popup-open { overflow: hidden; }
.lead-popup-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  max-width: 460px;
  width: 100%;
  padding: 40px 34px 32px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  max-height: 90vh;
  overflow-y: auto;
}
.lead-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg-alt);
  color: var(--color-text-dark);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lead-popup-close:hover { background: var(--color-border); }
.lead-popup-card .eyebrow { margin-bottom: 0.5em; }
.lead-popup-card h2 { font-size: 1.5rem; margin-bottom: 0.35em; }
.lead-popup-card > p { margin-bottom: 1.3em; }
.lead-popup-card .form-field { margin-bottom: 14px; }
.lead-popup-card .form-field label { color: var(--color-text-dark); }
.lead-popup-card .form-field input,
.lead-popup-card .form-field select {
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text-dark);
}
.lead-popup-card .form-consent { color: var(--color-text); }
.lead-popup-card .form-consent a { color: var(--color-primary); }
@media (max-width: 520px) { .lead-popup-card { padding: 32px 22px 26px; } }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 300;
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-text-dark);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.25);
  display: none;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner.show { display: flex; }
.cookie-banner-text { flex: 1 1 260px; }
.cookie-banner-text p { margin: 0; font-size: 0.85rem; color: #d8dbda; }
.cookie-banner-actions { display: flex; gap: 10px; flex: none; }
.cookie-banner-actions .btn { padding: 10px 18px; font-size: 0.88rem; }
.cookie-banner .btn-outline { color: #fff; border-color: rgba(255,255,255,0.4); }
.cookie-banner .btn-outline:hover { background: rgba(255,255,255,0.08); }
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions .btn { flex: 1; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.85rem; }
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 { margin-top: 1.6em; }
