/* SEO/GEO — Dr. Fausto Dávila. */
.sg-page {
    --sg-primary: #6a477b;
    --sg-dark: #34263f;
    --sg-accent: #49af9e;
    --sg-ink: #263246;
    --sg-muted: #5f6777;
    --sg-soft: #f6f7fa;
    --sg-border: #e5e9ee;
    font-family: Roboto, Arial, sans-serif;
}
.sg-page main { overflow: clip; }
.sg-page main *, .sg-page main *::before, .sg-page main *::after { box-sizing: border-box; }
.sg-page main h1, .sg-page main h2, .sg-page main h3, .sg-page main p, .sg-page main ul { margin-top: 0; }
.sg-page main p, .sg-page main li { font-size: 16px; line-height: 1.85; color: var(--sg-muted); }
.sg-page main h2 { font-size: clamp(29px, 3vw, 43px); line-height: 1.23; font-weight: 800; letter-spacing: -.025em; color: var(--sg-ink); margin-bottom: 23px; }
.sg-page main h3 { font-size: 21px; font-weight: 750; line-height: 1.35; color: var(--sg-ink); margin-bottom: 14px; }
.sg-page main a { text-decoration: none; }
.sg-page main a:hover { color: var(--sg-primary); }
.sg-page main strong { font-weight: 750; }
.sg-page .sg-shell { max-width: 1290px; padding: 0 30px; margin-left: auto; margin-right: auto; }
.sg-page .sg-center { text-align: center; max-width: 1100px; margin-left: auto; margin-right: auto; }
.sg-page .sg-kicker { color: var(--sg-accent); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.sg-page .sg-copy { color: var(--sg-muted); font-size: 16px; line-height: 1.9; }
.sg-page .sg-copy--wide { max-width: 1130px; text-align: center; margin: 0 auto 42px; }
.sg-page .sg-copy a { color: var(--sg-accent); font-weight: 650; }
.sg-page .sg-section { padding: 95px 0; background: #fff; }
.sg-page .sg-breadcrumb { background: #f6f7fa; color: #4b5260; padding: 18px 0; font-size: 14px; }
.sg-page .sg-breadcrumb .sg-shell { display: flex; gap: 10px; align-items: center; }
.sg-page .sg-breadcrumb a { color: var(--sg-muted); }
.sg-page .sg-breadcrumb [aria-current] { font-weight: 700; color: var(--sg-ink); }

/* Hero centrado, overlay e imagen, tarjeta horizontal del médico. */
.sg-page .sg-hero { background-image: linear-gradient(135deg, rgba(52,38,63,.85),rgba(106,71,123,.83) 50%,rgba(35,44,59,.88)), var(--sg-banner-image); background-position: center; background-size: cover; color: #fff; padding: 90px 0 76px; position: relative; text-align: center; }
.sg-page .sg-hero h1 { max-width: 1120px; margin: 0 auto 30px; color: #fff; font-size: clamp(39px, 5.25vw, 74px); line-height: 1.17; font-weight: 800; letter-spacing: -.025em; opacity: 1 !important; visibility: visible !important; transform: none !important; animation: none !important; }
.sg-page .sg-hero__intro { max-width: 1040px; margin: 0 auto 28px; }
.sg-page .sg-hero__intro p { color: #f8f9ff; line-height: 1.82; font-size: 17px; margin: 0 auto 12px; }
.sg-page .sg-hero__intro a { color: #88dfc8; font-weight: 700; }
.sg-page .sg-hero__intro strong { color: #fff; }
.sg-page .sg-hero-card { margin: 30px auto 27px; max-width: 950px; padding: 25px 30px; background: #fff; color: var(--sg-ink); display: flex; align-items: flex-start; gap: 25px; border-radius: 19px; box-shadow: 0 18px 40px rgba(23,20,29,.22); text-align: left; }
.sg-page .sg-hero-card > img { width: 114px; height: 114px; flex: 0 0 114px; object-fit: cover; border-radius: 13px; }
.sg-page .sg-hero-card h2 { font-size: clamp(22px, 2.2vw, 29px); color: var(--sg-primary); text-align: left; margin-bottom: 12px; }
.sg-page .sg-hero-card p { font-size: 15px; line-height: 1.75; margin-bottom: 8px; }
.sg-page .sg-hero-card__location i { color: var(--sg-accent); margin-right: 7px; }
.sg-page .sg-hero-card__address { font-size: 14px !important; margin-bottom: 0 !important; }
.sg-page .sg-hero__actions { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.sg-page .sg-btn { border: 2px solid transparent; display: inline-flex; gap: 11px; justify-content: center; align-items: center; border-radius: 50px; padding: 14px 25px; font-size: 15px; font-weight: 750; line-height: 1.3; box-shadow: 0 7px 19px rgba(0,0,0,.12); }
.sg-page .sg-btn--light { color: var(--sg-primary); background: #fff; }
.sg-page .sg-btn--accent { color: #fff; background: var(--sg-accent); }
.sg-page .sg-btn--light:hover, .sg-page .sg-btn--accent:hover { color: #fff; background: var(--sg-dark); }

/* Médico y resumen académico del sitio original. */
.sg-page .sg-medico__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(30px,5vw,90px); align-items: center; }
.sg-page .sg-medico__content { max-width: 640px; }
.sg-page .sg-medico .sg-copy { max-width: 640px; }
.sg-page .sg-medico__image { margin: 0; min-height: 420px; height: 560px; position: relative; overflow: hidden; border-radius: 15px; background: #eef2f6; }
.sg-page .sg-medico__image img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.sg-page .sg-list { padding-left: 25px; margin-bottom: 0; }
.sg-page .sg-list li { padding-bottom: 9px; }
.sg-page .sg-reviews { background: var(--sg-soft); padding: 65px 0; }
.sg-page .sg-reviews__panel { max-width: 1250px; border-radius: 22px; background: linear-gradient(128deg, #624178, #352b56); padding: 56px 44px; text-align: center; }
.sg-page .sg-reviews h2, .sg-page .sg-reviews p, .sg-page .sg-reviews .sg-copy { color: #fff; }
.sg-page .sg-reviews__widget { background: #fff; border-radius: 14px; margin-top: 30px; padding: 20px; }
.sg-page .sg-curriculum { background: #fff; }
.sg-page .sg-curriculum__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; margin: 38px 0; }
.sg-page .sg-curriculum__card { border: 1px solid var(--sg-border); padding: 28px; border-radius: 14px; background: #fff; }
.sg-page .sg-curriculum__card i { font-size: 30px; color: var(--sg-accent); margin-bottom: 20px; }
.sg-page .sg-curriculum__card h3 { font-size: 19px; }
.sg-page .sg-curriculum__card p { margin-bottom: 4px; }
.sg-page .sg-curriculum__subheading { font-size: 25px; margin: 38px 0 18px; }
.sg-page .sg-list--columns { columns: 2; column-gap: 45px; }
.sg-page .sg-list--columns li { break-inside: avoid; }

/* Nueve enfermedades numeradas, seis tratamientos con imágenes diferentes. */
.sg-page .sg-conditions { background: var(--sg-soft); }
.sg-page .sg-conditions__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.sg-page .sg-conditions__card { min-height: 245px; background: #fff; padding: 27px 28px; border: 1px solid var(--sg-border); border-radius: 14px; box-shadow: 0 7px 22px rgba(39,48,64,.035); }
.sg-page .sg-conditions__card .sg-index { font-weight: 800; font-size: 38px; color: var(--sg-primary); display: block; opacity: .85; margin-bottom: 13px; }
.sg-page .sg-conditions__card h3 { font-size: 20px; }
.sg-page .sg-conditions__card p { margin-bottom: 0; }
.sg-page .sg-treatments__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.sg-page .sg-treatments__card { background: #fff; overflow: hidden; border: 1px solid var(--sg-border); border-radius: 16px; box-shadow: 0 12px 32px rgba(44,44,72,.055); }
.sg-page .sg-treatments__image { height: 220px; position: relative; overflow: hidden; background: #e6ecee; }
.sg-page .sg-treatments__image img { width: 100%; height: 100%; object-fit: cover; }
.sg-page .sg-treatments__image span { position: absolute; bottom: -1px; left: 24px; padding: 12px 17px 9px; background: var(--sg-accent); color: white; font-size: 23px; font-weight: 800; border-radius: 10px 10px 0 0; }
.sg-page .sg-treatments__body { padding: 25px 26px 30px; }
.sg-page .sg-treatments__body h3 a { color: var(--sg-ink); }
.sg-page .sg-treatments__body h3 a:hover { color: var(--sg-primary); }
.sg-page .sg-treatments__body p { margin-bottom: 0; }
.sg-page .sg-treatments__more { display: inline-block; color: var(--sg-primary); font-weight: 700; margin-top: 18px; }

/* Contenido SEO/GEO fluido en una columna, sin tarjetas ni animaciones. */
.sg-page .sg-geo { background: #fff; }
.sg-page .sg-geo__content { max-width: 1130px; margin: 0 auto; }
.sg-page .sg-geo__item { padding: 22px 0; border-bottom: 1px solid var(--sg-border); }
.sg-page .sg-geo__item:last-child { border: 0; }
.sg-page .sg-geo__item h3 { font-size: clamp(21px,2vw,26px); margin-bottom: 12px; }
.sg-page .sg-geo__item p { margin-bottom: 0; }

/* FAQ: título a la izquierda y acordeón a la derecha, primer panel abierto. */
.sg-page .sg-faq { background: var(--sg-soft); }
.sg-page .sg-faq__grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 58px; }
.sg-page .sg-faq__intro h2 { text-align: left; }
.sg-page .sg-faq__item { background: #fff; border: 1px solid var(--sg-border); margin-bottom: 12px; border-radius: 12px; overflow: hidden; }
.sg-page .sg-faq__item summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 21px 22px; cursor: pointer; }
.sg-page .sg-faq__item summary::-webkit-details-marker { display: none; }
.sg-page .sg-faq__num { color: var(--sg-accent); font-size: 15px; font-weight: 800; }
.sg-page .sg-faq__item summary h3 { font-size: 17px; line-height: 1.45; flex: 1; margin: 0; }
.sg-page .sg-faq__toggle { border-radius: 50%; width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; background: #f0f4f4; }
.sg-page .sg-faq__toggle::before { content: '+'; font-size: 20px; font-weight: 500; line-height: 1; color: var(--sg-primary); }
.sg-page .sg-faq__item[open] .sg-faq__toggle::before { content: '−'; }
.sg-page .sg-faq__item[open] { border-color: #cdd9d9; }
.sg-page .sg-faq__answer { color: var(--sg-muted); font-size: 15px; line-height: 1.85; padding: 0 25px 24px 57px; }

/* Contacto: tres tarjetas completas; no se repite la sección en componentes SG. */
.sg-page .sg-contact { background: #fff; }
.sg-page .sg-contact__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 23px; }
.sg-page .sg-contact__card { text-align: center; background: var(--sg-soft); border-radius: 15px; border: 1px solid var(--sg-border); padding: 38px 26px; }
.sg-page .sg-contact__icon { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--sg-primary); color: #fff; font-size: 25px; margin-bottom: 21px; }
.sg-page .sg-contact__card h3 { font-size: 24px; margin-bottom: 13px; }
.sg-page .sg-contact__card a { font-size: 15px; line-height: 1.7; font-weight: 650; overflow-wrap: anywhere; color: var(--sg-primary); }
.sg-page .sg-contact__card a:hover { color: var(--sg-accent); }

/* Los títulos y fotografías de estas secciones se renderizan desde el primer frame. */
.sg-page main [class*='sg-'] { animation: none; visibility: visible; }
@media (max-width: 1050px) {
    .sg-page .sg-medico__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .sg-page .sg-medico__image { min-height: 350px; height: 470px; }
    .sg-page .sg-faq__grid { grid-template-columns: 1fr; gap: 32px; }
    .sg-page .sg-curriculum__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px) {
    .sg-page .sg-shell { padding: 0 20px; }
    .sg-page .sg-section { padding: 65px 0; }
    .sg-page .sg-hero { padding: 70px 0 50px; }
    .sg-page .sg-hero h1 { font-size: clamp(34px,8.5vw,54px); }
    .sg-page .sg-hero__intro p { font-size: 15px; }
    .sg-page .sg-hero-card { padding: 23px; flex-direction: column; align-items: center; text-align: center; }
    .sg-page .sg-hero-card h2 { text-align: center; }
    .sg-page .sg-hero-card > img { width: 100px; height: 100px; flex-basis: auto; }
    .sg-page .sg-medico__grid { grid-template-columns: 1fr; }
    .sg-page .sg-medico__image { height: 390px; min-height: 0; }
    .sg-page .sg-conditions__grid, .sg-page .sg-treatments__grid, .sg-page .sg-contact__grid { grid-template-columns: 1fr; }
    .sg-page .sg-curriculum__grid { grid-template-columns: 1fr; }
    .sg-page .sg-list--columns { columns: 1; }
    .sg-page .sg-reviews__panel { padding: 40px 22px; }
    .sg-page .sg-faq__item summary { padding: 18px 15px; gap: 9px; }
    .sg-page .sg-faq__answer { padding: 0 18px 21px 37px; }
}
