/* ======== RESET & BASE ======== */
body {
	overflow-x: hidden;
}

body,
.body-bg {
	margin: 0;
	padding: 0;
	background-color: #ebeef0;
	color: #264132;
}

p {
	font-size: 1rem;
	line-height: 1.6;
	margin-bottom: 1.5rem;
	text-align: justify;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

@media (min-width: 768px) {
	p {
		font-size: 1.125rem;
	}
}

section {
	scroll-margin-top: 100px; /* Ajusta según la altura de tu header */
}

/* ======== HEADER ======== */

.main-header {
	background-color: transparent;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem 2rem 0 2rem;
	position: sticky;
	top: 0;
	z-index: 50;
	margin-bottom: -100px;
	transition: background-color 0.5s ease;
}

@media (max-width: 768px) {
	#main-header {
		margin-bottom: 0 !important;
	}
	header {
		background-color: #ebeef0;
	}
}

.no-margin-bottom {
	margin-bottom: -100px;
}

.no-margin-bottom2 {
	margin-bottom: -150px;
}

.header-logo {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.logo-img {
	height: 56px;
}

.header-title {
	font-size: 2.25rem;
	font-family: serif;
	color: #264132;
	margin: 0;
}

.header-title .subtitle {
	display: block;
	font-size: 1rem;
	font-family: sans-serif;
}
/* ======== MENÚ ======== */

.nav-desktop {
	display: none;
}

@media (min-width: 768px) {
	.nav-desktop {
		display: flex;
		gap: 1.5rem;
	}
}

.menu-toggle {
	display: block;
	color: #264132;
	background: none;
	border: none;
}

.hamburger-icon {
	width: 2rem;
	height: 2rem;
}

.btn-secondary,
.btn-primary {
	padding: 0.5rem 1rem;
	border-radius: 6px;
	font-size: 1.125rem;
	text-decoration: none;
	font-weight: 600;
	text-align: center;
}

.btn-secondary {
	background-color: #c6d5c6;
	color: #264132;
}

.btn-primary {
	background-color: #264132;
	color: white;
	font-weight: bold;
	padding: 0.5rem 1.25rem;
}

.mobile-menu {
	display: none;
}

@media (max-width: 767px) {
	.mobile-menu {
		display: block;
	}

	.main-header {
		flex-direction: column;
		align-items: center;
		gap: 1rem;
		padding-bottom: 5px;
	}

	.btn-secondary,
	.btn-primary {
		width: 90%;
	}

	.mobile-menu a {
		display: block;
		width: 90%;
		margin-top: 1rem;
	}
}

.main-header.scrolled {
	background-color: white;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* opcional, para dar profundidad */
}

/* ======== SECCIÓN INICIO ======== */

.seccion-inicio {
	display: flex;
	flex-direction: column;
	padding: 0 1.5rem;
	margin-bottom: -75px;
	background-image: url("img/fondo.png");
	background-repeat: no-repeat;
	background-position: left;
	background-size: contain;
	background-color: #ebeef0;
	position: relative;
	padding-right: 0;
}

@media (min-width: 768px) {
	.seccion-inicio {
		flex-direction: row;
		height: 1000px;
		justify-content: space-between;
		align-items: center;
		margin-bottom: -150px;
	}
}

.seccion-inicio-texto {
	width: 100%;
}


@media (min-width: 768px) {
	.seccion-inicio-texto {
		width: 50%;
		padding-bottom: 0%;
	}
}

@media (min-width: 1000px) {
	.seccion-inicio-texto {
		width: 50%;
		padding-bottom: 10%;
	}
}


.seccion-inicio-texto h2 {
	font-size: 1.5rem;
	font-weight: bold;
	margin-bottom: 1rem;
	color: #264132;
}

@media (min-width: 768px) {
	.seccion-inicio-texto h2 {
		font-size: 2rem;
	}
}

.seccion-inicio-texto p {
	font-size: 1rem;
	color: #264132;
	line-height: 1.6;
}

.seccion-inicio-imagen {
	margin-top: 2rem;
	display: flex;
	justify-content: flex-end;
	width: 100%;
}

@media (min-width: 768px) {
	.seccion-inicio-imagen {
		margin-top: 0;
		width: 50%;
	}
}

.diagonal-image {
	clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);
	max-width: 100%;
	height: auto;
	border-radius: 0.5rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
	.diagonal-image {
		clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
	}
}

