/* ============================================================
   Rehabilitación Integral — estilos propios de la página nueva.
   Todas las clases van prefijadas con .rehab-* para no pisar
   estilos existentes del sitio (estilos.css, nav-responsive.css,
   themes.css, etc.). Desktop first, sin variables globales.
   ============================================================ */


/* ---- 1. Sub-nav interno (Frame 3) ------------------------- */

/* Franja con imagen de fondo, 178px de alto, el <nav> centrado en altura. */
.rehab-subnav-section {
	width: 100%;
	height: 178px;
	background: url('../img/rehab/sub-nav/sub-nav-fondo.webp') center center / cover no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Contenedor blanco pill con los 3 ítems adentro.
   Frame 3 en Figma: 594.5 x 65.5. */
.rehab-subnav {
	width: auto;
	padding: 16px 24px;
	background: rgb(255, 255, 255);
	border-radius: 999px;
	box-sizing: border-box;
	opacity: 0.7;
}

.rehab-subnav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 50px;
}

.rehab-subnav-item {
	margin: 0;
	padding: 0;
	display: inline-flex;
}

/* Pill de cada ítem — Verde 50 de fondo, borde Gris 50. */
.rehab-subnav-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 33px;
	padding: 8px 16px;
	background: rgba(122, 219, 212, 0.5);   /* Verde 50 (#7adbd480) */
	border: 1px solid rgba(143, 143, 143, 0.5); /* Gris 50 (#8f8f8f80) */
	border-radius: 999px;
	color: #3f3d3d;                          /* Gris oscuro 100 */
	font-family: 'Poppins', 'Raleway', sans-serif;
	font-size: 16px;
	font-weight: 600;                        /* Body M - 16px Semibold */
	line-height: 1.35;
	text-decoration: none;
	box-sizing: border-box;
	white-space: nowrap;
}

.rehab-subnav-section nav a {
	margin-right: 0px;
}

.rehab-subnav-icon {
	width: 16px;
	height: 17px;
	display: block;
	flex-shrink: 0;
}

.rehab-subnav-label {
	display: inline-block;
}


/* ---- 2. Hero — "Te acompañamos…" (Frame 10) --------------- */

.rehab-hero {
	background: #ffffff;
	overflow-x: clip;        /* recorta laterales sin bloquear el desborde vertical del rec34 */
	padding-top: 60px;       /* gap desde el sub-nav hasta el bloque de texto (y=398-343=55) */
	padding-bottom: 105px;
	position: relative;
	z-index: 1;
}

/* Contenedor de las dos columnas. Ancho útil ~1280px, margen ~80px c/lado. */
.rehab-hero-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 80px;
	position: relative;      /* contexto para el collage absoluto */
	min-height: 530px;       /* altura de la columna de texto (529px) */
}

/* --- Columna izquierda: texto --- */
.rehab-hero-texto {
	float: left;
	width: 554px;
}

.rehab-hero-texto h2 {
	text-transform: none;
}

.rehab-hero-titulo {
	font-family: 'Poppins', 'Raleway', sans-serif !important;
	font-size: 40px !important;
	font-weight: 700 !important;     /* Headline 1 */
	line-height: 1.0 !important;
	color: #3f3d3d;
	margin: 0;
	padding: 0;
	width: 425px;
}

.rehab-titulo-acento {
	color: #7adbd4;                  /* Verde 100 */
}

.rehab-hero-cuerpo {
	margin-top: 32px;        /* y=152 del frame, aproximado al gap visual */
}

.rehab-hero-parrafo {
	font-family: 'Poppins', 'Raleway', sans-serif !important;
	font-size: 18px !important;
	font-weight: 400 !important;     /* Body L - 18px Reg */
	line-height: 1.35 !important;
	color: #8f8f8f !important;       /* Gris 100 */
	margin: 0;
	padding: 0;
	width: 554px;
}

.rehab-hero-parrafo-2 {
	margin: 25px 0px;
}

.rehab-hero-parrafo-3 {
	font-size: 16px !important;
}

.rehab-parrafo-acento {
	font-weight: 600 !important;
}

