/* ============================================================
   SECCIONES
   ============================================================ */

/* ---- HERO ---- */
#inicio {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(34,211,238,0.14) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 85% 100%, rgba(0,76,94,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero__inner {
    display: block;
    max-width: 860px;
    margin-inline: auto;
    text-align: center;
}

.hero__visual { display: none; }

.hero__content {
    max-width: none;
}

.hero__title {
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-6);
    color: var(--color-text);
}

.hero__title em {
    font-style: normal;
    color: var(--color-accent);
}

.hero__subtitle {
    font-size: var(--text-md);
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: var(--space-10);
    max-width: 560px;
    margin-inline: auto;
}

.hero__ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ---- PROSE SECTION (problema, prueba social) ---- */
.prose-section {
    max-width: 700px;
    margin-inline: auto;
}

.prose-section__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-10);
}

.prose-section__body p {
    font-size: var(--text-md);
    line-height: 1.8;
    margin-bottom: var(--space-5);
}

.prose-section__body p:last-child {
    margin-bottom: 0;
}

.prose-section__highlight {
    font-size: var(--text-lg) !important;
    color: var(--color-text) !important;
    font-weight: 600;
    padding-left: var(--space-5);
    border-left: 3px solid var(--color-accent);
}

/* ---- SOBRE MÍ ---- */
#sobre-mi {
    background: #f7f8fa;
}

.about__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    align-items: start;
}

@media (min-width: 1024px) {
    .about__inner {
        grid-template-columns: 1fr 1.5fr;
        gap: var(--space-16);
    }
}

.about__inner--no-photo {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin-inline: auto;
}

.about__title {
    font-size: var(--text-2xl);
    line-height: 1.3;
    margin-bottom: var(--space-8);
}

.about__bio p {
    font-size: var(--text-md);
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-5);
}

.about__bio p:last-of-type {
    margin-bottom: var(--space-8);
}

/* Foto de Elisabeth: mismas esquinas que las tarjetas de casos de éxito */
.about__photo {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
}

/* ---- MÉTODO ---- */
#metodo {
    background: #ffffff;
}

.metodo__header {
    margin-bottom: var(--space-16);
    max-width: 720px;
    margin-inline: auto;
}

.metodo__title {
    font-size: var(--text-3xl);
    max-width: 560px;
}

.metodo__pasos {
    max-width: 720px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--color-border);
}

.metodo__paso {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--space-8);
    padding: var(--space-10) 0;
    border-bottom: 1px solid var(--color-border);
    align-items: start;
}

.metodo__num {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    padding-top: 4px;
}

.metodo__paso-content h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.metodo__paso-content p {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.75;
    max-width: 600px;
}

/* ---- PRUEBA SOCIAL ---- */
#prueba-social {
    background: #f7f8fa;
}

.testimonios__grid {
    margin-top: var(--space-10);
}

.testimonio {
    max-width: 640px;
}

.testimonio blockquote p {
    font-size: var(--text-lg);
    color: var(--color-text);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: var(--space-4);
}

.testimonio figcaption {
    font-size: var(--text-sm);
    color: var(--color-text-dim);
    font-weight: 500;
}

/* ---- OFERTA ---- */
#oferta {
    background: var(--color-text);
}

#oferta h2,
#oferta h3 { color: #ffffff; }

#oferta p { color: #ffffff; }

.oferta__inner {
    max-width: 800px;
    margin: 0 auto;
}

.oferta__header {
    margin-bottom: var(--space-12);
}

.oferta__header h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
}

.oferta__header p { font-size: var(--text-md); }

.oferta__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    align-items: start;
}

@media (min-width: 1024px) {
    .oferta__body {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
    }
}

.oferta__includes p {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-6);
    color: #ffffff !important;
}

.oferta__item {
    padding: var(--space-4) 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: var(--text-base);
    color: #ffffff !important;
    line-height: 1.5;
}