.titulo-inicio {
	font-family: "Calibri", sans-serif;
	font-weight: bold;
	text-align: center;
	color: #a30068; /* Fucsia */
	font-size: 3rem !important; /* Ajusta aquí el tamaño si lo quieres más grande aún */
	margin-bottom: 2rem;
	line-height: 1.6;
}

.seccion-inicio-texto p.texto-destacado {
	font-size: 1.4rem; /* un poco más grande */
	line-height: 1.6;
	font-weight: 500; /* peso medio para el párrafo, sin pasarse */
	color: #333; /* un gris oscuro para buena lectura */
}

.seccion-inicio-texto p.texto-destacado strong {
	font-weight: 700; /* negrita clara para destacar */
}
.mb{
	display: none;
}
@media (max-width: 768px) {
	.titulo-inicio {
		font-size: 1.7rem !important; /* Ajusta aquí el tamaño si lo quieres más grande aún */
	}
	.pc{
	display: none;
}
.mb{
	display:block;
}
}

/* ======== IMAGEN MÓVIL ======== */

@media (max-width: 768px) {
	.mobile-img {
		object-fit: cover;
		border-radius: 0;
		margin: 0;
		padding: 0;
		margin-bottom: 5rem;
	}

	section {
		padding-left: 1.5rem !important;
		padding-right: 1.5rem !important;
		padding-top: 2rem !important;
	}

	section div p {
		font-size: 1rem;
	}
}

/* ======== SECCIÓN SERVICIOS ======== */

.seccion-servicios {
	background-color: #a9c5af;
	color: #264132;
	padding: 3rem 1.5rem;
	position: relative;
	z-index: 10;
}

.contenedor-servicios {
	max-width: 1000px;
	margin: 0 auto;
}

.titulo-seccion {
	font-size: 1.5rem;
	font-weight: bold;
	margin-bottom: 1rem;
	text-align: center;
}

@media (min-width: 768px) {
	.titulo-seccion {
		font-size: 2rem;
	}
}