/* Fila de CTAs */
.rehab-hero-ctas {
	margin-top: 32px;
	display: flex;
	align-items: center;
	gap: 16px;
}

/* CTA primario: fondo verde, texto blanco, pill */
.rehab-cta-primario {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 43px;
	padding: 12px 16px;
	background: #7adbd4;     /* Verde 100 */
	border-radius: 999px;
	font-family: 'Poppins', 'Raleway', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: #ffffff;
	text-decoration: none;
	white-space: nowrap;
	box-sizing: border-box;
}

/* CTA secundario: fondo blanco, borde gris, pill */
.rehab-cta-secundario {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 43px;
	padding: 12px 16px;
	background: rgba(216, 232, 238, 0.5);        /* Celeste 50 (#d8e8ee80) */
	border-radius: 999px;
	font-family: 'Poppins', 'Raleway', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	color: #8f8f8f;                              /* Gris 100 */
	text-decoration: none;
	white-space: nowrap;
	box-sizing: border-box;
}

.rehab-cta-icono {
	display: block;
	flex-shrink: 0;
	width: 16px;
	height: auto;
}

/* --- Columna derecha: collage --- */
/* Posicionado absoluto dentro de .rehab-hero-inner,
   empieza donde termina la columna de texto (554px + 80px padding = 634px desde el borde del inner).
   overflow:visible para que los decorativos "escapen" hacia la derecha. */
.rehab-hero-collage {
	position: absolute;
	top: -56px;              /* sube hasta el borde superior del hero (incluye padding-top) */
	left: 634px;             /* 80px padding + 554px columna texto */
	width: 806px;            /* 1440 - 634 = 806 — incluye la zona que sale del viewport */
	height: 600px;
	overflow: visible;
}

.rehab-hero-collage img {
	margin: 0;
}

/* Foto grande circular — encima de los decorativos rec47 */
.rehab-hero-foto--grande {
	position: absolute;
	top: 7px;
	left: 77px;
	width: 542px;
	height: 542px;
	border-radius: 50%;
	object-fit: cover;
	z-index: 2;
}

/* Foto chica circular */
.rehab-hero-foto--chica {
	position: absolute;
	top: 326px;
	left: 437px;
	width: 326px;
	height: 326px;
	border-radius: 50%;
	object-fit: cover;
	z-index: 3;
}

.rehab-foto-con-borde {
	border: 8px solid #7adbd4;
}

/* Decorativos */
.rehab-hero-deco {
	position: absolute;
	display: block;
}

.rehab-hero-deco--rec47a {
	top: 338px;
	left: 252px;
	width: 348px;
	height: 349px;
	z-index: 1;
}

.rehab-hero-deco--rec47b {
	top: 446px;
	left: 168px;
	width: 145px;
	height: 145px;
	z-index: 1;
}

.rehab-hero-deco--rec24 {
	top: 85px;
	left: 696px;
	width: 193px;
	height: 193px;
}

.rehab-hero-deco--rec60 {
	top: 20px;
	left: 703px;
	width: 188px;
	height: 89px;
}

/* Recurso 34 — mancha orgánica inferior derecha del collage hero.
   Se sale hacia abajo sobre la sección siguiente. z-index 1: debajo de las fotos. */
.rehab-hero-deco--rec34-inf {
	bottom: -280px;
    right: -140px;
    width: 319px;
    height: 319px;
    z-index: 1;
}

.rehab-hero-inner::after {
	content: '';
	display: table;
	clear: both;
}


/* ---- 3. Sección "Tu rehabilitación paso a paso" (Frame 39) ---- */

.rehab-paso-a-paso {
	background: #ffffff;
	padding-top: 104px;
	padding-bottom: 0;
	overflow: hidden;
}

.rehab-paso-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 80px;
	position: relative;
}

/* Encabezado de la sección */
.rehab-paso-encabezado {
	text-align: center;
	margin-bottom: 104px;
	position: relative;
}

.rehab-paso-kicker {
	font-family: 'Poppins', 'Raleway', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 16px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #7adbd4;            /* Verde 100 */
	margin: 0;
	padding: 0;
}

