/* ============================================================
   SML - Secciones de contenido (home y paginas internas) Etapa 3
   ============================================================ */

/* La home (3420) usa ancho completo y sin titulo visible */
.page-id-3420 .entry-header { display: none; }
.page-id-3420 .site-main > .entry-content,
.page-id-3420 .inside-article { padding: 0; }
.page-id-3420 .entry-content > * { margin-top: 0; margin-bottom: 0; }

/* Wrapper interno centrado */
.sml-wrap { max-width: var(--sml-contenedor); margin-inline: auto; padding-inline: 20px; }

/* Paginas internas: contenido a ancho completo, hero propio, sin titulo duplicado */
.page .entry-header { display: none; }
.page .site-main > .entry-content { max-width: 100%; }
.page .inside-article { padding: 0; border: 0; }
.page .site-main { padding: 0; }
.page.no-sidebar .content-area { width: 100%; }

/* Hero interno */
.sml-phero { background: linear-gradient(135deg, #0F5E63 0%, #12808A 100%); color: #fff; padding-block: clamp(2.2rem, 5vw, 3.4rem); }
.sml-phero h1 { color: #fff; margin: 0; }
.sml-phero__lead { color: #d7ebec; margin: 0.6rem 0 0; max-width: 60ch; font-size: 1.08rem; }
.sml-crumbs { font-size: 0.85rem; color: #bfe0e1; margin-bottom: 0.7rem; }
.sml-crumbs a { color: #d7ebec; text-decoration: none; }
.sml-crumbs a:hover { color: #fff; text-decoration: underline; }
.sml-crumb-sep { opacity: 0.6; margin: 0 0.1rem; }

/* Prosa de paginas internas */
.sml-prose { max-width: 820px; margin-inline: auto; }
.sml-prose p, .sml-prose li { color: var(--sml-texto); }
.sml-prose h2 { margin-top: 2.2rem; }
.sml-prose h3 { margin-top: 1.6rem; color: var(--sml-primario); }
.sml-prose ul { padding-left: 0; list-style: none; display: grid; gap: 0.7rem; margin: 1.2rem 0; }
.sml-prose ul li { display: flex; gap: 0.6rem; align-items: flex-start; }
.sml-prose ul li::before { content: ""; width: 20px; height: 20px; flex: none; margin-top: 2px; background: var(--sml-teal); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='m20 6-11 11-5-5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='m20 6-11 11-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
.sml-note { background: var(--sml-fondo-alt); border-left: 4px solid var(--sml-teal); border-radius: 8px; padding: 1.1rem 1.3rem; margin: 1.6rem 0; color: var(--sml-texto-suave); }
.sml-pending { background: #fff7e8; border: 1px dashed var(--sml-alerta); border-radius: 8px; padding: 0.8rem 1.1rem; margin: 1.2rem 0; color: #8a6418; font-size: 0.95rem; }

/* Linea de tiempo (examenes) */
.sml-timeline { display: grid; gap: 1rem; margin: 1.5rem 0; }
.sml-timeline__item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; background: #fff; border: 1px solid var(--sml-borde); border-radius: var(--sml-radio); padding: 1.3rem 1.4rem; }
.sml-timeline__n { width: 38px; height: 38px; border-radius: 50%; background: var(--sml-primario); color: #fff; font-family: "Manrope",sans-serif; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sml-timeline__item h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.sml-timeline__item p { margin: 0; color: var(--sml-texto-suave); font-size: 0.97rem; }

/* Formulario de contacto */
.sml-contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: start; }
.sml-form-card { background: #fff; border: 1px solid var(--sml-borde); border-radius: 14px; padding: 1.8rem; box-shadow: var(--sml-sombra); }
.sml-contact-info { display: grid; gap: 1.1rem; }
.sml-contact-info .sml-ci { display: flex; gap: 0.8rem; align-items: flex-start; }
.sml-contact-info .sml-ci svg { width: 22px; height: 22px; color: var(--sml-teal); flex: none; margin-top: 2px; }
.sml-contact-info a { color: var(--sml-primario); text-decoration: none; font-weight: 600; }
.sml-contact-btns { display: grid; gap: 0.7rem; margin-top: 0.5rem; }
.sml-contact-btns a { justify-content: center; }
.wpcf7-form p { margin-bottom: 0.9rem; }
.wpcf7-form label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--sml-primario); margin-bottom: 0.3rem; }
.wpcf7-form input:not([type=submit]):not([type=checkbox]), .wpcf7-form select, .wpcf7-form textarea { width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--sml-borde); border-radius: 8px; font-family: inherit; font-size: 1rem; background: #fff; }
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus { outline: 2px solid var(--sml-teal); border-color: var(--sml-teal); }
.wpcf7-form .sml-acepto { font-weight: 400; font-size: 0.88rem; color: var(--sml-texto-suave); display: flex; gap: 0.5rem; align-items: flex-start; }
.wpcf7-form .wpcf7-submit { width: 100%; margin-top: 0.5rem; justify-content: center; cursor: pointer; }
@media (max-width: 800px) { .sml-contact-grid { grid-template-columns: 1fr; } }

/* Seccion generica full-bleed */
.sml-sec { padding-block: clamp(3rem, 6vw, 5.5rem); }
.sml-sec--alt { background: var(--sml-fondo-alt); }
.sml-sec--primary { background: var(--sml-primario); color: #e8f1f2; }
.sml-sec--primary h2, .sml-sec--primary h3 { color: #fff; }

.sml-eyebrow { font-family: "Manrope",sans-serif; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; color: var(--sml-teal); margin-bottom: 0.6rem; }
.sml-sec__head { max-width: 760px; margin-inline: auto; text-align: center; margin-bottom: 2.5rem; }
.sml-sec__head p { color: var(--sml-texto-suave); font-size: 1.05rem; }

.sml-btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.sml-btn-row--center { justify-content: center; }

/* ---------- HERO ---------- */
.sml-hero { position: relative; background: linear-gradient(135deg, #0F5E63 0%, #12808A 55%, #178F8A 100%); color: #fff; overflow: hidden; }
.sml-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 85% 20%, rgba(116,193,161,0.25), transparent 45%); pointer-events: none; }
.sml-hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); position: relative; z-index: 1; }
.sml-hero h1 { color: #fff; max-width: 15ch; }
.sml-hero__lead { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); color: #d7ebec; margin: 1.2rem 0 1.8rem; max-width: 40ch; }
.sml-hero a.sml-btn-wa { background: #fff; color: var(--sml-primario); border-color: #fff; }
.sml-hero a.sml-btn-wa:hover { background: #eafaf6; color: var(--sml-primario); }
.sml-hero__btns { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.sml-hero__micro { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.18); }
.sml-hero__micro div { display: flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: 0.95rem; }
.sml-hero__micro svg { width: 22px; height: 22px; color: var(--sml-salvia); flex: none; }
.sml-hero__visual { display: flex; justify-content: center; }
.sml-hero__card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 18px; padding: 2.2rem; width: 100%; }
.sml-hero__card .sml-cross { width: 84px; height: 84px; color: var(--sml-salvia); margin-bottom: 1rem; }
.sml-hero__card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.sml-hero__card li { display: flex; gap: 0.7rem; align-items: flex-start; color: #eaf6f7; }
.sml-hero__card li svg { width: 22px; height: 22px; color: var(--sml-salvia); flex: none; margin-top: 2px; }

/* ---------- Franja legal ---------- */
.sml-legal { text-align: center; }
.sml-legal p { max-width: 70ch; margin-inline: auto; color: var(--sml-texto-suave); font-size: 1.08rem; }
.sml-legal strong { color: var(--sml-texto); }

/* ---------- Tarjetas de servicios / grillas ---------- */
.sml-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.sml-group-label { font-family: "Manrope",sans-serif; font-weight: 700; color: var(--sml-primario); font-size: 1.15rem; margin: 2.4rem 0 1.2rem; display: flex; align-items: center; gap: 0.6rem; }
.sml-group-label:first-of-type { margin-top: 0; }
.sml-group-label > svg { width: 24px; height: 24px; flex: none; color: var(--sml-teal); }
.sml-card { background: #fff; border: 1px solid var(--sml-borde); border-radius: var(--sml-radio); padding: 1.6rem; box-shadow: var(--sml-sombra); display: flex; flex-direction: column; gap: 0.6rem; transition: transform .18s ease, box-shadow .18s ease; }
.sml-card:hover { transform: translateY(-3px); box-shadow: var(--sml-sombra-fuerte); }
.sml-card__ico { width: 46px; height: 46px; border-radius: 10px; background: #e6f4f1; color: var(--sml-primario); display: flex; align-items: center; justify-content: center; }
.sml-card__ico svg { width: 24px; height: 24px; }
.sml-card h3 { font-size: 1.15rem; margin: 0.3rem 0 0; }
.sml-card p { color: var(--sml-texto-suave); font-size: 0.98rem; margin: 0; flex: 1; }
.sml-card__link { font-weight: 600; color: var(--sml-primario); text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.4rem; }
.sml-card__link:hover { gap: 0.6rem; color: var(--sml-teal); }
.sml-card__link svg { width: 18px; height: 18px; flex: none; }

/* Boton blanco para bandas de color (hero, 24/7, CTA final) */
.wp-block-button__link.sml-btn-wa,
a.sml-btn-wa { background: #fff; color: var(--sml-primario); border-color: #fff; }
.wp-block-button__link.sml-btn-wa:hover,
a.sml-btn-wa:hover { background: #eafaf6; color: var(--sml-primario); border-color: #eafaf6; }

/* ---------- Banda 24/7 ---------- */
.sml-247 { text-align: center; }
.sml-247 .sml-alerta-chip { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(232,163,61,0.18); color: var(--sml-alerta); font-weight: 700; padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1rem; }
.sml-247 h2 { max-width: 24ch; margin-inline: auto; }
.sml-247 p { color: #cfe6e7; max-width: 60ch; margin: 1rem auto 1.8rem; }

/* ---------- Por que elegir (5 puntos) ---------- */
.sml-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.sml-why__item { background: #fff; border: 1px solid var(--sml-borde); border-radius: var(--sml-radio); padding: 1.5rem; }
.sml-why__item .sml-card__ico { margin-bottom: 0.8rem; }
.sml-why__item h3 { font-size: 1.08rem; }
.sml-why__item p { color: var(--sml-texto-suave); font-size: 0.96rem; margin: 0.3rem 0 0; }

/* ---------- Como trabajamos (4 pasos) ---------- */
.sml-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.sml-step { position: relative; padding: 1.6rem 1.3rem; background: var(--sml-fondo-alt); border-radius: var(--sml-radio); }
.sml-step__num { width: 40px; height: 40px; border-radius: 50%; background: var(--sml-primario); color: #fff; font-family: "Manrope",sans-serif; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 0.8rem; }
.sml-step h3 { font-size: 1.05rem; margin: 0 0 0.3rem; }
.sml-step p { color: var(--sml-texto-suave); font-size: 0.95rem; margin: 0; }

/* ---------- Equipo ---------- */
.sml-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.sml-team__card { background: #fff; border: 1px solid var(--sml-borde); border-radius: var(--sml-radio); overflow: hidden; box-shadow: var(--sml-sombra); }
.sml-team__ph { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e6f4f1, #cfe6e7); display: flex; align-items: center; justify-content: center; color: var(--sml-primario); }
.sml-team__ph svg { width: 54px; height: 54px; opacity: 0.6; }
.sml-team__body { padding: 1.3rem 1.4rem 1.6rem; }
.sml-team__body h3 { font-size: 1.15rem; margin: 0; }
.sml-team__role { color: var(--sml-teal); font-weight: 600; font-size: 0.92rem; margin: 0.25rem 0 0.5rem; }
.sml-team__mat { color: var(--sml-texto-suave); font-size: 0.88rem; margin: 0; }

/* ---------- Modalidades (2 planes) ---------- */
.sml-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; max-width: 900px; margin-inline: auto; }
.sml-plan { border: 1px solid var(--sml-borde); border-radius: 14px; padding: 2rem; background: #fff; display: flex; flex-direction: column; }
.sml-plan--featured { border-color: var(--sml-primario); box-shadow: var(--sml-sombra-fuerte); }
.sml-plan h3 { font-size: 1.3rem; margin: 0 0 0.3rem; }
.sml-plan__tag { font-size: 0.85rem; color: var(--sml-texto-suave); margin-bottom: 1rem; }
.sml-plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.7rem; flex: 1; }
.sml-plan li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.97rem; }
.sml-plan li svg { width: 20px; height: 20px; color: var(--sml-teal); flex: none; margin-top: 2px; }

/* ---------- FAQ ---------- */
.sml-faq { max-width: 820px; margin-inline: auto; display: grid; gap: 0.8rem; }
.sml-faq details { border: 1px solid var(--sml-borde); border-radius: var(--sml-radio); background: #fff; overflow: hidden; }
.sml-faq summary { cursor: pointer; padding: 1.1rem 1.3rem; font-family: "Manrope",sans-serif; font-weight: 600; color: var(--sml-primario); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.sml-faq summary::-webkit-details-marker { display: none; }
.sml-faq summary::after { content: "+"; font-size: 1.4rem; color: var(--sml-teal); flex: none; transition: transform .2s ease; }
.sml-faq details[open] summary::after { content: "\2212"; }
.sml-faq details[open] summary { border-bottom: 1px solid var(--sml-borde); }
.sml-faq__body { padding: 1.1rem 1.3rem; color: var(--sml-texto-suave); }
.sml-faq__body p { margin: 0; }

/* ---------- CTA final ---------- */
.sml-ctafinal { text-align: center; }
.sml-ctafinal h2 { max-width: 24ch; margin: 0 auto 1rem; }
.sml-ctafinal p { color: #cfe6e7; max-width: 56ch; margin: 0 auto 1.8rem; }

/* ---------- Footer SML ---------- */
/* El footer se inyecta en la barra de copyright de GeneratePress */
.site-info .inside-site-info { display: block; max-width: var(--sml-contenedor); width: 100%; padding: clamp(2.5rem, 5vw, 3.5rem) 20px 1.4rem; }
.site-info .copyright-bar { width: 100%; padding: 0; }
.site-info { color: #bcd5d7; }
.sml-footer { background: var(--sml-primario); color: #bcd5d7; padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem; }
.sml-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; }
.sml-footer img.sml-footer__logo { max-width: 190px; height: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: 0.95; }
.sml-footer__tag { font-size: 0.95rem; max-width: 34ch; }
.sml-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 1rem; }
.sml-footer a { color: #d5e6e7; text-decoration: none; }
.sml-footer a:hover { color: #fff; }
.sml-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; font-size: 0.95rem; }
.sml-footer__contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.sml-footer__contact svg { width: 18px; height: 18px; color: var(--sml-salvia); flex: none; margin-top: 2px; }
.sml-footer__bottom { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 2.5rem; padding-top: 1.3rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; font-size: 0.85rem; color: #9fc0c2; }
.sml-footer__bottom a { color: #cfe6e7; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.sml-hero__grid { grid-template-columns: 1fr; gap: 2rem; }
	.sml-hero__visual { order: -1; }
	.sml-cards, .sml-why, .sml-steps, .sml-team { grid-template-columns: 1fr 1fr; }
	.sml-plans { grid-template-columns: 1fr; }
	.sml-footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
}
@media (max-width: 600px) {
	.sml-cards, .sml-why, .sml-steps, .sml-team { grid-template-columns: 1fr; }
	.sml-hero__micro { gap: 1rem; }
}
