html {
	scroll-behavior: smooth;
}

/* ==========================================================================
   ANIMACIONES
   ========================================================================== */

@keyframes subir-bajar {
	0%,
	100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-20px);
	}
}

@keyframes moveToFrame {
	0% {
		transform: translate(0, 0) rotate(0deg);
	}
	100% {
		transform: translate(0, -10px) rotate(-6deg);
	}
}

/* ==========================================================================
   SECCIONES PRINCIPALES
   ========================================================================== */

#section2 {
	max-height: 45.732rem !important;
}

#section3 {
	max-height: 42.115rem !important;
}

#section4 {
	max-height: 41rem !important;
}

/* ==========================================================================
   CONTENEDORES Y LAYOUT
   ========================================================================== */

#section2 .container,
#section3 .container,
#section4 .container {
	gap: 4rem !important;
}

.container p {
	font-weight: 300 !important;
	font-size: 1rem !important;
}

#section2 .container p span,
#section3 .container p span,
#section4 .container p span {
	font-weight: 600 !important;
}

/* ==========================================================================
   TÍTULOS Y TEXTOS
   ========================================================================== */

.sub_title {
	color: var(--mdb-primary);
	text-align: center !important;
	font-family: Alexandria !important;
	font-style: normal !important;
	font-weight: 400 !important;
	font-size: 1.556rem !important;
	line-height: 2.222rem !important;
}

.content-1 {
	max-width: 700px !important;
}

.content-1 span {
	font-size: 1rem !important;
	font-weight: 400;
	line-height: 2rem !important;
	color: var(--mdb-secondary);
}

/* ==========================================================================
   IMÁGENES Y TARJETAS
   ========================================================================== */

#content-images {
	position: absolute;
	bottom: -120px;
}

#content-images img {
	width: 14.68513rem !important;
	height: 14.8045rem !important;
}

/* Tarjetas individuales */
.card-1 {
	left: 3.85rem !important;
	position: relative !important;
	z-index: 0 !important;
	transition: transform 450ms ease-in-out;
}

.card-1:hover {
	transform: translate(0, -10px) rotate(-6deg);
}

.card-2 {
	position: relative !important;
	top: 10px !important;
	z-index: 1 !important;
	transition: transform 450ms ease-in-out;
}

.card-2:hover {
	transform: translate(0, 10px) rotate(6deg);
}

.card-3 {
	right: 3.85rem !important;
	position: relative !important;
	z-index: 0 !important;
	transition: transform 450ms ease-in-out;
}

.card-3:hover {
	transform: translate(0, -10px) rotate(-6deg);
	color: rgb(19, 19, 41, 0.9);
}

/* ==========================================================================
   FONDOS
   ========================================================================== */

/* .bg-image1 {
    background-image: url("../../../assets/img/web/paciente/background-1.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-image2 {
    background-image: url("../../../assets/img/web/paciente/background-2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-image3 {
    background-image: url("../../../assets/img/web/paciente/background-3.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
} */

/* ==========================================================================
   BOTONES
   ========================================================================== */

.btn-style,
.btn-style-blue,
.btn-style-rose {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	width: 7.389rem !important;
	height: 2.167rem !important;
	padding: 0px !important;
	/*margin: 0px !important;*/
	gap: 0.625rem !important;
	border-radius: 32px !important;
	font-size: 0.889rem !important;
	color: white !important;
	background-color: var(--mdb-primary);
	transition: all 0.3s ease-in-out !important;
}

.btn-style-blue {
	background-color: var(--mdb-secondary) !important;
	border: 3px solid var(--mdb-secondary) !important;
}

.btn-style-rose {
	background-color: var(--mdb-primary) !important;
	border: 3px solid var(--mdb-primary) !important;
}

.btn-style span {
	font-size: 0.889rem !important;
	color: white !important;
}

/* Estados hover de botones */
.btn-style:hover,
.btn-style-blue:hover,
.btn-style-rose:hover {
	background-color: transparent !important;
}