.rehab-paso-titulo {
	font-family: 'Poppins', 'Raleway', sans-serif;
	font-size: 32px;
	font-weight: 700;          /* Headline 2 */
	line-height: 1.0;
	color: #3f3d3d;
	margin: 25px 0px;
	padding: 0;
	text-transform: none;
}

.rehab-paso-bajada {
	font-family: 'Poppins', 'Raleway', sans-serif;
	font-size: 18px;
	font-weight: 400;          /* Body M - 16px Reg */
	line-height: 1.35;
	color: #8f8f8f;
	max-width: 749px;
	margin: 0 auto;
	padding: 0;
}

/* Bloques de etapa */
.rehab-etapa {
	margin-bottom: 104px;
	position: relative;
}

/* Etapa 2 tiene fondo decorativo "image 4" alineado a la derecha */
.rehab-etapa2-collage {
	position: relative;
	overflow: visible;
}

.rehab-etapa2-collage-deco {
	position: absolute;
	top: -72px;
    right: -298px;
    width: 630px;
    height: auto;
	pointer-events: none;
	z-index: 0;
	margin: 0;
	max-width: none;
}

.rehab-etapa:last-child {
	margin-bottom: 0;
}

/* Fila superior: columna texto (602px) + columna der (598px) */
.rehab-etapa-fila-sup {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	gap: 90px;
	align-items: flex-start;
	margin-bottom: 88px;
}

.rehab-etapa-col-texto {
	width: 602px;
	-ms-flex-negative: 0;
	flex-shrink: 0;
}

/* Header de etapa: pill número + bloque de títulos */
.rehab-etapa-header {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 24px;
}

.rehab-etapa-numero-pill {
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background: rgb(122, 219, 212);
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	align-items: center;
	justify-content: center;
	-ms-flex-negative: 0;
	flex-shrink: 0;
}

.rehab-etapa-numero {
	font-family: 'Poppins', 'Raleway', sans-serif;
	font-size: 18px;
	font-weight: 700;          /* Headline 3 */
	line-height: 1.0;
	color: #ffffff;
}

.rehab-etapa-header-textos {
	padding-top: 6px;
}

.rehab-etapa-nombre {
	font-family: 'Poppins', 'Raleway', sans-serif;
	font-size: 24px;
	font-weight: 700;          /* Headline 3 */
	line-height: 1.0;
	color: #7adbd4;
	margin: 0 0 8px 0;
	padding: 0;
	text-transform: none;
	text-align: left;
	background-color: #ffffff;;
}

.rehab-etapa-subtitulo {
	font-family: 'Poppins', 'Raleway', sans-serif;
	font-size: 16px;
	font-weight: 400;          /* Body M - 16px Reg */
	line-height: 1.35;
	color: #8f8f8f;
	margin: 0;
	padding: 0;
}

.rehab-etapa-parrafo {
	font-family: 'Poppins', 'Raleway', sans-serif;
	font-size: 18px;
	font-weight: 400;          /* Body L - 18px Reg */
	line-height: 1.35;
	color: #8f8f8f;
	margin: 0;
	padding: 0;
}

.rehab-etapa-parrafo-2 {
    margin-top: 25px;
}

/* Columna derecha — Etapa 1: ícono user-doctor + párrafo */
.rehab-etapa-col-der {
	-webkit-box-flex: 1;
	-ms-flex: 1;
	flex: 1;
	align-self: flex-start;
}

.rehab-etapa-der-inner {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	align-items: flex-start;
	gap: 24px;
}

.rehab-etapa-user-doctor-img {
	max-width: 125px;
	height: auto;
	display: block;
	margin: 0px;
}

.rehab-etapa-der-parrafo {
	font-family: 'Poppins', 'Raleway', sans-serif;
	font-size: 18px;
	font-weight: 400;          /* Body L - 18px Reg */
	line-height: 1.35;
	color: #8f8f8f;
	margin: 0;
	padding: 0;
}

/* Columna derecha — Etapa 2: foto con borde */
.rehab-etapa-col-der--2 {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	position: relative;
	overflow: visible;
}

.rehab-etapa-foto {
	width: 360px;
    height: auto;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0;
	position: relative;
	z-index: 1;
}