.oferta__item:first-of-type {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.oferta__precio-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.oferta__precio {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
}

.oferta__precio-valor {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.04em;
}

.oferta__precio-periodo {
    font-size: var(--text-lg);
    color: #ffffff;
}

.oferta__nota-inversion {
    margin-top: var(--space-3);
    font-size: var(--text-sm);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.oferta__garantia p {
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

/* ---- OBJECIONES ---- */
#objeciones {
    background: #ffffff;
}

.objeciones__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-top: var(--space-10);
}

@media (min-width: 1024px) {
    .objeciones__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.objecion h3 {
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--color-text);
}

.objecion p {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.75;
}

/* ---- CONTACTO ---- */
#contacto {
    background: #f7f8fa;
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    align-items: start;
}

@media (min-width: 1024px) {
    .contact__inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-16);
    }
    .contact__info {
        position: sticky;
        top: 100px;
    }
}

/* En móvil la tarjeta del formulario respira menos */
@media (max-width: 640px) {
    .contact__form-wrap { padding: var(--space-6) var(--space-5); }
}

.contact__title {
    font-size: var(--text-2xl);
    line-height: 1.3;
    margin-bottom: var(--space-6);
}

.contact__desc {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: var(--space-4);
}

.contact__newsletter {
    font-size: var(--text-sm);
    color: var(--color-text-dim);
    line-height: 1.7;
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-2);
}

.contact__form-wrap {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

/* ---- FOOTER ---- */
footer {
    padding: var(--space-12) 0;
    border-top: 1px solid var(--color-border);
    background: #ffffff;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
}

.footer__tagline {
    font-size: var(--text-sm);
    color: var(--color-text-dim);
}

.footer__links {
    display: flex;
    gap: var(--space-6);
    flex-wrap: wrap;
    justify-content: center;
}

.footer__links a {
    font-size: var(--text-sm);
    color: var(--color-text-dim);
    transition: color var(--transition);
}

.footer__links a:hover { color: var(--color-text-muted); }

.footer__copy {
    font-size: var(--text-xs);
    color: var(--color-text-dim);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    section { padding: var(--space-16) 0; }

    .metodo__paso {
        grid-template-columns: 60px 1fr;
        gap: var(--space-5);
    }

    .metodo__num { font-size: var(--text-3xl); }
}

/* ============================================================
   PÁGINAS LEGALES
   ============================================================ */
.legal-page {
    padding: calc(var(--space-16) + 60px) 0 var(--space-16);
    max-width: 720px;
    margin-inline: auto;
}

.legal-page h1 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-2);
}

.legal-updated {
    color: var(--color-text-dim);
    font-size: var(--text-sm);
    margin-bottom: var(--space-8);
}

.legal-page h2 {
    font-size: var(--text-lg);
    margin: var(--space-8) 0 var(--space-3);
}

.legal-page p {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

.legal-page a { color: var(--color-accent); }

/* ============================================================
   CASOS DE ÉXITO
   ============================================================ */
#casos {
    background: #f7f8fa;
}

.cases__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-top: var(--space-12);
}

@media (min-width: 768px) {
    .cases__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.case-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.case-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.case-card__tag {
    display: inline-block;
    align-self: flex-start;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
    background: var(--color-accent-dark);
    border-radius: 999px;
    padding: 0.3em 0.9em;
    margin-bottom: var(--space-4);
}

.case-card__title {
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-2);
}

.case-card__location {
    font-size: var(--text-sm);
    color: var(--color-text-dim);
    margin-bottom: var(--space-5);
}

.case-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-5);
}

.case-card__stat {
    display: flex;
    flex-direction: column;
}

.case-card__stat-value {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1.1;
}

.case-card__stat-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.case-card__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    flex-grow: 1;
}

.case-card__reto {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.65;
}

.case-card__testimonio {
    margin-top: auto;
    font-size: var(--text-sm);
    font-style: italic;
    color: var(--color-text);
    line-height: 1.65;
    padding-left: var(--space-4);
    border-left: 3px solid var(--color-accent);
}