.btn-style-blue:hover span {
	color: var(--mdb-secondary) !important;
}

.btn-style-rose:hover span {
	color: var(--mdb-primary) !important;
}

/* ==========================================================================
   ELEMENTOS CON ANIMACIÓN
   ========================================================================== */

.arrow-animation {
	animation: subir-bajar 2s ease-in-out infinite;
}

/* ==========================================================================
   ESTILOS ESPECÍFICOS DE SECCIONES (extraídos del HTML inline)
   ========================================================================== */

/* Section 1 */
#section1 {
	max-width: 1000px !important;
}

/* Secciones 2, 3, 4 - contenedores específicos */
#section2 .container {
	gap: 4.6rem !important;
}

#section3 .container {
	gap: 4.5625rem !important;
}

#section4 .container {
	gap: 4.31rem !important;
}

/* Section 5 */
#section5 .container {
	max-width: 66.167rem !important;
	gap: 3.125rem !important;
}


#section5 .container  h2 {
        font-weight: 700 !important;
}

#section5 .d-flex {
	gap: 7.25rem !important;
	align-self: stretch;
}

#section5 .col:nth-child(1) {
	max-width: 14.625rem !important;
}

#section5 .col:nth-child(2) {
	max-width: 14.625rem !important;
}

#section5 .col:nth-child(3) {
	max-width: 18.0625rem !important;
}

/* Section 6 */
#section6 {
	gap: 6rem !important;
}

#section6 .container {
	max-width: 66.167rem !important;
	gap: 2rem !important;
}

#section6 .container p {
	max-width: 35.75rem !important;
}

/* ==========================================================================
   ESTILOS ESPECÍFICOS DE ELEMENTOS
   ========================================================================== */

/* Textos en secciones específicas */
#section2 .text-center,
#section3 .text-center,
#section4 .text-center {
	max-width: 24.889rem !important;
}

#section3 .text-center {
	max-width: 22.778rem !important;
}

#section4 .text-center {
	max-width: 21.944rem !important;
}

/* ==========================================================================
   FONDOS RESPONSIVOS
   ========================================================================== */

/* DESKTOP (por defecto - mantener las imágenes actuales) */
.bg-image1 {
	background-image: url("../../../assets/img/web/paciente/background-1.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.bg-image2 {
	background-image: url("../../../assets/img/web/paciente/background-2.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.bg-image3 {
	background-image: url("../../../assets/img/web/paciente/background-3.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* TABLET (768px - 1023px) */
/* @media screen and (max-width: 1023px) and (min-width: 768px) {
    .bg-image1 {
        background-image: url("../../../assets/img/web/paciente/background-1-tablet.png");
        background-size: cover; 
    }

    .bg-image2 {
        background-image: url("../../../assets/img/web/paciente/background-2-tablet.png");
        background-size: contain;
    }

    .bg-image3 {
        background-image: url("../../../assets/img/web/paciente/background-3-tablet.png");
        background-size: contain;
    }
} */

/* MOBILE (hasta 767px) */
@media screen and (max-width: 767px) {

    .section {
        padding-block: 12vw !important;
    }

	.bg-image1 {
		background-image: url("../../../assets/img/web/paciente/background-mobile-1.png");
		background-size: cover; /* Recomendado para mobile */
		background-position: center top; /* Ajustar posición si es necesario */
	}

	.bg-image2 {
		background-image: url("../../../assets/img/web/paciente/background-mobile-2.png");
		background-size: cover; /* Cambiar a cover para mobile */
		background-position: center;
	}

	.bg-image3 {
		background-image: url("../../../assets/img/web/paciente/background-mobile-3.png");
		background-size: cover; /* Cambiar a cover para mobile */
		background-position: center;
	}

	#section1 {
		padding-bottom: 6rem !important;
	}

	#section2 {
		max-height: 100% !important;
		padding-top: 6rem !important;
	}

	#section3 {
		max-height: 100% !important;
	}

	#section4 {
		max-height: 100% !important;
	}

	#content-images img {
		width: 9.68513rem !important;
		height: 9.8045rem !important;
	}
	#content-images .card-1,
	#content-images .card-2,
	#content-images .card-3 {
		width: 9.68513rem !important;
		height: 9.8045rem !important;
	}

	#content-images {
		bottom: -5rem !important;
		overflow: hidden;
		width: 100% !important;
		height: 12rem !important;
	}

	#section1,
	#section2,
	#section3,
	#section4,
	#section5,
	#section6 {
		scroll-margin-top: var(--header-height-sm) !important;
	}

    	.bg-image1,
	.bg-image2,
	.bg-image3 {
		background-size: cover;
		background-position: center top;
	}

	#section2 .container,
	#section3 .container,
	#section4 .container {
		gap: 2rem !important;
	}

	#section6 .container {
		gap: 1.5rem !important;
	}

	#section5 .d-flex,
	#section6 {
		gap: 1rem !important;
	}

    .btn-style,