/* Decorativo recurso_60_2 — barra vertical celeste a la izquierda del encabezado */
.rehab-deco--rec60-enc {
	position: absolute;
	left: -110px;
	top: 0;
	width: 73px;
	height: 154px;
	pointer-events: none;
	margin: 0;
}

/* Grilla de 5 tarjetas */
.rehab-grilla {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	gap: 34px;
}

/* Tarjeta base */
.rehab-card {
	-webkit-box-flex: 1;
	-ms-flex: 1;
	flex: 1;
	min-width: 0;
	padding: 23px;
	border-radius: 23px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	gap: 16px;
	cursor: default;
	border: 1px solid transparent;
	-webkit-transition: box-shadow 0.2s ease, border-color 0.2s ease;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
	min-height: 162px;
	box-sizing: border-box;
}

.rehab-card--celeste {
	background: rgba(216, 232, 238, 0.2);
}

.rehab-card:hover {
	box-shadow: 0 4px 16px rgba(122, 219, 212, 0.3);
	border-color: #7adbd4;
}

/* Wrapper que apila ambos íconos en el mismo espacio */
.rehab-card-icon-wrap {
	position: relative;
	width: 40px;
	height: 40px;
	-ms-flex-negative: 0;
	flex-shrink: 0;
}

.rehab-card-icon {
	width: 40px;
	height: 40px;
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	-webkit-transition: opacity 0.25s ease;
	transition: opacity 0.25s ease;
}

.rehab-card-icon-inactive { opacity: 1; }
.rehab-card-icon-active   { opacity: 0; }

.rehab-card:hover .rehab-card-icon-inactive { opacity: 0; }
.rehab-card:hover .rehab-card-icon-active   { opacity: 1; }

.rehab-card-textos {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	gap: 8px;
}

.rehab-card-titulo {
	font-family: 'Poppins', 'Raleway', sans-serif;
	font-size: 16px;
	font-weight: 600;          /* Body M - 16px Semibold */
	line-height: 1.35;
	color: #8f8f8f;
	margin: 0;
	padding: 0;
}

.rehab-card-desc {
	font-family: 'Poppins', 'Raleway', sans-serif;
	font-size: 14px;
	font-weight: 400;          /* Body M - 16px Reg */
	line-height: 1.35;
	color: #8f8f8f;
	margin: 0;
	padding: 0;
}


/* ---- 4. Sección "¿Por qué elegir Croma?" (Frame 56) -------- */

/* Bloque full-bleed con fondo celeste claro.
   z-index: 1 para que el collage (rec34) sobresalga POR ENCIMA de la sección siguiente.
   overflow-x: clip recorta laterales sin bloquear el desborde vertical del rec34. */
.rehab-porque {
	padding-top: 80px;
	padding-bottom: 40px;
	position: relative;
	z-index: 1;
	overflow-x: clip;
}

/* Recurso 60 1 — mancha orgánica lateral izquierda, sale 32px fuera del borde.
   Coordenadas en el frame: x=-32, y=2788; sección arranca en y=2721 → top=67px. */
.rehab-porque-deco--rec60 {
	position: absolute;
	top: 72px;
    left: -88px;
	width: 188px;
	height: 89px;
	pointer-events: none;
	z-index: 0;
}

/* Contenedor de dos columnas: collage (567px) | contenido (638px).
   Total ~1205px + gap ~90px = ~1295px ≈ 1280px del spec. */
.rehab-porque-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 80px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	gap: 90px;
	align-items: center;
	position: relative;
}

/* --- Columna izquierda: collage --- */
.rehab-porque-collage {
	-ms-flex-negative: 0;
	flex-shrink: 0;
	width: 567px;
	height: 724px;
	position: relative;
}

/* Foto grande circular (Ellipse 9 + IMG_8858).
   x=53 y=0 w=514 h=514 → foto interna x=64 y=11 w=492 h=492 */
.rehab-porque-foto--grande {
	position: absolute;
	top: 11px;
	left: 64px;
	width: 492px;
	height: auto;
	border-radius: 50%;
	object-fit: cover;
	z-index: 2;
	margin: 0;
}

/* Foto chica circular (Ellipse 10 + IMG_0231).
   x=0 y=353.5 w=370 h=370 → foto interna x=9 y=361.5 w=352 h=353 */
