/* Dr. Luis Palma — drluispalma.com.ar
   Hoja de estilos compartida (index + urologo-a-domicilio).
   Mobile-first, sin dependencias externas. */

:root {
  --teal: #0e4f47;
  --teal-dark: #093832;
  --teal-soft: #e7f0ed;
  --mint: #f2f8f7;
  --ink: #1c2b29;
  --muted: #54645f;
  --line: #d9e4df;
  --card: #ffffff;
  --accent: #b45f2d;
  --accent-soft: #fdf0ec;
  --wa: #1faa55;
  --wa-dark: #157a3d;
  --warn-bg: #fdf0ec;
  --warn-border: #eec5b8;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(9, 56, 50, 0.08);
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--mint);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.25; color: var(--teal-dark); margin: 0 0 0.5em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; margin-top: 0; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 18px; }
section { padding: 44px 0; }
section.alt { background: #fff; }
.lead { font-size: 1.1rem; color: var(--muted); }
.small { font-size: 0.9rem; color: var(--muted); }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 10px 18px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.brand { text-decoration: none; line-height: 1.2; }
.brand strong { display: block; font-size: 1.15rem; color: var(--teal-dark); }
.brand span { font-size: 0.85rem; color: var(--muted); }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.main-nav a {
  text-decoration: none; color: var(--ink); font-size: 0.95rem;
  padding: 6px 10px; border-radius: 8px;
}
.main-nav a:hover, .main-nav a.active { background: var(--teal-soft); color: var(--teal-dark); }
.header-wa { margin-left: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 12px 20px; border-radius: 999px; border: 2px solid transparent;
  font-size: 1rem; cursor: pointer; text-align: center;
}
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-ghost { background: #fff; color: var(--teal-dark); border-color: var(--teal); }
.btn-ghost:hover { background: var(--teal-soft); }
.btn-sm { padding: 8px 14px; font-size: 0.92rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #fff 0%, var(--mint) 100%); padding: 40px 0 36px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero h1 { font-size: 2rem; }
.hero .sub { font-size: 1.12rem; color: var(--muted); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 10px; }
.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%; max-width: 300px; margin: 0 auto;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-photo figcaption { font-size: 0.88rem; color: var(--muted); text-align: center; margin-top: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 0.88rem; color: var(--teal-dark); font-weight: 600;
}

/* ---------- Tarjetas ---------- */
.cards { display: grid; gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4em; }
.card .price-tag { font-size: 1.05rem; font-weight: 700; color: var(--accent); margin: 0.4em 0; }
.card .go { display: inline-block; margin-top: 10px; font-weight: 700; }

/* ---------- Precios ---------- */
.price-grid { display: grid; gap: 16px; }
.price-card { text-align: left; }
.price-card .zone { font-size: 1.05rem; font-weight: 700; color: var(--teal-dark); }
.price-card .amount { font-size: 2rem; font-weight: 800; color: var(--teal); margin: 6px 0 2px; }
.price-card .per { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.6em; }
.price-card ul { list-style: none; padding: 0; }
.price-card li { padding-left: 1.1em; position: relative; }
.price-card li::before { content: "•"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price-card.featured { border: 2px solid var(--teal); }

/* ---------- Calculadora / formulario ---------- */
.form-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
label { display: block; font-weight: 700; margin: 14px 0 6px; font-size: 0.98rem; }
label:first-child { margin-top: 0; }
input, select, textarea {
  width: 100%; padding: 12px; font-size: 1rem; font-family: inherit;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
textarea { min-height: 90px; resize: vertical; }
.price-result {
  margin-top: 16px; padding: 16px; border-radius: 10px;
  background: var(--teal-soft); border: 1px solid var(--line);
  font-size: 1.05rem;
}
.price-result strong { font-size: 1.4rem; color: var(--teal-dark); }
.msg-box {
  margin-top: 16px; padding: 16px; border-radius: 10px;
  background: var(--mint); border: 1px solid var(--line);
  white-space: pre-wrap; word-wrap: break-word;
}
.msg-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.hidden { display: none; }

/* ---------- Listas con ícono ---------- */
.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 1.6em; position: relative; margin-bottom: 0.6em; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--wa); font-weight: 800; }

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.step .n {
  display: inline-block; background: var(--teal); color: #fff; font-weight: 800;
  border-radius: 999px; padding: 2px 12px; font-size: 0.85rem; margin-bottom: 8px;
}

/* ---------- Alerta guardia ---------- */
.warn {
  background: var(--warn-bg); border: 1px solid var(--warn-border);
  border-radius: var(--radius); padding: 20px;
}
.warn h2, .warn h3 { color: #7c2d1e; }

/* ---------- FAQ ---------- */
details {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 18px; margin-bottom: 10px; box-shadow: var(--shadow);
}
summary { font-weight: 700; cursor: pointer; color: var(--teal-dark); }
details p { margin: 10px 0 0; }

/* ---------- Sobre el médico ---------- */
.about-grid { display: grid; gap: 24px; align-items: start; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; max-width: 250px; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-photo figcaption { font-size: 0.88rem; color: var(--muted); text-align: center; margin-top: 8px; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 18px; }
.facts div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--teal-dark); }
.facts dd { margin: 2px 0 0; }

/* ---------- Consultorios ---------- */
.clinic-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.clinic-list li {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; box-shadow: var(--shadow);
}
.clinic-list strong { color: var(--teal-dark); }
.clinic-list .when { display: block; color: var(--muted); font-size: 0.95rem; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 16px; }
.contact-card { text-align: center; }
.contact-card .big { font-size: 1.25rem; font-weight: 800; color: var(--teal-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-dark); color: #d7e8e4; padding: 36px 0 90px; }
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; }
.footer-grid { display: grid; gap: 24px; }

/* ---------- Barra móvil WhatsApp ---------- */
.sticky-wa {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fff; border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: flex; gap: 10px;
}
.sticky-wa .btn { flex: 1; }

/* ---------- Desktop ---------- */
@media (min-width: 720px) {
  h1 { font-size: 2.4rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 0.7fr 1.3fr; }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .sticky-wa { display: none; }
  .site-footer { padding-bottom: 36px; }
}
