/* Plantillas SEO/GEO de pediatría. Identidad del sitio: violeta, rosa y acentos infantiles. */
.sg-page { --sg-purple:#6f63a8; --sg-pink:#c94393; --sg-deep:#33315b; --sg-ink:#23233c; --sg-muted:#596074; --sg-soft:#faf6ff; --sg-border:#ece7f3; color:var(--sg-ink); }
.sg-page .sg-shell { width:min(1240px, calc(100% - 40px)); margin:0 auto; }
.sg-page .sg-section { padding:88px 0; position:relative; }
.sg-page .sg-section h2,.sg-page .sg-hero h1,.sg-page .sg-hero h2 { font-family:"Montserrat",sans-serif; text-transform:none; letter-spacing:-.025em; }
.sg-page .sg-section h2 { font-size:clamp(2rem, 3.55vw, 2.95rem); line-height:1.22; color:var(--sg-deep); font-weight:800; margin:0 0 28px; max-width:1100px; }
.sg-page .sg-section h3 { font-family:"Montserrat",sans-serif; color:var(--sg-deep); font-size:1.16rem; line-height:1.45; font-weight:700; margin:0 0 12px; }
.sg-page .sg-section p,.sg-page .sg-hero p { font-family:"Montserrat",sans-serif; line-height:1.8; font-size:1rem; }
.sg-page .sg-section p { color:var(--sg-muted); margin:0 0 18px; }
.sg-page .sg-section__intro { max-width:1050px; margin:0 0 36px!important; }
.sg-page .sg-section strong { font-weight:700; }
.sg-page .sg-section a:not(.sg-btn) { color:var(--sg-purple); }
.sg-page .sg-section a:hover { color:var(--sg-pink); }
.sg-page .sg-eyebrow,.sg-page .sg-kicker { display:inline-block; color:var(--sg-pink); font-size:.8rem; font-family:"Montserrat",sans-serif; font-weight:750; letter-spacing:.12em; text-transform:uppercase; margin-bottom:16px; }
.sg-page .sg-text-link { display:inline-flex; align-items:center; gap:9px; font-weight:750; text-decoration:none; font-size:.95rem; }

/* Migas visibles, con solo la primera letra de la keyword en mayúscula. */
.sg-page .sg-breadcrumb { background:#f4f5f8; border-top:1px solid #f3edf8; border-bottom:1px solid var(--sg-border); padding:15px 0; font-size:.9rem; }
.sg-page .sg-breadcrumb .sg-shell { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.sg-page .sg-breadcrumb a { color:var(--sg-purple); font-weight:700; }
.sg-page .sg-breadcrumb span { color:#606179; }
.sg-page .sg-breadcrumb span:last-child { overflow-wrap:anywhere; font-weight:700; color:var(--sg-deep); }

/* H1 visible y tarjeta blanca del médico, sin animaciones de entrada. */
.sg-page .sg-hero { background:linear-gradient(180deg,rgba(129, 116, 226, 0.87),rgba(25,31,68,.94)),url('../img/about/consulta-con-pediatra-puericultor-en-quito-ecuador.webp') center 42% / cover; padding:82px 0 84px; overflow:hidden; text-align:center; }
.sg-page .sg-hero__inner { display:flex; flex-direction:column; align-items:center; gap:0; }
.sg-page .sg-hero__copy { width:100%; max-width:1100px; }
.sg-page .sg-hero h1 { color:#fff!important; font-size:clamp(2.5rem,5.3vw,4.25rem); line-height:1.17; font-weight:800; margin:0 auto 35px; max-width:1060px; }
.sg-page .sg-hero__copy p { color:#f8f6ff; max-width:970px; margin:0 auto 11px; line-height:1.95; font-size:.98rem; }
.sg-page .sg-hero__copy a { color:#d7bbf0; }
.sg-page .sg-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:14px; margin-top:28px; }
.sg-page .sg-btn { display:inline-flex; justify-content:center; align-items:center; gap:10px; border:2px solid transparent; border-radius:50px; padding:13px 22px; font:700 .91rem "Montserrat",sans-serif; text-decoration:none!important; transition:background-color .18s ease,color .18s ease,border-color .18s ease; }
.sg-page .sg-btn--light { background:#c94393; color:#fff!important; }
.sg-page .sg-btn--light:hover { background:#af2e7d; }
.sg-page .sg-btn--outline { border-color:rgba(255,255,255,.65); color:#fff!important; }
.sg-page .sg-btn--outline:hover { background:rgba(255,255,255,.13); }
.sg-page .sg-hero__card { background:#fff; border-radius:17px; padding:24px 27px 20px; box-shadow:0 20px 50px rgba(15,19,56,.2); max-width:755px; width:100%; margin:28px auto 0; overflow:hidden; display:grid; grid-template-columns:94px minmax(0,1fr); align-items:start; gap:18px; text-align:left; }
.sg-page .sg-hero__portrait { width:94px; height:110px; display:flex; justify-content:center; align-items:flex-end; margin:0; background:#f8f2fc; border-radius:50%; overflow:hidden; }
.sg-page .sg-hero__portrait img { width:100%; height:100%; object-fit:contain; object-position:bottom; }
.sg-page .sg-card-label { color:var(--sg-pink); font-size:.78rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.sg-page .sg-hero__card h2 { font-size:clamp(1.3rem,1.9vw,1.65rem); color:var(--sg-purple); margin:0 0 8px; }
.sg-page .sg-hero__card p { margin:0 0 12px; font-size:.91rem; color:var(--sg-muted); }
.sg-page .sg-location { display:flex; grid-column:1 / -1; align-items:flex-start; gap:12px; border-top:1px solid var(--sg-border); padding-top:12px; margin-top:0; color:#5a6073; font-size:.89rem; line-height:1.55; }
.sg-page .sg-location i { color:var(--sg-pink); padding-top:3px; }
.sg-page .sg-location strong { display:block; color:var(--sg-deep); font-weight:700; }

/* Médico y currículum. */
.sg-page .sg-medico__grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(350px,.9fr); gap:65px; align-items:center; }
.sg-page .sg-medico__media { min-height:465px; background:radial-gradient(circle at 50% 80%,#faf0f7,transparent 70%),linear-gradient(135deg,#f8f2fc,#eae1f6); border-radius:24px; overflow:hidden; display:flex; align-items:flex-end; justify-content:center; }
.sg-page .sg-medico__media img { height:480px; max-height:100%; width:auto; object-fit:contain; object-position:bottom; }
.sg-page .sg-check-list { list-style:none; padding:0; margin-bottom:24px; }
.sg-page .sg-check-list li { padding:8px 0 8px 25px; position:relative; }
.sg-page .sg-check-list li::before { content:'✓'; position:absolute; left:0; color:var(--sg-purple); font-weight:900; }
.sg-page .sg-resenas { background:#fbf9fe; }
.sg-page .sg-resenas__widget { width:100%; max-width:none; }
.sg-page .sg-curriculum { background:var(--sg-soft); }
.sg-page .sg-curriculum > .sg-shell > h2,.sg-page .sg-enfermedades > .sg-shell > h2,.sg-page .sg-tratamientos > .sg-shell > h2,.sg-page .sg-geo > .sg-shell > h2,.sg-page .sg-contacto > .sg-shell > h2 { text-align:center; margin-left:auto; margin-right:auto; }
.sg-page .sg-curriculum > .sg-shell > .sg-eyebrow,.sg-page .sg-enfermedades > .sg-shell > .sg-eyebrow,.sg-page .sg-tratamientos > .sg-shell > .sg-eyebrow,.sg-page .sg-geo > .sg-shell > .sg-eyebrow,.sg-page .sg-contacto > .sg-shell > .sg-eyebrow { display:block; text-align:center; }
.sg-page .sg-curriculum .sg-section__intro,.sg-page .sg-enfermedades .sg-section__intro,.sg-page .sg-tratamientos .sg-section__intro,.sg-page .sg-geo .sg-section__intro,.sg-page .sg-contacto .sg-section__intro { margin-left:auto!important; margin-right:auto!important; text-align:center; }
.sg-page .sg-curriculum__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.sg-page .sg-curriculum__card { background:#fff; border:1px solid var(--sg-border); padding:28px; border-radius:18px; min-height:180px; }
.sg-page .sg-curriculum__icon { display:grid; place-items:center; width:52px; height:52px; background:#f4e9f8; color:var(--sg-purple); border-radius:14px; font-size:1.3rem; margin-bottom:16px; }
.sg-page .sg-curriculum__card ul { margin:0; padding-left:19px; color:var(--sg-muted); }
.sg-page .sg-curriculum__card li { padding:3px 0; }

/* Enfermedades numeradas y tratamientos con imágenes sin repetición. */
.sg-page .sg-enfermedades__grid,.sg-page .sg-tratamientos__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.sg-page .sg-enfermedades { background:#f8f5fc; }
.sg-page .sg-enfermedades__card { background:#fff; border:1px solid var(--sg-border); border-radius:17px; box-shadow:0 10px 35px rgba(76,55,108,.055); padding:28px 25px; }
.sg-page .sg-enfermedades__number { color:var(--sg-pink); font:800 2rem "Montserrat",sans-serif; display:block; margin:0 0 16px; }
.sg-page .sg-enfermedades__card p,.sg-page .sg-tratamientos__card p { font-size:.94rem; margin:0; }
.sg-page .sg-tratamientos { background:#fff; }
.sg-page .sg-tratamientos__card { background:#fff; border-radius:18px; box-shadow:0 12px 35px rgba(81,62,110,.075); overflow:hidden; }
.sg-page .sg-tratamientos__image { height:235px; background:#f5edf8; position:relative; }
.sg-page .sg-tratamientos__image img { display:block; width:100%; height:100%; object-fit:cover; }
.sg-page .sg-tratamientos__number { position:absolute; left:17px; bottom:15px; width:52px; height:52px; border-radius:50%; background:var(--sg-pink); color:#fff; display:grid; place-items:center; font:800 1.1rem "Montserrat",sans-serif; box-shadow:0 7px 16px rgba(0,0,0,.18); }
.sg-page .sg-tratamientos__copy { padding:25px; }
.sg-page .sg-tratamientos__copy h3 a { color:var(--sg-deep); text-decoration:none; }
.sg-page .sg-tratamientos__copy .sg-text-link { margin-top:18px; display:inline-flex; }

/* Preguntas SEO/GEO en una sola columna, lectura continua. */
.sg-page .sg-geo__shell { max-width:1240px; }
.sg-page .sg-geo__item { padding:22px 0 24px; border-bottom:1px solid var(--sg-border); }
.sg-page .sg-geo__item:last-child { border-bottom:0; }
.sg-page .sg-geo__item h3 { font-size:1.18rem; margin-bottom:12px; }
.sg-page .sg-geo__item p { margin:0; }

/* FAQ con encabezado lateral y acordeón accesible, primera pregunta abierta. */
.sg-page .sg-faq { background:#faf6fe; }
.sg-page .sg-faq__grid { display:grid; grid-template-columns:minmax(260px,1fr) minmax(0,2fr); gap:46px; align-items:start; }
.sg-page .sg-faq__item { background:#fff; border:1px solid #e7dff0; border-radius:13px; margin-bottom:13px; overflow:hidden; }
.sg-page .sg-faq__item summary { list-style:none; cursor:pointer; padding:20px 22px; display:flex; justify-content:space-between; align-items:center; gap:16px; }
.sg-page .sg-faq__item summary::-webkit-details-marker { display:none; }
.sg-page .sg-faq__item summary h3 { font-size:1.04rem; margin:0; flex:1; }
.sg-page .sg-faq__number { color:var(--sg-pink); font-weight:800; font-size:.9rem; flex:none; }
.sg-page .sg-faq__item summary i { color:var(--sg-purple); font-size:.86rem; transition:transform .16s ease; }
.sg-page .sg-faq__item[open] summary i { transform:rotate(45deg); }
.sg-page .sg-faq__item > div { padding:0 22px 18px; }
.sg-page .sg-faq__item > div p { margin:0; font-size:.94rem; }

/* Contacto único: tres tarjetas amplias. */
.sg-page .sg-contacto__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.sg-page .sg-contacto__card { border:1px solid var(--sg-border); border-radius:18px; background:#fff; padding:28px; box-shadow:0 12px 35px rgba(76,55,108,.06); overflow-wrap:anywhere; }
.sg-page .sg-contacto__icon { display:grid; place-items:center; width:56px; height:56px; border-radius:15px; background:#f4e8f5; color:var(--sg-pink); font-size:1.4rem; margin-bottom:22px; }
.sg-page .sg-contacto__card h3 { font-size:1.24rem; }
.sg-page .sg-contacto__card p { min-height:67px; font-size:.94rem; }
.sg-page .sg-contacto__card a { display:inline-flex; font-weight:750; text-decoration:underline; text-underline-offset:4px; }
.sg-page .sg-section *, .sg-page .sg-hero *, .sg-page .sg-breadcrumb * { animation:none!important; opacity:1; visibility:visible; transform:none; }
.sg-page .sg-faq__item[open] summary i { transform:rotate(45deg); }

@media (max-width:1100px) {
  .sg-page .sg-medico__grid { gap:32px; }
  .sg-page .sg-enfermedades__grid,.sg-page .sg-tratamientos__grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:850px) {
  .sg-page .sg-section { padding:64px 0; }
  .sg-page .sg-hero { padding:64px 0; }
  .sg-page .sg-medico__grid,.sg-page .sg-faq__grid { grid-template-columns:1fr; }
  .sg-page .sg-hero__card { max-width:650px; }
  .sg-page .sg-curriculum__grid,.sg-page .sg-contacto__grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sg-page .sg-faq__grid { gap:24px; }
}
@media (max-width:580px) {
  .sg-page .sg-shell { width:min(100% - 28px,1240px); }
  .sg-page .sg-section { padding:48px 0; }
  .sg-page .sg-hero { padding:52px 0; }
  .sg-page .sg-hero__card { padding:22px; grid-template-columns:72px minmax(0,1fr); gap:13px; }
  .sg-page .sg-hero__portrait { width:72px; height:85px; }
  .sg-page .sg-actions { flex-direction:column; }
  .sg-page .sg-btn { width:100%; }
  .sg-page .sg-medico__media { min-height:330px; }
  .sg-page .sg-medico__media img { height:355px; }
  .sg-page .sg-curriculum__grid,.sg-page .sg-enfermedades__grid,.sg-page .sg-tratamientos__grid,.sg-page .sg-contacto__grid { grid-template-columns:1fr; }
  .sg-page .sg-contacto__card p { min-height:0; }
  .sg-page .sg-breadcrumb { font-size:.82rem; }
}