.case-card__autor {
    display: block;
    margin-top: var(--space-2);
    font-style: normal;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
}


/* ---- HERO EN MÓVIL ---- */
@media (max-width: 520px) {
    .hero__ctas .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   CAPTACIÓN — GUÍA GRATUITA (mobile first)
   ============================================================ */
#captacion {
    background: #f7f8fa;
}

.capture__inner {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
}

.capture__title {
    font-size: var(--text-2xl);
    margin: var(--space-3) 0 var(--space-4);
}

.capture__subtitle {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-8);
}

.capture__form {
    max-width: 520px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.capture__row {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

@media (min-width: 640px) {
    .capture__row { flex-direction: row; }
    .capture__row .form-input { flex: 1; }
}

.capture__form .form-checkbox { text-align: left; }

.capture__disclaimer {
    font-size: var(--text-xs);
    color: var(--color-text-dim);
}


/* Blindaje: los hijos de las rejillas nunca fuerzan un ancho mayor que la pantalla */
.contact__inner > *,
.about__inner > *,
.oferta__body > *,
.objeciones__grid > *,
.cases__grid > * {
    min-width: 0;
}

/* ============================================================
   CALCULADORA DE PACIENTES / INGRESOS  (#calculadora)
   ============================================================ */
.calc__header {
    max-width: var(--max-width-narrow);
    margin: 0 auto var(--space-12);
    text-align: center;
}
.calc__title {
    font-size: var(--text-3xl);
    line-height: 1.15;
    margin-bottom: var(--space-4);
}
.calc__subtitle {
    font-size: var(--text-md);
    color: var(--color-text-muted);
    line-height: 1.7;
}

.calc__panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
}

/* ---- Columna de controles (clara) ---- */
.calc__controls {
    padding: clamp(1.5rem, 4vw, 2.75rem);
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}
.calc__field-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}
.calc__field-label {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.calc__field-value {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-text);
    white-space: nowrap;
}

/* ---- Slider de marca ---- */
.calc__range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: var(--color-bg-soft);
    outline: none;
    cursor: pointer;
}
.calc__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid var(--color-surface);
    box-shadow: var(--shadow-glow);
    transition: transform var(--transition);
}
.calc__range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.calc__range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid var(--color-surface);
    box-shadow: var(--shadow-glow);
}
.calc__range:focus-visible {
    box-shadow: 0 0 0 3px var(--color-border-brand);
}

/* ---- Pacientes estimados ---- */
.calc__patients {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    background: var(--color-bg-soft);
    border-radius: var(--radius);
    margin-top: auto;
}
.calc__patients-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
}
.calc__patients-num {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
}
.calc__note {
    font-size: var(--text-xs);
    color: var(--color-text-dim);
    line-height: 1.6;
}

/* ---- Columna de resultados (navy) ---- */
.calc__results {
    padding: clamp(1.5rem, 4vw, 2.75rem);
    background:
        radial-gradient(120% 100% at 100% 0%, rgba(34,211,238,0.18), transparent 55%),
        var(--color-text); /* navy */
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}
.calc__result { display: flex; flex-direction: column; gap: var(--space-2); }
.calc__result-label {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}
.calc__result-num {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: 1;
    color: var(--color-white);
}
.calc__result-num--accent { color: var(--color-border-brand); }
.calc__result-sub {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}
.calc__result--secondary {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255,255,255,0.14);
}
.calc__cta { margin-top: auto; width: 100%; justify-content: center; }

/* ---- Responsive ---- */
@media (max-width: 760px) {
    .calc__panel { grid-template-columns: 1fr; }
    .calc__patients { margin-top: var(--space-4); }
}
@media (prefers-reduced-motion: reduce) {
    .calc__range::-webkit-slider-thumb { transition: none; }
}

.calc__disclaimer {
    max-width: var(--max-width-narrow);
    margin: var(--space-6) auto 0;
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-text-dim);
    line-height: 1.6;
}
