/* ============================================================
   drjorgebaldera.com — Hoja de estilos principal
   Extraído de index.html para eliminar style-src 'unsafe-inline' (SEC-003)
   ============================================================ */

/* ---------- Variables ---------- */
:root{
  --navy:#14235C;
  --navy-soft:#2B3B72;
  --blue:#0B5FFF;
  --blue-dark:#0A4FD6;
  --blue-light:#E9F2FE;
  --pink:#E0186B;
  --pink-light:#FCE8F3;
  --teal:#128CAB;
  --teal-light:#E3F6FB;
  --text:#54627D;
  --bg1:#EAF3FD;
  --bg2:#DCE9FC;
  --white:#ffffff;
  --radius-lg:26px;
  --radius-md:18px;
  --shadow:0 18px 40px -18px rgba(20,35,92,.18);
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
[id]{scroll-margin-top:96px;}
body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,var(--bg1) 0%,var(--bg2) 45%,var(--bg1) 100%);
}
h1,h2,h3,h4,.brand-name{font-family:'Poppins','Inter',sans-serif; color:var(--navy); margin:0;}
.container{max-width:1180px;margin:0 auto;padding:0 24px;}
a{text-decoration:none;color:inherit;}
img{display:block;max-width:100%;}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:8px;justify-content:center;
  padding:14px 26px;border-radius:14px;font-weight:600;font-size:15px;
  cursor:pointer;white-space:nowrap;transition:transform .15s ease, box-shadow .15s ease;
  border:2px solid transparent;
}
.btn:hover{transform:translateY(-2px);}
.btn-primary{background:linear-gradient(180deg,#2E7BFF,var(--blue));color:#fff;box-shadow:0 12px 24px -8px rgba(11,95,255,.55);}
.btn-outline{background:#fff;border-color:#DCEBFC;color:var(--blue);box-shadow:0 8px 20px -12px rgba(20,35,92,.25);}
.btn svg{width:18px;height:18px;flex:none;}

/* ---------- Header ---------- */
.topbar{position:sticky;top:0;z-index:50;background:rgba(234,243,253,.85);backdrop-filter:blur(8px);padding:16px 0;}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;}
.brand{display:flex;align-items:center;gap:12px;}
.brand-logo{width:56px;height:56px;object-fit:contain;}
.brand-text .brand-name{font-size:19px;letter-spacing:.2px;font-weight:700;}
.brand-text p{margin:2px 0 0;font-size:12.5px;color:var(--blue);font-weight:600;letter-spacing:.3px;}
.hamburger{display:none;background:none;border:none;cursor:pointer;padding:6px;color:var(--navy);}
.hamburger svg{width:26px;height:26px;display:block;}
nav{display:flex;align-items:center;gap:34px;font-size:14.5px;font-weight:500;color:var(--navy);}
nav a{position:relative;padding-bottom:6px;}
nav a.active{color:var(--blue);}
nav a.active::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:2px;background:var(--blue);}
.topbar .btn-primary{padding:12px 22px;}
@media (max-width:900px){
  .hamburger{display:inline-flex;order:3;}
  .topbar-inner{flex-wrap:wrap;}
  .topbar-inner .btn-primary{order:2;padding:10px 16px;font-size:13.5px;}
  nav{
    display:none;position:absolute;top:100%;left:0;right:0;
    flex-direction:column;align-items:stretch;gap:0;
    background:var(--white);padding:6px 24px 16px;
    box-shadow:0 16px 26px -12px rgba(20,35,92,.28);
  }
  nav.open{display:flex;}
  nav a{padding:13px 0;border-bottom:1px solid #EEF3FB;}
  nav a.active::after{display:none;}
}

/* ---------- Hero ---------- */
.hero{padding:64px 0 20px;position:relative;overflow:hidden;}
.hero-inner{display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:20px;}
.hero-copy h1{font-size:clamp(28px,4.6vw,44px);line-height:1.14;font-weight:800;}
.hero-copy h1 .accent{color:var(--blue);display:block;}
.hero-copy > p{font-size:16px;line-height:1.65;margin:22px 0 30px;max-width:480px;}
.hero-ctas{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:34px;}
.hero-badges{display:flex;gap:26px;flex-wrap:wrap;}
.hero-badge{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;color:var(--navy);max-width:160px;line-height:1.35;}
.hero-badge .ic{width:38px;height:38px;flex:none;border-radius:10px;display:flex;align-items:center;justify-content:center;background:var(--blue-light);color:var(--blue);}
.hero-badge:nth-child(2) .ic{background:var(--teal-light);color:var(--teal);}
.hero-badge:nth-child(3) .ic{background:var(--pink-light);color:var(--pink);}
.hero-badge .ic svg{width:20px;height:20px;}

.hero-photo{position:relative;display:flex;justify-content:center;}
.hero-photo img.photo-main{width:100%;max-width:420px;position:relative;z-index:2;}
.floating-badge{position:absolute;width:84px;height:84px;z-index:3;filter:drop-shadow(0 10px 18px rgba(20,35,92,.25));}
.floating-badge.badge-lungs{top:8%;left:2%;}
.floating-badge.badge-teddy{top:6%;right:2%;}
@media (max-width:900px){.floating-badge{width:64px;height:64px;}}

/* Cruces y corazones decorativos alrededor de la foto */
.deco{position:absolute;z-index:1;color:var(--blue);opacity:.55;pointer-events:none;}
.deco svg{display:block;width:100%;height:100%;}
.deco.pink{color:var(--pink);}
.deco-cross-1{top:1%;left:9%;width:22px;height:22px;}
.deco-cross-2{top:3%;right:16%;width:18px;height:18px;}
.deco-cross-3{top:36%;right:-1%;width:30px;height:30px;opacity:.45;}
.deco-cross-4{bottom:14%;right:6%;width:18px;height:18px;}
.deco-dot{top:14%;right:6%;width:8px;height:8px;background:var(--blue);border-radius:50%;opacity:.5;}
.deco-heart-1{top:54%;left:-2%;width:24px;height:24px;}
.deco-heart-2{top:44%;right:1%;width:30px;height:30px;opacity:.5;}
@media (max-width:900px){.deco{display:none;}}

/* ---------- Members ---------- */
.members{margin:52px auto 10px;}
.members-box{
  background:var(--white);border-radius:var(--radius-lg);box-shadow:var(--shadow);
  padding:28px 40px;display:flex;align-items:center;gap:40px;flex-wrap:wrap;
}
.members-label{font-weight:800;color:var(--navy);font-size:15px;letter-spacing:.3px;flex:none;}
.member{display:flex;align-items:center;gap:14px;flex:1;min-width:210px;}
.member img{width:52px;height:52px;border-radius:50%;object-fit:contain;flex:none;}
.member span{font-size:13.5px;font-weight:600;color:var(--navy);line-height:1.4;}

/* ---------- Services ---------- */
.services{padding:78px 0 20px;text-align:center;}
.section-title{font-size:clamp(22px,4vw,30px);font-weight:800;position:relative;display:inline-block;padding:0 34px;}
.section-title::before,.section-title::after{content:"";position:absolute;top:50%;width:22px;height:2px;background:var(--blue);opacity:.5;}
.section-title::before{left:0;}
.section-title::after{right:0;}
.section-sub{margin:10px 0 42px;font-size:15px;}
.cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;text-align:left;}
.card{
  background:var(--white);border-radius:var(--radius-md);padding:26px 24px;
  box-shadow:var(--shadow); display:flex; gap:16px;
}
.card img{width:58px;height:58px;flex:none;}
.card h3{font-size:16px;font-weight:700;margin-bottom:6px;}
.card p{margin:0;font-size:13.5px;line-height:1.55;}
.card.c-blue h3{color:var(--blue);}
.card.c-pink h3{color:var(--pink);}
.card.c-teal h3{color:var(--teal);}
.card.c-navy h3{color:var(--navy);}
@media (max-width:900px){.cards-grid{grid-template-columns:1fr;}}

/* ---------- Info / location ---------- */
.info{padding:70px 0;}
.info-heading{text-align:center;margin-bottom:42px;}
.info-grid{display:grid;grid-template-columns:1.05fr 1.15fr .85fr .95fr;gap:18px;align-items:stretch;}
.info-col{background:var(--white);border-radius:var(--radius-md);box-shadow:var(--shadow);padding:26px;display:flex;flex-direction:column;height:100%;}
.info-col h3{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:700;margin-bottom:18px;}
.info-col h3 svg{width:19px;height:19px;color:var(--blue);}
.clinic{margin-bottom:20px;}
.clinic:last-child{margin-bottom:0;}
.clinic strong{display:block;font-size:14.5px;color:var(--navy);margin-bottom:3px;}
.clinic span{display:block;font-size:12.5px;margin-bottom:10px;}
.map-link{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--blue);border:1.5px solid #DCEBFC;padding:7px 12px;border-radius:9px;}
.map-link svg{width:13px;height:13px;}
.info-map{padding:0;overflow:hidden;display:flex;}
.info-map img{width:100%;height:100%;object-fit:cover;border-radius:var(--radius-md);}
.contact-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px;}
.contact-list li{font-size:13.5px;font-weight:600;color:var(--navy);}
.contact-list li a{display:flex;align-items:center;gap:10px;color:inherit;transition:color .15s ease;}
.contact-list li a:hover{color:var(--blue);}
.contact-list li svg{width:18px;height:18px;color:var(--blue);flex:none;}
.contact-list li.wa svg{color:#25D366;}
.map-link:hover, .info-map{cursor:pointer;}
.hours-group{margin-bottom:16px;}
.hours-group:last-child{margin-bottom:0;}
.hours-title{font-size:13px;font-weight:800;color:var(--blue);margin-bottom:8px;}
.hours-row{display:flex;justify-content:space-between;font-size:12.5px;padding:3px 0;color:var(--navy);font-weight:600;}
.hours-contact{gap:6px;margin-top:4px;}
.hours-contact li{font-size:12.5px;font-weight:600;}
@media (max-width:1100px){.info-grid{grid-template-columns:1fr 1fr;}}
@media (max-width:640px){.info-grid{grid-template-columns:1fr;}}

/* ---------- CTA ---------- */
.cta{padding:10px 0 70px;}
.cta-box{
  position:relative;background:linear-gradient(135deg,#EFF6FF,#E7F1FE);
  border-radius:var(--radius-lg);box-shadow:var(--shadow);
  display:flex;align-items:center;justify-content:center;gap:34px;
  padding:34px 30px;overflow:hidden;text-align:center;flex-wrap:wrap;
}
.cta-box img.teddy{width:150px;flex:none;}
.cta-copy h2{font-size:clamp(20px,3.2vw,24px);font-weight:800;margin-bottom:8px;}
.cta-copy p{margin:0 0 20px;font-size:14px;max-width:420px;}
.cta-buttons{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;}
@media (max-width:800px){.cta-box img.teddy{width:100px;}}

/* ---------- Footer ---------- */
.footer{background:var(--white);padding:34px 0;margin-top:10px;}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;}
.footer-inner .brand-logo{width:46px;height:46px;}
.footer-inner .brand-text .brand-name{font-size:16px;}
.footer-mid{font-size:12.5px;text-align:center;color:var(--text);line-height:1.6;}
.footer-mid strong{color:var(--navy);}
.footer-mid svg{width:20px;height:20px;color:var(--blue);margin-bottom:6px;}
.footer-social{text-align:center;}
.footer-social p{margin:0 0 10px;font-size:12.5px;font-weight:700;color:var(--navy);}
.social-icons{display:flex;gap:10px;justify-content:center;}
.social-icons a{width:34px;height:34px;border-radius:9px;background:var(--blue-light);color:var(--blue);display:flex;align-items:center;justify-content:center;}
.social-icons svg{width:17px;height:17px;}
.footer-trust{display:flex;align-items:center;gap:10px;font-size:12.5px;max-width:230px;color:var(--text);}
.footer-trust svg{width:30px;height:30px;color:var(--blue);flex:none;}
.footer-trust strong{display:block;color:var(--navy);font-size:12.5px;}
@media (max-width:900px){.footer-inner{justify-content:center;text-align:center;}}

/* ---------- Footer credit (MobilogRD attribution) ---------- */
.footer-credit{
  width:100%;text-align:center;font-size:11px;color:var(--text);opacity:.6;
  padding-top:14px;margin-top:14px;
  border-top:1px solid rgba(20,35,92,.08);
}


@media (max-width:900px){
  .hero-inner{grid-template-columns:1fr;text-align:center;}
  .hero-copy > p{margin-left:auto;margin-right:auto;}
  .hero-ctas,.hero-badges{justify-content:center;}
  .hero-photo{order:-1;}
}

/* ---------- Booking modal ---------- */
button.btn{font:inherit;appearance:none;-webkit-appearance:none;}
.booking-overlay{
  display:none;position:fixed;inset:0;z-index:1000;
  background:rgba(20,35,92,.55);backdrop-filter:blur(2px);
  padding:24px;overflow-y:auto;
}
.booking-overlay.open{display:flex;align-items:flex-start;justify-content:center;}
body.booking-open{overflow:hidden;}
.booking-modal{
  background:var(--white);border-radius:var(--radius-lg);box-shadow:var(--shadow);
  width:100%;max-width:480px;margin:auto;padding:26px 26px 30px;position:relative;
}
.booking-close{
  position:absolute;top:16px;right:16px;width:34px;height:34px;border-radius:10px;
  border:none;background:var(--blue-light);color:var(--navy);cursor:pointer;
  display:flex;align-items:center;justify-content:center;font-size:18px;line-height:1;
}
.booking-close:hover{background:var(--bg2);}
.booking-steps{font-size:12.5px;font-weight:700;color:var(--blue);letter-spacing:.03em;text-transform:uppercase;margin:0 0 6px;}
.booking-modal h3{font-size:19px;margin:0 0 16px;padding-right:30px;}
.booking-step{display:none;}
.booking-step.active{display:block;}
.booking-list{display:flex;flex-direction:column;gap:10px;margin:0 0 6px;}
.booking-option{
  display:block;width:100%;text-align:left;background:var(--blue-light);border:2px solid transparent;
  border-radius:var(--radius-md);padding:14px 16px;cursor:pointer;font-family:inherit;color:var(--navy);
  transition:border-color .15s ease, background .15s ease;
}
.booking-option:hover{border-color:var(--blue);}
.booking-option strong{display:block;font-size:14.5px;color:var(--navy);}
.booking-option span{display:block;font-size:12.5px;color:var(--text);margin-top:3px;line-height:1.5;}
.booking-slots{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 6px;}
.booking-slot{
  background:var(--white);border:2px solid var(--blue-light);border-radius:12px;padding:9px 14px;
  font-family:inherit;font-size:13.5px;font-weight:600;color:var(--navy);cursor:pointer;
}
.booking-slot:hover{border-color:var(--blue);}
.booking-slot.selected{background:var(--blue);border-color:var(--blue);color:#fff;}
.booking-field{margin-bottom:14px;}
.booking-field label{display:block;font-size:13px;font-weight:600;color:var(--navy);margin-bottom:5px;}
.booking-field input,.booking-field textarea{
  width:100%;padding:11px 13px;border-radius:12px;border:2px solid var(--blue-light);
  font-family:inherit;font-size:14px;color:var(--navy);background:var(--white);
}
.booking-field input:focus,.booking-field textarea:focus{outline:none;border-color:var(--blue);}
.booking-field.required label::after{content:' *';color:var(--pink);}
.booking-hint{display:block;font-size:11.5px;color:var(--text);margin-top:5px;line-height:1.4;}
.booking-document-title{font-size:13px;font-weight:700;color:var(--navy);margin:0 0 8px;}
.booking-actions{display:flex;gap:10px;margin-top:18px;}
.booking-actions .btn{flex:1;padding:13px 18px;font-size:14px;}
.booking-back{background:none;border:none;color:var(--text);font-size:13px;cursor:pointer;padding:0;margin-bottom:14px;display:inline-flex;align-items:center;gap:4px;font-family:inherit;}
.booking-back:hover{color:var(--blue);}
.booking-msg{font-size:13.5px;color:var(--text);text-align:center;padding:18px 0;}
.booking-msg.error{color:var(--pink);}
.booking-spinner{
  width:26px;height:26px;border-radius:50%;border:3px solid var(--blue-light);border-top-color:var(--blue);
  margin:6px auto 12px;animation:booking-spin .7s linear infinite;
}
@keyframes booking-spin{to{transform:rotate(360deg);}}
.booking-summary{background:var(--bg1);border-radius:var(--radius-md);padding:14px 16px;font-size:13.5px;color:var(--navy);margin-bottom:16px;line-height:1.7;}
.booking-summary strong{color:var(--navy);}
.booking-success{text-align:center;padding:6px 0 4px;}
.booking-success .ic{width:56px;height:56px;border-radius:50%;background:var(--teal-light);color:var(--teal);display:flex;align-items:center;justify-content:center;margin:0 auto 14px;}
.booking-success .ic svg{width:28px;height:28px;}
.booking-success p{font-size:13.5px;margin:6px 0 0;}
@media (max-width:520px){.booking-overlay{padding:0;}.booking-modal{max-width:none;min-height:100%;border-radius:0;}}

/* ---------- Utility classes (SEC-003: reemplazan style="" inline) ---------- */
/* booking modal inline styles → clases */
.booking-external-msg{text-align:left;padding:0 0 16px;}
.booking-external-link{flex:1;text-align:center;}
.booking-turnstile-wrap{margin-bottom:14px;}
.booking-action-btn-flex{flex:1;}

/* continueBtn dinámico en booking.js (continueBtn.style.*) → clase */
.booking-continue-btn{margin-top:14px;width:100%;}

/* fallbackLinkHtml en booking.js → clase en el link generado */
.booking-fallback-link{flex:1;text-align:center;}

/* SVG de WhatsApp en success → clase en el SVG */
.booking-success-wa-icon{width:18px;height:18px;}
