/* Landing de Petclan. Colores y tipografía del diseño aprobado (diseno/landing/Main.dc.html). */
:root {
  --teal: #0B4F5C;
  --teal-dark: #073741;
  --teal-soft: #E6F1F2;
  --orange: #C2410C;      /* naranja de acción con contraste AA sobre blanco */
  --orange-soft: #FFF1E6;
  --warm: #B8460A;
  --warm-bg: #FFF7F1;
  --warm-line: #F3DCCB;
  --green: #146B43;
  --green-soft: #E3F2E9;
  --red: #B42318;
  --red-soft: #FDECEC;
  --ink: #10272C;
  --ink-2: #33474C;
  --muted: #4E6267;
  --line: #E3EAEB;
  --field: #B9CACC;
  --bg-soft: #F3F7F7;
  --radius: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid #E25A0E; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #FFFFFF; padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; }
.stack { display: flex; flex-direction: column; gap: 40px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 22px; border: none; border-radius: var(--radius);
  font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer;
}
.btn:disabled { opacity: .7; cursor: progress; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-teal { background: var(--teal); color: #FFFFFF; }
.btn-teal:hover { background: var(--teal-dark); color: #FFFFFF; }
.btn-orange { background: var(--orange); color: #FFFFFF; }
.btn-orange:hover { background: #A3360A; color: #FFFFFF; }
.btn-warm { background: var(--warm); color: #FFFFFF; }
.btn-warm:hover { background: #973908; color: #FFFFFF; }
.btn-light { background: #F07A35; color: var(--ink); font-size: 19px; padding: 0 26px; min-height: 56px; }
.btn-light:hover { background: #F59056; color: var(--ink); }

/* Navegación */
.topbar { border-bottom: 1px solid var(--line); background: #FFFFFF; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--teal); display: inline-flex; align-items: center; justify-content: center; }
.brand-name { font-weight: 800; font-size: 22px; letter-spacing: -0.3px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-weight: 600; font-size: 15px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.nav-links a:not(.btn):hover { color: var(--teal); }

/* Inicio */
.hero { background: var(--bg-soft); }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 80px; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.pill { align-self: flex-start; background: #FFFFFF; border: 1px solid #D5E2E3; color: var(--teal); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; }
h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -1.5px; font-weight: 800; }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 560px; }
.signup { display: flex; flex-direction: column; gap: 10px; max-width: 540px; scroll-margin-top: 24px; }
.fine { font-size: 14px; color: var(--muted); }

/* Formularios */
.join { display: flex; flex-wrap: wrap; gap: 10px; }
.fields { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 100%; }
.join input {
  flex: 1 1 200px; min-width: 0; min-height: 52px; padding: 0 16px;
  border-radius: var(--radius); border: 1px solid var(--field);
  font: inherit; font-size: 16px; background: #FFFFFF; color: var(--ink);
}
.join input[aria-invalid="true"] { border-color: var(--red); }
.join .btn { flex: 1 1 auto; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { flex: 1 1 100%; color: var(--red); font-weight: 600; font-size: 15px; }
.form-done { margin: 0; background: var(--green-soft); color: var(--green); font-weight: 700; padding: 14px 16px; border-radius: var(--radius); }

/* Teléfono del inicio */
.hero-visual { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; position: relative; padding: 10px 0; }
.phone { width: 300px; height: 610px; border-radius: 44px; background: var(--ink); padding: 12px; box-shadow: 0 30px 60px rgba(16, 39, 44, .22); }
.phone-screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; position: relative; }
.map-bg {
  background-color: #E9EFEE;
  background-image: linear-gradient(#FFFFFF 2px, transparent 2px), linear-gradient(90deg, #FFFFFF 2px, transparent 2px);
  background-size: 46px 46px;
}
.radius { position: absolute; left: 50%; top: 150px; transform: translate(-50%, -50%); width: 190px; height: 190px; border-radius: 50%; background: rgba(11, 79, 92, .12); border: 2px solid rgba(11, 79, 92, .35); }
.me { position: absolute; left: 50%; top: 150px; transform: translate(-50%, -50%); width: 16px; height: 16px; border-radius: 50%; background: #1F6FEB; border: 3px solid #FFFFFF; }
.pin { position: absolute; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.pin-lost { left: 34px; top: 120px; border: 3px solid #E25A0E; }
.pin-seen { right: 30px; top: 196px; border: 3px solid #2F80ED; }
.case-card { position: absolute; left: 12px; right: 12px; bottom: 12px; background: #FFFFFF; border-radius: 22px; padding: 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 8px 24px rgba(16, 39, 44, .16); }
.case-card > img { width: 100%; height: 170px; object-fit: cover; border-radius: 14px; }
.case-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.case-name { font-size: 20px; }
.case-meta { margin-top: -6px; }
.case-actions { display: flex; gap: 8px; }
.tag { font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 8px; }
.tag-lost { background: var(--red-soft); color: var(--red); }
.tag-ok { background: var(--green-soft); color: var(--green); }
.tag-urgent { background: var(--red); color: #FFFFFF; font-size: 11px; padding: 3px 8px; }
.chip { flex: 1; text-align: center; font-weight: 700; font-size: 14px; padding: 11px 0; border-radius: 12px; }
.chip-teal { background: var(--teal); color: #FFFFFF; }
.chip-orange { background: var(--orange-soft); color: #9A3412; }
.chip-soft { flex: 0 0 auto; font-size: 13px; background: var(--teal-soft); color: var(--teal); padding: 6px 10px; border-radius: 10px; }
.float { position: absolute; background: #FFFFFF; border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px rgba(16, 39, 44, .14); max-width: 230px; }
.float > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.float-top { left: 0; top: 60px; }
.float-bottom { right: 0; bottom: 120px; }
.float-icon { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.float-orange { background: var(--orange-soft); color: var(--orange); }
.float-teal { background: var(--teal-soft); color: var(--teal); }

/* Secciones */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-tight { padding: 48px 0 0; }
.section-warm { background: var(--warm-bg); }
.section-teal { background: var(--teal); color: #FFFFFF; padding: 80px 0; }
.heading { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.heading-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.eyebrow { font-weight: 800; font-size: 14px; letter-spacing: 1px; color: var(--orange); }
.eyebrow-light { color: #FFC9A8; }
.eyebrow-warm { color: var(--warm); }
h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -1px; }
.lead-light { color: #D6E7E9; font-size: 18px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.step { background: var(--bg-soft); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step-n { width: 44px; height: 44px; border-radius: 14px; background: var(--teal); color: #FFFFFF; font-weight: 800; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; }
.step h3 { font-size: 22px; }
.step p, .feature p { line-height: 1.55; color: var(--ink-2); }

.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split-top { align-items: flex-start; gap: 40px; }
.split-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.section-teal h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; }
.cards-2 { flex: 1 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.glass { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.glass strong { font-size: 17px; }
.glass span { font-size: 15px; line-height: 1.5; color: #D6E7E9; }

.duo { display: flex; gap: 12px; }
.duo img { width: 96px; height: 96px; border-radius: 24px; object-fit: cover; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature { border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.feature h3 { font-size: 19px; }
.feature p { font-size: 15px; }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; }
.promise { font-size: 18px; font-weight: 700; color: var(--teal); text-align: center; }

.checks { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before {
  content: ''; flex-shrink: 0; width: 22px; height: 22px;
  background: no-repeat center / 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23146B43' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.checks-warm li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8460A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.plans { flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.plan { background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.plan strong { font-size: 19px; }
.plan-main { border: 2px solid var(--teal); }
.plan-free { background: var(--green-soft); border-color: var(--green-soft); }
.plan-free strong { font-size: 17px; color: #0E4F31; }
.plan-free .plan-text { color: #1D4D35; }
.price { font-weight: 800; color: var(--teal); }
.save { font-size: 13px; font-weight: 700; color: var(--green); }
.plan-text { font-size: 14px; line-height: 1.5; color: var(--ink-2); }

.cta-box { background: #FFFFFF; border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-warm { border-color: var(--warm-line); }
.cta-text { display: flex; flex-direction: column; gap: 6px; flex: 1 1 320px; }
.cta-text strong { font-size: 20px; }
.cta-text .muted { font-size: 15px; }
.cta-form { flex: 2 1 520px; min-width: 0; }

.shelter-card { flex: 1 1 400px; min-width: 0; max-width: 420px; margin: 0 auto; background: #FFFFFF; border-radius: 28px; overflow: hidden; box-shadow: 0 24px 50px rgba(184, 70, 10, .14); border: 1px solid #F6C9A8; }
.shelter-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.shelter-photos img { width: 100%; height: 190px; object-fit: cover; }
.shelter-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.shelter-name { font-size: 20px; }
.need { background: var(--warm-bg); border: 1px solid #F6C9A8; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.need strong { font-size: 15px; }
.bar { height: 8px; border-radius: 4px; background: #EEF2F3; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--teal); }
.bar-30 { width: 30%; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.mini { background: #FFFFFF; border: 1px solid var(--warm-line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.mini strong { font-size: 18px; }
.mini span { font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* Preguntas */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0 0 20px; line-height: 1.6; color: var(--ink-2); }
.plus { font-size: 26px; color: var(--teal); transition: transform .2s; }
.faq details[open] .plus { transform: rotate(45deg); }

/* Cierre */
.closing { padding-bottom: 88px; }
.closing-box { background: var(--ink); color: #FFFFFF; border-radius: 32px; padding: 56px 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.closing-box > div { display: flex; flex-direction: column; gap: 12px; flex: 1 1 420px; }
.closing-box h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -.8px; }
.closing-box p { font-size: 17px; color: #C9D6D8; }

.footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer .tiny { width: 100%; }

/* Guía de pirotecnia */
.guide-hero { padding: 56px 0 48px; }
.guide-head { display: flex; flex-direction: column; gap: 18px; }
.guide-title { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -1px; font-weight: 800; }
.print-button { align-self: flex-start; }
.guide { display: flex; flex-direction: column; gap: 28px; }
.guide-block { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; }
.guide-block h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 14px; }
.guide-block .checks { margin: 0; }
.guide-block .checks li { line-height: 1.55; color: var(--ink-2); }
.guide-block .checks strong { color: var(--ink); }
.guide-step { width: 44px; height: 44px; border-radius: 14px; background: var(--teal); color: #FFFFFF; font-weight: 800; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; }
.guide-alert { background: var(--warm-bg); border-color: #F6C9A8; }
.guide-alert .guide-step { background: var(--warm); }
.guide-note { text-align: center; }
.guide-band { background: var(--warm-bg); border: 1px solid #F6C9A8; border-radius: 24px; padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.guide-band strong { font-size: 20px; }
.guide-band p { color: var(--ink-2); margin-top: 4px; }

/* Celulares */
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .hero-grid { padding-top: 40px; padding-bottom: 56px; gap: 40px; }
  .lead { font-size: 18px; }
  .section { padding: 64px 0; }
  .float { display: none; }
  .phone { transform: scale(.9); transform-origin: top center; margin-bottom: -60px; }
  .closing-box { padding: 40px 24px; }
  .cta-box { padding: 22px; }
}
@media (max-width: 720px) {
  .guide-block { grid-template-columns: 1fr; padding: 20px; gap: 12px; }
}
@media print {
  .topbar, .skip, .print-button, #avisarme, .footer { display: none !important; }
  .hero, .section-soft { background: none; }
  .guide-hero { padding: 0 0 16px; }
  .section { padding: 0; }
  .guide-block { break-inside: avoid; border-color: #CCCCCC; }
  .guide-alert { background: none; }
  .lead { font-size: 15px; }
  body { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plus { transition: none; }
}

/* Cartel A4 para imprimir (cartel.html, tarea V.6) */
.poster-page { background: #E9EFEE; }
.poster-tools { max-width: 210mm; margin: 24px auto 12px; padding: 0 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; color: var(--ink-2); }
.poster { width: 210mm; min-height: 297mm; margin: 0 auto 32px; background: #FFFFFF; padding: 18mm 18mm 14mm; display: flex; flex-direction: column; gap: 9mm; box-shadow: 0 10px 30px rgba(16, 39, 44, .15); }
.poster-brand { display: flex; align-items: center; gap: 12px; }
.poster-brand .brand-icon { width: 52px; height: 52px; border-radius: 15px; background: #E25A0E; }
.poster-name { font-weight: 800; font-size: 30px; color: var(--teal); }
.poster-title { font-size: 46px; line-height: 1.06; letter-spacing: -1px; font-weight: 800; color: var(--ink); }
.poster-lead { font-size: 22px; color: var(--ink-2); }
.poster-qr { display: flex; align-items: center; gap: 10mm; background: var(--teal); color: #FFFFFF; border-radius: 22px; padding: 9mm; }
.poster-qr svg { width: 64mm; height: 64mm; flex-shrink: 0; border-radius: 10px; }
.poster-qr p { font-size: 22px; line-height: 1.35; }
.poster-points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5mm; font-size: 20px; }
.poster-points li { padding-left: 34px; position: relative; }
.poster-points li::before { content: ''; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: #E25A0E; }
.poster-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: flex-end; font-size: 16px; color: var(--ink-2); }
.poster-url { font-weight: 800; font-size: 24px; color: var(--teal); }
@media (max-width: 800px) {
  .poster { width: auto; min-height: 0; margin: 0 12px 24px; padding: 24px; }
  .poster-title { font-size: 32px; }
  .poster-qr { flex-direction: column; text-align: center; }
}
@media print {
  @page { size: A4; margin: 0; }
  .poster-page { background: #FFFFFF; }
  .poster-tools { display: none !important; }
  .poster { box-shadow: none; margin: 0; }
  .poster-qr, .poster-brand .brand-icon, .poster-points li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