.rehab-porque-foto--chica {
	position: absolute;
	top: 362px;
	left: 9px;
	width: 352px;
	height: auto;
	border-radius: 50%;
	object-fit: cover;
	z-index: 3;
	margin: 0;
}

/* Base para todos los decorativos del collage */
.rehab-porque-deco {
	position: absolute;
	display: block;
	pointer-events: none;
	margin: 0;
}

/* Ellipse 11 — círculo decorativo verde entre las dos fotos.
   x=15 y=328 w=145 h=145 */
.rehab-porque-deco--ellipse11 {
	top: 328px;
	left: 15px;
	width: 145px;
	height: 145px;
	z-index: 1;
}

/* Recurso 34 2 — mancha orgánica inferior izquierda (sale parcialmente del collage).
   x=-173 y=526 w=319 h=319 */
.rehab-porque-deco--rec34 {
	bottom: -100px;
	left: -173px;
	width: 319px;
	height: 319px;
	z-index: 1;
}

/* Recurso 47 1 — mancha orgánica superior izquierda.
   x=3 y=-31 w=215 h=215 */
.rehab-porque-deco--rec47 {
	top: -31px;
	left: 3px;
	width: 215px;
	height: 215px;
	z-index: 3;
}

/* --- Columna derecha: encabezado + lista --- */
.rehab-porque-contenido {
	-webkit-box-flex: 1;
	-ms-flex: 1;
	flex: 1;
	min-width: 0;
}

/* Encabezado — Frame 41, w=534, h=99 */
.rehab-porque-encabezado {
	margin-bottom: 32px;
}

.rehab-porque-titulo {
	font-family: 'Poppins', 'Raleway', sans-serif;
	font-size: 32px;
	font-weight: 700;          /* Headline 2 */
	line-height: 1.0;
	color: #8f8f8f;
	margin: 0 0 16px 0;
	padding: 0;
	text-transform: none;
}

.rehab-porque-bajada {
	font-family: 'Poppins', 'Raleway', sans-serif;
	font-size: 18px;
	font-weight: 400;          /* Body M - 16px Reg */
	line-height: 1.35;
	color: #8f8f8f;
	margin: 0;
	padding: 0;
	max-width: 534px;
}

/* Lista de 5 razones — Frame 53 */
.rehab-porque-lista {
	list-style: none;
	margin: 0;
	padding: 0;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	gap: 19px;
}

/* Ítem: ícono (58×58) + bloque de texto (548px) con gap 32px */
.rehab-porque-item {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	align-items: center;
	gap: 32px;
}