.subtitulo-seccion {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	text-align: justify;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

/* ======== INTERVENCIÓN ======== */
.intervencion {
	max-width: 1000px;
	margin: 3rem auto 0;
	text-align: center;
}

.intervencion-titulo {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
}
.intervencion-cajas {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.intervencion-box {
  background-color: #c0d4c4;
  color: #17271e;
  border-radius: 2rem;
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.intervencion-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.intervencion-box li {
  margin-bottom: 1rem; /* Más espacio entre líneas */
  font-weight: 500;
}


@media (min-width: 768px) {
  .intervencion-cajas {
    flex-direction: row;
    align-items: stretch;
  }

  .intervencion-box {
    width: 100%;
  }
}


/* ======== EQUIPO ======== */

.equipo-section {
	background-color: #eaf0f0;
	padding: 4rem 1rem;
}

.equipo-contenedor {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 2rem;
	align-items: center;
}

@media (min-width: 768px) {
	.equipo-contenedor {
		flex-direction: row;
		justify-content: center;
	}
}

.tarjeta-profesional {
	background-color: #a9c5af;
	border-radius: 2rem;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
	width: 100%;
	max-width: 320px;
	padding: 6rem 1.5rem 2rem;
	text-align: center;
	position: relative;
	transition: transform 0.3s ease;
}

.tarjeta-profesional:hover {
	transform: scale(1.05);
}

.tarjeta-img {
	position: absolute;
	top: -80px;
	left: 50%;
	transform: translateX(-50%);
}

.tarjeta-img img {
	border-radius: 50%;
	width: 120px;
	height: auto;
}

.tarjeta-nombre {
	font-size: 1.2rem;
	font-weight: 600;
	margin-top: 1rem;
}

.boton-verde,
.boton-blanco {
	display: block;
	font-weight: bold;
	padding: 0.5rem 1.5rem;
	border-radius: 9999px;
	width: max-content;
	margin: 1rem auto 0;
	transition: background-color 0.3s ease;
	text-decoration: none;
}

.boton-verde {
	background-color: #2e4733;
	color: white;
}

.boton-verde:hover {
	background-color: #1d3624;
}

.boton-blanco {
	background-color: white;
	color: black;
}

.boton-blanco:hover {
	background-color: #f0f0f0;
}

@media (max-width: 767px) {
	.tarjeta-img {
		position: static;
		transform: none;
		margin-bottom: 1rem;
	}

	.tarjeta-profesional {
		padding-top: 2rem;
		width: 85%;
	}
}
.equipo-titulo {
	font-size: 2rem;
	font-weight: 700;
	color: #264132;
	text-align: center;
	margin-bottom: 6rem;
}

/* ======== TARIFAS ======== */

.tarifas-section {
	background-color: #588061;
	text-align: center;
	padding-bottom:1rem ;
}

.tarifas-titulo {
	font-size: 2rem;
	font-weight: bold;
	color: #17271e;
	margin-bottom: 2rem;
}

.tarifas-contenedor {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	align-items: center;
	justify-content: center;
}

@media (min-width: 768px) {
	.tarifas-contenedor {
		flex-direction: row;
	}
}

.tarifa-box {
	background-image: url("img/tarifas.png");
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;

	border-radius: 2rem;
	padding: 2rem 1.5rem;
	width: 280px;
	height: 280px;

	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	justify-content: space-between; /* reparte el espacio vertical */
}

.tarifa-tipo {
	font-size: 2rem;
	font-weight: 500;
	margin-bottom: 1rem;
	font-weight: bold;
}

.tarifa-precio {
	font-size: 2rem;
	font-weight: bold;
	margin-bottom: 1rem;
}

.tarifa-info {
	font-size: 0.95rem;
	line-height: 1.4;
}

@media (max-width: 768px) {
	.tarifa-box {
		width: 100% !important;
		padding: 0% !important;
		height: auto !important;
		background-size: 150%;
	}

	.tarifa-info {
		font-size: 0.75rem;
	}

	.tarifa-tipo {
	font-size: 1.7rem;
}
}

.tarifa-ico{
	height: 50px;	
}

/* Contacto */

.contact-section {
	padding: 3rem 1rem;
	background-color: #f4f4f4;
	color: #333;
}

.contact-section .section-title {
	font-size: 2rem;
	margin-bottom: 1rem;
	text-align: center;
}

.contact-section .section-description {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 2rem auto;
}

.contact-cards {
	display: flex;
	gap: 2rem;
	flex-wrap: wrap;
	justify-content: center;
}

.contact-card {
	background-color: white;
	border: 1px solid #ddd;
	padding: 1.5rem;
	border-radius: 8px;
	width: 100%;
	max-width: 360px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-name {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.contact-info {
	margin: 0.3rem 0;
}

.contact-card a {
	display: inline-block;
	margin-top: 1rem;
	color: #1f6844;
	text-decoration: underline;
	font-weight: 500;
}

/* Estilo móvil para el título y el texto */
@media (max-width: 768px) {
	.section-title {
		font-size: 1.5rem !important; /* antes podía ser 2rem o más */
		text-align: center;
	}

	.section-description {
		font-size: 1rem;
		text-align: center;
		padding: 0 1rem;
	}
}

@media (max-width: 768px) {
	iframe {
		max-width: 100% !important;
		width: 100% !important;
	}
}

/* Footer */
.ilex-footer {
	background-color: #588061;
	color: #ffffff;
	padding: 2rem 1.5rem;
	font-family: sans-serif;
}

.footer-logo {
	height: 80px;
}

.footer-right a {
	color: #ffffff;
	text-decoration: underline;
	font-weight: 500;
}

.footer-divider {
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.3);
	margin: 2rem 0 1.5rem 0;
}

.footer-bottom a {
	color: #ffffff;
	text-decoration: underline;
	font-weight: 500;
}

.footer-top {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	gap: 0.5rem;
	font-size: 0.9rem;
}

.footer-bottom {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
	text-align: center;
	font-size: 0.9rem;
}

.footer-item {
	display: inline-flex;
}

.sello-topdoctors {
	display: none !important;
}
.sello-topdoctors {
	pointer-events: none;
}

/* Perfiles */
.perfil-profesional {
	max-width: 700px;
	margin: 3rem auto;
	padding: 0 1rem;
	text-align: center;
}

.perfil-profesional img {
	margin-top: 3rem;

	max-width: 250px;
	border-radius: 50%;
	margin-bottom: 1.5rem;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.perfil-profesional h1 {
	color: #2c6a4f;
	margin-bottom: 1rem;
}

.perfil-profesional p {
	font-size: 1.1rem;
	line-height: 1.5;
	color: #333;
}