.btn-style-blue,
.btn-style-rose{
	width: 100% !important;
}
    

}


/** LAS MEDIA QUERY QUE YA TENIA DEFINIDAS*/

@media (min-width: 576px) {
	
    #section1, #section2, #section3, #section4, #section5, #section6 {
        scroll-margin-top: var(--header-height-sm) !important; 
    }
}

@media (min-width: 768px) {
    #section1, #section2, #section3, #section4, #section5, #section6 {
        scroll-margin-top: var(--header-height-md) !important; 
    }

    .bg-image1 {
		background-image: url("../../../assets/img/web/paciente/background-mobile-1.png");
		background-size: cover; /* Recomendado para mobile */
		background-position: center top; /* Ajustar posición si es necesario */
	}

	.bg-image2 {
		background-image: url("../../../assets/img/web/paciente/background-mobile-2.png");
		background-size: cover; /* Cambiar a cover para mobile */
		background-position: center;
	}

	.bg-image3 {
		background-image: url("../../../assets/img/web/paciente/background-mobile-3.png");
		background-size: cover; /* Cambiar a cover para mobile */
		background-position: center;
	}

	#section1 {
		padding-bottom: 8rem !important;
	}

	#section2 {
		max-height: 100% !important;
		padding-top: 8rem !important;
	}

	#section3 {
		max-height: 100% !important;
	}

	#section4 {
		max-height: 100% !important;
	}

	#content-images img {
		width: 14.68513rem !important;
		height: 14.8045rem !important;
	}
	#content-images .card-1,
	#content-images .card-2,
	#content-images .card-3 {
		width: 14.68513rem !important;
		height: 14.8045rem !important;
	}

	#content-images {
		bottom: -6rem !important;
		overflow: hidden;
		width: 100% !important;
		height: 15rem !important;
	}

	#section1,
	#section2,
	#section3,
	#section4,
	#section5,
	#section6 {
		scroll-margin-top: var(--header-height-sm) !important;
	}

    	.bg-image1,
	.bg-image2,
	.bg-image3 {
		background-size: cover;
		background-position: center top;
	}

	#section2 .container,
	#section3 .container,
	#section4 .container {
		gap: 2rem !important;
	}

	#section6 .container {
		gap: 1.5rem !important;
	}

	#section5 .d-flex,
	#section6 {
		gap: 1rem !important;
	}
}

@media (min-width: 992px) {


    #section5 .container p {
	font-size: 1.2rem !important;
}

    #section1, #section2, #section3, #section4, #section5, #section6 {
        scroll-margin-top: var(--header-height-lg) !important; 
    }

    .bg-image1 {
	background-image: url("../../../assets/img/web/paciente/background-1.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.bg-image2 {
	background-image: url("../../../assets/img/web/paciente/background-2.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.bg-image3 {
	background-image: url("../../../assets/img/web/paciente/background-3.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

}

@media (min-width: 1200px) {
    #section1, #section2, #section3, #section4, #section5, #section6 {
        scroll-margin-top: var(--header-height-xl) !important; 
    }
}