/* Landing pages SEO · Dr. Javier Salazar — hereda el sistema de diseño del sitio */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Instrument Sans', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: #CFE4DA; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* NAV */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245,246,245,0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(16,24,30,0.08); }
.nav-inner { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(16,24,30,0.1); }
.brand-name { font-family: 'Instrument Serif', serif; font-size: 22px; line-height: 1.1; }
.brand-sub { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: #5C6B74; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 500; }
.nav-links > a { color: #3C4A53; }
.nav-links > a:hover { color: var(--ink); }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; background: var(--dark); color: #fff; padding: 11px 22px; border-radius: 999px; font-weight: 600; transition: background 0.2s; }
.nav-phone:hover { background: var(--primary); color: #fff; }

/* BREADCRUMB */
.crumbs { padding-top: 20px; font-size: 13.5px; color: #6B7A83; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li::after { content: '›'; color: #A8B4BA; }
.crumbs li:last-child::after { content: ''; }
.crumbs a { color: #6B7A83; }
.crumbs a:hover { color: var(--primary); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* LAYOUT */
.lp { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; padding-top: 28px; padding-bottom: 88px; align-items: start; }
.lp-main { min-width: 0; }

/* HERO DE LA LANDING */
.lp-kicker { margin: 0 0 16px; display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary); font-weight: 600; }
.lp-kicker .line { width: 26px; height: 1px; background: var(--primary); display: inline-block; }
.lp h1 { margin: 0 0 22px; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -0.01em; }
.lp-intro { margin: 0 0 30px; font-size: 18.5px; line-height: 1.65; color: #46545D; }
.lp-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; font-weight: 600; transition: all 0.2s; }
.btn-solid { background: var(--primary); color: #fff; padding: 15px 28px; font-size: 15.5px; box-shadow: 0 12px 28px -12px rgba(30,107,82,0.55); }
.btn-solid:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(30,107,82,0.6); }
.btn-line { background: transparent; color: var(--ink); padding: 14px 26px; font-size: 15.5px; border: 1.5px solid rgba(16,24,30,0.22); }
.btn-line:hover { border-color: var(--ink); background: rgba(16,24,30,0.04); color: var(--ink); }

.lp-figure { margin: 0 0 44px; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; background: #E7EBE9; }
.lp-figure img { width: 100%; height: 100%; object-fit: cover; }

/* CUERPO */
.lp-section { margin-bottom: 42px; }
.lp-section h2 { margin: 0 0 16px; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; }
.lp-section p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.72; color: #3C4A53; }
.lp-section p:last-child { margin-bottom: 0; }
.lp-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lp-list li { position: relative; padding-left: 32px; font-size: 16px; line-height: 1.6; color: #3C4A53; }
.lp-list li::before { content: ''; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: #E7F0EB; }
.lp-list li::after { content: ''; position: absolute; left: 5px; top: 10px; width: 7px; height: 4px; border-left: 1.8px solid var(--primary); border-bottom: 1.8px solid var(--primary); transform: rotate(-45deg); }

/* AVISO MÉDICO */
.lp-note { margin: 0 0 42px; padding: 20px 24px; border-radius: 16px; background: #EEF3F1; border-left: 3px solid var(--primary); font-size: 14.5px; line-height: 1.6; color: #46545D; }

/* FAQ */
.lp-faq { margin-bottom: 42px; }
.lp-faq h2 { margin: 0 0 22px; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; }
.faq-item { border-bottom: 1px solid rgba(16,24,30,0.1); padding: 20px 0; }
.faq-item:first-child { border-top: 1px solid rgba(16,24,30,0.1); }
.faq-item h3 { margin: 0 0 10px; font-size: 17.5px; font-weight: 600; line-height: 1.4; }
.faq-item p { margin: 0; font-size: 16px; line-height: 1.7; color: #5C6B74; }

/* CTA FINAL */
.lp-cta { background: var(--dark); color: #EFF3F1; border-radius: 24px; padding: 48px 44px; margin-bottom: 42px; }
.lp-cta h2 { margin: 0 0 14px; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.14; }
.lp-cta p { margin: 0 0 28px; font-size: 16.5px; line-height: 1.65; color: rgba(239,243,241,0.75); max-width: 520px; }
.lp-cta .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-cta .b1 { display: inline-flex; align-items: center; gap: 10px; background: var(--primary); color: #fff; padding: 15px 30px; border-radius: 999px; font-size: 15.5px; font-weight: 600; transition: all 0.2s; }
.lp-cta .b1:hover { background: var(--light); color: var(--dark); }
.lp-cta .b2 { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid rgba(239,243,241,0.35); color: #EFF3F1; padding: 14px 28px; border-radius: 999px; font-size: 15.5px; font-weight: 600; transition: border-color 0.2s; }
.lp-cta .b2:hover { border-color: #EFF3F1; }

/* RELACIONADOS */
.lp-related h2 { margin: 0 0 20px; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 28px; }
.rel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rel-grid a { display: block; padding: 16px 20px; border-radius: 14px; border: 1px solid rgba(16,24,30,0.1); background: #fff; font-size: 15px; font-weight: 500; color: var(--ink); transition: all 0.2s; }
.rel-grid a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* SIDEBAR */
.lp-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.side-card { background: #fff; border: 1px solid rgba(16,24,30,0.09); border-radius: 20px; padding: 26px 24px; }
.side-card h2, .side-card .side-title { margin: 0 0 18px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); font-weight: 600; }
.side-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.side-row:last-of-type { margin-bottom: 22px; }
.side-row .ic { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: #E7F0EB; display: inline-flex; align-items: center; justify-content: center; color: var(--primary); }
.side-row strong { display: block; font-size: 14.5px; margin-bottom: 2px; }
.side-row span, .side-row a { font-size: 13.5px; color: #5C6B74; line-height: 1.5; }
.side-row a { color: var(--primary); word-break: break-word; }
.side-btn { display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--primary); color: #fff; padding: 14px 20px; border-radius: 999px; font-size: 15px; font-weight: 600; transition: background 0.2s; }
.side-btn:hover { background: var(--dark); color: #fff; }
.side-btn.alt { background: transparent; color: var(--ink); border: 1.5px solid rgba(16,24,30,0.22); margin-top: 10px; }
.side-btn.alt:hover { background: rgba(16,24,30,0.04); border-color: var(--ink); color: var(--ink); }
.side-map { border-radius: 20px; overflow: hidden; height: 200px; border: 1px solid rgba(16,24,30,0.09); position: relative; }
.side-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* HUB */
.hub-head { padding-top: 40px; padding-bottom: 8px; max-width: 780px; }
.hub-head h1 { margin: 0 0 20px; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(38px, 5vw, 60px); line-height: 1.06; }
.hub-head p { margin: 0; font-size: 18px; line-height: 1.65; color: #46545D; }
.hub-body { padding-top: 48px; padding-bottom: 90px; }
.hub-group { margin-bottom: 48px; }
.hub-group h2 { margin: 0 0 18px; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 30px; padding-bottom: 12px; border-bottom: 1px solid rgba(16,24,30,0.1); }
.hub-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hub-list a { display: block; padding: 16px 20px; border-radius: 14px; border: 1px solid rgba(16,24,30,0.1); background: #fff; font-size: 15px; font-weight: 500; color: var(--ink); transition: all 0.2s; }
.hub-list a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* 404 */
.nf { padding: 120px 0 140px; text-align: center; }
.nf h1 { margin: 0 0 18px; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(40px, 6vw, 68px); line-height: 1.05; }
.nf p { margin: 0 auto 32px; max-width: 460px; font-size: 17px; line-height: 1.65; color: #5C6B74; }

/* FOOTER */
.site-footer { background: var(--footbg); color: rgba(239,243,241,0.65); }
.site-footer .inner { padding-top: 44px; padding-bottom: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.site-footer .fname { font-family: 'Instrument Serif', serif; font-size: 19px; color: #EFF3F1; display: block; }
.site-footer .ftag { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
.site-footer .flinks { display: flex; gap: 26px; flex-wrap: wrap; }
.site-footer .flinks a { color: rgba(239,243,241,0.75); }
.site-footer .flinks a:hover { color: var(--light); }

/* FAB */
.fab { position: fixed; right: 26px; bottom: 26px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 32px -10px rgba(37,211,102,0.55); transition: transform 0.2s; }
.fab:hover { transform: scale(1.08); color: #fff; }

@media (max-width: 1040px) {
  .lp { grid-template-columns: 1fr; gap: 40px; }
  .lp-side { position: static; }
  .side-map { height: 240px; }
  .hub-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .nav-links > a:not(.nav-phone) { display: none; }
  .brand-sub { display: none; }
  .rel-grid, .hub-list { grid-template-columns: 1fr; }
  .lp-cta { padding: 34px 26px; border-radius: 20px; }
  .lp { padding-bottom: 64px; }
}