/* Contenedor del ícono */
.rehab-porque-icono-wrap {
	-ms-flex-negative: 0;
	flex-shrink: 0;
	width: 58px;
	height: 58px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rehab-porque-icono {
	width: 58px;
	height: 58px;
	display: block;
	margin: 0;
}

/* Bloque de texto de cada razón */
.rehab-porque-texto {
	-webkit-box-flex: 1;
	-ms-flex: 1;
	flex: 1;
	min-width: 0;
	text-align: left;
}

.rehab-porque-razon-titulo {
	font-family: 'Poppins', 'Raleway', sans-serif;
	font-size: 24px;
	font-weight: 700;          /* Body L - 18px Semibold */
	line-height: 1.35;
	color: #8f8f8f;
	margin: 0 0 4px 0;
	padding: 0;
}

.rehab-porque-razon-desc {
	font-family: 'Poppins', 'Raleway', sans-serif;
	font-size: 16px;
	line-height: 1.35;
	color: #8f8f8f;
	margin: 0;
	padding: 0;
}


/* ---- 5. Sección de cierre "Recuperar el movimiento…" (Frame 50) ---- */

/* Bloque full-bleed con fondo Celeste 20 (#d8e8ee33). */
.rehab-recuperar {
	background: rgba(216, 232, 238, 0.2);   /* Celeste 20 (#d8e8ee33) */
	padding-top: 60px;
	padding-bottom: 60px;
	text-align: center;
}

/* Contenedor centrado de 659px (Frame 50 en Figma: w=659) */
.rehab-recuperar-inner {
	max-width: 659px;
	margin: 0 auto;
	padding: 0 20px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

/* Ícono decorativo Recurso 14 — 41×49px, centrado arriba del título */
.rehab-recuperar-icono-deco {
	width: 41px;
	height: 49px;
	display: block;
	margin: 0 auto;
}

/* Título — Headline 1 (40/700), color Verde 100 según la referencia visual */
.rehab-recuperar-titulo {
	font-family: 'Poppins', 'Raleway', sans-serif;
	font-size: 40px;
	font-weight: 700;          /* Headline 1 */
	line-height: 1.0;
	color: #7adbd4;            /* Verde 100: en la referencia el título aparece en verde */
	margin: 25px 0px;
	padding: 0;
	text-transform: none;
	text-align: center;
}

/* Separador — Rectangle 61: 66×6px, centrado, en la referencia es una barra verde */
.rehab-recuperar-separador {
	display: block;
	width: 66px;
	height: 6px;
	margin: 0 auto 22px;   /* gap separador→bajada: y=198 - (y=176+6) = 16px + ajuste visual */
}

/* Bajada — Body M 16/Regular, color Gris oscuro 100 */
.rehab-recuperar-bajada {
	font-family: 'Poppins', 'Raleway', sans-serif;
	font-size: 18px;
	font-weight: 400;          /* Body M - 16px Reg */
	line-height: 1.35;
	color: #8f8f8f;             /* Gris 100 */
	margin: 0 0 48px 0;        /* gap bajada→CTAs: y=288 - (y=198+48) ≈ 42px, redondeado */
	padding: 0;
	text-align: center;
}

/* Fila de CTAs — Frame 11 en Figma: w=436.5, centrada */
.rehab-recuperar-ctas {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	align-items: center;
	gap: 16px;
}


/* ============================================================
   RESPONSIVE — desktop-first, mismos breakpoints que el sitio.
   Orden descendente. Ver docs/decisiones-responsive.md.
   ============================================================ */


/* ---- Tablet grande (≤1205 px) ----------------------------- */
@media (max-width: 1205px) {

	/* Sub-nav: se mantiene horizontal pero con padding y label reducidos */
	.rehab-subnav-list {
		gap: 24px;
	}
	.rehab-subnav-link {
		padding: 8px 12px;
		font-size: 15px;
	}

	/* Hero: se reduce el collage — solo foto principal, decorativos ocultos */
	.rehab-hero-inner {
		padding: 0 40px;
		min-height: 460px;
	}
	.rehab-hero-texto {
		width: 500px;
	}
	.rehab-hero-titulo {
		font-size: 32px !important;
		width: auto;
	}
	.rehab-hero-parrafo {
		font-size: 16px !important;
		width: auto;
	}
	/* Collage: reubicado y reducido para que la foto principal entre en el viewport */
	.rehab-hero-collage {
		top: 0;
		left: 560px;
		width: 460px;
		height: 460px;
	}
	.rehab-hero-foto--grande {
		top: 20px;
        left: 40px;
		width: 400px;
		height: auto;
	}
	.rehab-hero-foto--chica,
	.rehab-hero-deco--rec47a,
	.rehab-hero-deco--rec47b,
	.rehab-hero-deco--rec24,
	.rehab-hero-deco--rec60,
	.rehab-hero-deco--rec34-inf {
		display: none;
	}

	/* Paso a paso: contenedor con padding menor */
	.rehab-paso-container {
		padding: 0 40px;
	}
	/* Decorativos de la sección paso a paso */
	.rehab-deco--rec60-enc,
	.rehab-etapa2-collage-deco {
		display: none;
	}

	/* Grilla de 5 tarjetas → 3 col × 2 filas, alineadas a la izquierda */
	.rehab-grilla {
		flex-wrap: wrap;
		gap: 24px;
	}
	.rehab-grilla .rehab-card {
		flex: 0 0 calc((100% - 48px) / 3);
		max-width: calc((100% - 48px) / 3);
	}

	/* ¿Por qué elegir Croma? — mantiene 2 col, se recalculan proporciones y gap */
	.rehab-porque-inner {
		padding: 0 40px;
		gap: 40px;
	}
	.rehab-porque-collage {
		width: 35%;
		height: auto;
		min-height: 600px;
	}
	/* Decorativo lateral izquierdo de la sección "por qué croma" */
	.rehab-porque-deco--rec60, .rehab-porque-deco--rec47 {
		display: none;
	}

	.rehab-porque-foto--chica {
		max-width: 230px;
	}

	.rehab-porque-foto--grande {
		max-width: 280px;
		top: 86px;
		left: 30px;
	}

	.rehab-etapa-user-doctor-img {
		max-width: 80px;
	}

	.rehab-etapa-fila-sup {
		gap: 50px;
	}

	.rehab-etapa-col-texto{
		width: 50%;
	}

	.rehab-paso-a-paso {
		padding-top: 0px;
	}

	.rehab-paso-encabezado {
        margin-bottom: 70px;
	}
}


/* ---- Tablet chico (≤995 px) ------------------------------ */
/* Sub-nav pasa a vertical; hero pasa a 1 columna; ¿por qué croma? pasa a 1 columna */
@media (max-width: 995px) {

	/* Sub-nav: disposición vertical (una debajo de otra) */
	.rehab-subnav-section {
		height: auto;
		padding: 24px 0px;
	}
	.rehab-subnav {
		width: 100%;
		max-width: 360px;
		border-radius: 24px;
		padding: 16px;
	}
	.rehab-subnav-list {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}
	.rehab-subnav-item {
		display: flex;
	}
	.rehab-subnav-link {
		width: 100%;
		justify-content: center;
	}

	/* Hero: 1 columna, foto única centrada abajo */
	.rehab-hero {
		padding-top: 60px;
		padding-bottom: 60px;
	}
	.rehab-hero-inner {
		padding: 0 24px;
		min-height: 0;
	}
	.rehab-hero-texto {
		float: none;
		width: 100%;
	}
	.rehab-hero-titulo {
		font-size: 30px !important;
	}
	.rehab-hero-parrafo {
		width: auto;
	}
	.rehab-hero-collage {
		position: static;
		width: 100%;
		height: auto;
		margin: 32px auto 0;
		display: flex;
		justify-content: center;
	}
	.rehab-hero-foto--grande {
		position: static;
		width: 380px;
		height: 380px;
		max-width: 100%;
	}

	/* Paso a paso: encabezado y textos escalan */
	.rehab-paso-a-paso {
		padding-top: 20px;
	}
	.rehab-paso-container {
		padding: 0 24px;
	}
	.rehab-paso-titulo {
		font-size: 26px;
	}
	.rehab-paso-encabezado {
		margin-bottom: 35px;
	}
	.rehab-etapa {
		margin-bottom: 60px;
	}
	/* Fila superior de etapa: pasa a 1 columna, columna derecha arriba (ícono/foto),
	   columna texto abajo. Mismo criterio que "¿Por qué elegir Croma?". */
	.rehab-etapa-fila-sup {
		flex-direction: column-reverse;
		gap: 32px;
		margin-bottom: 40px;
	}
	.rehab-etapa-col-texto {
		width: 100%;
	}
	.rehab-etapa-col-der {
		width: 100%;
	}
	/* Etapa 1: ícono user-doctor más chico */
	.rehab-etapa-user-doctor-img {
		max-width: 80px;
	}
	/* Etapa 2: foto reducida y centrada */
	.rehab-etapa-foto {
		width: 300px;
		height: 300px;
	}

	/* Grilla de 5 → 2 columnas × 3 filas (la 5ª sola) */
	.rehab-grilla .rehab-card {
		flex: 0 0 calc((100% - 20px) / 2);
		max-width: calc((100% - 20px) / 2);
	}
	.rehab-grilla {
		gap: 20px;
	}

	.rehab-porque-bajada {
		max-width: 100%;
	}

	/* ¿Por qué elegir Croma? — 1 columna, lista primero, foto grande después */
	.rehab-porque {
		padding-top: 60px;
		padding-bottom: 60px;
	}
	.rehab-porque-inner {
		flex-direction: column-reverse;
		gap: 40px;
		padding: 0 24px;
	}
	.rehab-porque-collage {
		width: 100%;
		min-height: 0;
		height: 300px;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	/* Foto grande: pasa a estática y centrada; foto chica y decorativos ocultos */
	.rehab-porque-foto--grande {
		position: static;
		width: 260px;
		height: auto;
	}
	.rehab-porque-foto--chica,
	.rehab-porque-deco--ellipse11,
	.rehab-porque-deco--rec34 {
		display: none;
	}
	.rehab-porque-titulo {
		font-size: 26px;
	}
	.rehab-porque-bajada {
		font-size: 16px;
	}
	.rehab-porque-razon-titulo {
		font-size: 20px;
	}

	.rehab-etapa-2 {
		margin-bottom: 0px;
	}
}


/* ---- Mobile (≤842 px) ------------------------------------ */
/* Cambio grande: CTAs apilados; grilla pasa a slider horizontal con scroll-snap */
@media (max-width: 842px) {

	/* Hero: título/párrafo más chicos, CTAs apilados */
	.rehab-hero-titulo {
		font-size: 28px !important;
	}
	.rehab-hero-parrafo {
		font-size: 15px !important;
	}
	.rehab-hero-ctas {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}
	.rehab-cta-primario,
	.rehab-cta-secundario {
		width: 100%;
		justify-content: center;
	}
	.rehab-hero-foto--grande {
		width: 260px;
		height: 260px;
	}

	.rehab-paso-titulo {
		margin: 20px 0;
	}
	.rehab-paso-bajada {
		font-size: 15px;
	}
	.rehab-etapa-nombre {
		font-size: 20px;
	}
	.rehab-etapa-numero-pill {
		width: 36px;
		height: 36px;
	}
	.rehab-etapa-subtitulo {
		font-size: 14px;
	}
	.rehab-etapa-parrafo,
	.rehab-etapa-der-parrafo {
		font-size: 15px;
	}

	.rehab-etapa-user-doctor-img {
		max-width: 60px;
	}

	/* Grilla → slider horizontal con scroll-snap, 1 tarjeta + peek */
	.rehab-grilla {
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 16px;
		/* Sangra el padding lateral del container para que la 1ª tarjeta
		   arranque alineada con el contenido y la última pueda snapear */
		margin: 0 -24px;
		padding: 4px 24px;
		scroll-padding-left: 24px;
	}
	.rehab-grilla .rehab-card {
		flex: 0 0 68%;
		max-width: 68%;
		scroll-snap-align: start;
		padding: 16px;
	}

	/* ¿Por qué elegir Croma?: ícono arriba del texto */
	.rehab-porque-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	.rehab-porque-icono-wrap,
	.rehab-porque-icono {
		width: 40px;
		height: 40px;
	}
	.rehab-porque-razon-titulo {
		font-size: 16px;
	}
	.rehab-porque-razon-desc {
		font-size: 14px;
	}
	.rehab-porque-titulo {
		font-size: 24px;
	}

	.rehab-recuperar-inner {
		padding: 0 24px;
	}
	.rehab-recuperar-titulo {
		font-size: 26px;
	}
	.rehab-recuperar-bajada {
		font-size: 15px;
		margin-bottom: 32px;
	}
	.rehab-recuperar-icono-deco {
		width: 32px;
		height: auto;
	}
	.rehab-recuperar-separador {
		width: 48px;
	}
	.rehab-recuperar-ctas {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		width: 100%;
	}
	.rehab-recuperar-ctas .rehab-cta-primario {
		width: 100%;
		justify-content: center;
	}
}


/* ---- Mobile chico (≤670 px) ------------------------------ */
/* Ajustes finos: encabezado paso a paso más chico */
@media (max-width: 670px) {
	.rehab-paso-titulo {
		font-size: 22px;
	}
}


/* ---- Mobile muy chico (≤500 px) -------------------------- */
/* Ajustes finos: hero y cierre a título más chico */
@media (max-width: 500px) {
	.rehab-hero-titulo {
		font-size: 26px !important;
	}
	.rehab-porque-titulo {
		font-size: 22px;
	}
	.rehab-porque-razon-desc {
		font-size: 13px;
	}
	.rehab-card-desc {
		font-size: 13px;
	}
}

