/* =========================================================
   Dr. Hugo Reyes — Urología / Cirugía General
   ========================================================= */

:root {
  --navy: #0E4A5C;
  --navy-deep: #0A3543;
  --navy-tint: #E7EEF0;
  --red: #B4222A;
  --red-dark: #8C1A21;
  --red-tint: #FBEAEA;
  --sage: #8A8F87;
  --bone: #F5F3EE;
  --white: #FFFFFF;
  --ink: #1C2624;
  --ink-soft: #4B5654;
  --border: #E3E0D8;
  --shadow: 0 10px 30px rgba(14, 74, 92, 0.08);
  --radius: 4px;
  --radius-lg: 10px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  color: var(--navy-deep);
  line-height: 1.25;
  margin: 0 0 .5em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }

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

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

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--bone { background: var(--bone); }
.section--navy { background: var(--navy-deep); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,.78); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }
.btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy-tint); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand strong {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  color: var(--navy-deep);
  font-weight: 600;
}
.brand span {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-top: 2px;
}
.brand:hover strong, .brand:hover span { color: inherit; }

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav a {
  color: var(--ink);
  font-size: .95rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active { color: var(--navy-deep); border-color: var(--red); }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-deep);
  margin: 5px 0;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bone) 0%, var(--white) 100%);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 24px;
}
.hero-copy p.lead { font-size: 1.12rem; }
.hero-specs {
  list-style: none;
  padding: 0;
  margin: 22px 0 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-specs li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: .98rem;
  color: var(--ink-soft);
}
.hero-specs li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  transform: translateY(-2px);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--red);
  border-radius: var(--radius-lg);
  margin: 14px;
  pointer-events: none;
}

/* ---------- Credentials strip ---------- */
.cred-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.cred-strip ul {
  list-style: none;
  margin: 0;
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  justify-content: center;
}
.cred-strip li {
  font-size: .85rem;
  color: var(--ink-soft);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cred-strip li strong { color: var(--navy-deep); }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--navy-tint);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
}
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: .95rem; }

.card--accent { border-left: 3px solid var(--red); }

/* ---------- Service list (servicios.html) ---------- */
.service-block {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}
.service-block:first-of-type { border-top: none; }
.service-block h3 { margin-bottom: 6px; }
.service-block .tag {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
}
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
}
.service-list li {
  padding-left: 20px;
  position: relative;
  font-size: .96rem;
  color: var(--ink-soft);
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--navy);
  border-radius: 1px;
}

/* ---------- Pricing (citas.html) ---------- */
.price-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}
.price-card .amount {
  font-family: 'Lora', serif;
  font-size: 2.4rem;
  color: var(--navy-deep);
  font-weight: 600;
  margin: 10px 0 4px;
}
.price-card .amount small { font-size: 1rem; font-weight: 500; color: var(--sage); }
.price-card .label { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); font-weight: 700; }
.price-card--featured { border-color: var(--navy); box-shadow: var(--shadow); position: relative; }

/* ---------- Location cards ---------- */
.location-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.location-card h3 { display: flex; align-items: center; gap: 10px; }
.location-card dl { margin: 18px 0 0; }
.location-card dt {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--sage);
  font-weight: 700;
  margin-top: 14px;
}
.location-card dt:first-child { margin-top: 0; }
.location-card dd { margin: 4px 0 0; color: var(--ink); font-size: .96rem; }

/* ---------- Timeline (sobre-el-doctor.html) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 30px 30px;
  border-left: 2px solid var(--border);
}
.timeline li:last-child { border-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}
.timeline .year {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--navy);
  text-transform: uppercase;
}
.timeline h4 { margin: 4px 0 4px; font-family: 'Lora', serif; font-size: 1.05rem; color: var(--navy-deep); }
.timeline p { margin: 0; font-size: .93rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--white);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--navy-tint);
}
textarea { resize: vertical; min-height: 120px; }

.optional-tag {
  font-weight: 400;
  color: var(--sage);
  text-transform: none;
  letter-spacing: 0;
}

.field-hint {
  margin: 8px 0 0;
  font-size: .82rem;
  color: var(--sage);
}

.phone-field {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.phone-field:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--navy-tint);
}
.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--bone);
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 600;
  border-right: 1px solid var(--border);
}
.phone-field input {
  border: none;
  border-radius: 0;
  flex: 1;
}
.phone-field input:focus { box-shadow: none; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  background: var(--navy-tint);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: .88rem;
  color: var(--navy-deep);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--red);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.85); }
.cta-band .btn-primary { background: var(--white); color: var(--red); }
.cta-band .btn-primary:hover { background: var(--bone); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.75);
  padding: 56px 0 28px;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.site-footer h4 {
  color: var(--white);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--white); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
}

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float:hover { filter: brightness(1.05); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--navy-deep);
  color: var(--white);
  padding: 64px 0 54px;
}
.page-hero .eyebrow { color: #F2B3B7; }
.page-hero .eyebrow::before { background: #F2B3B7; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,.78); max-width: 640px; }
.breadcrumb { font-size: .82rem; color: rgba(255,255,255,.55); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,.75); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav, .nav-cta .btn-ghost-hidden { display: none; }
  .menu-toggle { display: block; }
  .nav-cta { gap: 10px; }

  .site-header.open .nav {
    display: flex;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }

  .hero .container { grid-template-columns: 1fr; }
  .hero-photo { max-width: 380px; margin: 0 auto; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; gap: 14px; }
  .service-list { grid-template-columns: 1fr; }
  .price-table { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card:hover { transition: none; transform: none; }
}
