/* --- VARIABLES DE DISEÑO: ¡Modifica estos colores para personalizar tu página! --- */
:root {
	--color-primario: hsla(0, 0%, 0%, 0.897); /* Azul oscuro para fondos y textos importantes */
	--color-secundario: #425466; /* Gris azulado para textos secundarios */
	--color-acento: #007bff; /* Azul brillante para botones y enlaces */
	--color-fondo: #ffffff; /* Fondo principal */
	--color-fondo-claro: #f8f9fa; /* Fondo para secciones alternas */
	--color-texto: #333333;
	--fuente-principal: "Poppins", sans-serif;
	--sombra-caja: 0 4px 15px rgba(0, 0, 0, 0.1);
	--radio-borde: 8px;
}

/* --- RESET Y ESTILOS GLOBALES --- */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}
body {
	font-family: var(--fuente-principal);
	background-color: var(--color-fondo);
	color: var(--color-texto);
	line-height: 1.6;
}

.container {
	max-width: 1100px;
	width: 90%;
	margin-right: auto;
	margin-left: auto;
	padding: 4rem 0;
}

section h2 {
	text-align: center;
	font-size: 2.5rem;
	color: var(--color-primario);
	margin-bottom: 3rem;
	font-weight: 700;
}

/* --- ENCABEZADO Y NAVEGACIÓN --- */
.header {
	background-color: var(--color-fondo);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	padding: 1rem 5%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: sticky;
	top: 0;
	z-index: 1000;
}

.logo {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-primario);
	text-decoration: none;
}

.logo img {
	height: 40px; /* Ajusta esta altura según el tamaño de tu logo */
	width: auto;
	vertical-align: middle; /* Ayuda a alinear la imagen correctamente */
}

.nav-links {
	list-style: none;
	display: flex;
	gap: 2rem;
}

.nav-links a {
	text-decoration: none;
	color: var(--color-secundario);
	font-weight: 600;
	transition: color 0.3s ease;
}

.nav-links a:hover {
	color: var(--color-acento);
}

/* --- SECCIÓN HERO --- */
.hero {
	background: linear-gradient(rgb(0, 19, 44), rgba(248, 248, 248, 0.962)),
		url("https://via.placeholder.com/1920x1080/cccccc/969696?text=Imagen+de+Fondo") center
			center/cover no-repeat;
	color: white;
	height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.hero-content {
	max-width: 800px;
}

.hero h1 {
	font-size: 3.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.hero p {
	font-size: 1.2rem;
	font-weight: 300;
	margin-bottom: 2rem;
}

.cta-button {
	background-color: var(--color-acento);
	color: white;
	padding: 1rem 2rem;
	border-radius: var(--radio-borde);
	text-decoration: none;
	font-weight: 600;
	transition:
		background-color 0.3s ease,
		transform 0.3s ease;
}

.cta-button:hover {
	background-color: #0056b3;
	transform: translateY(-3px);
}

/* --- SECCIÓN SOBRE NOSOTROS --- */
.about-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.about-content img {
	width: 100%;
	border-radius: var(--radio-borde);
	box-shadow: var(--sombra-caja);
}

/* --- SECCIÓN SERVICIOS --- */
.services {
	background-color: var(--color-fondo-claro);
}

.service-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.service-card {
	background-color: var(--color-fondo);
	padding: 2rem;
	text-align: center;
	border-radius: var(--radio-borde);
	box-shadow: var(--sombra-caja);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.service-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card i {
	font-size: 3rem;
	color: var(--color-acento);
	margin-bottom: 1rem;
}

.service-card h3 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
	color: var(--color-primario);
}

/* --- SECCIÓN GALERÍA --- */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
}

.gallery-item {
	overflow: hidden;
	border-radius: var(--radio-borde);
	box-shadow: var(--sombra-caja);
	cursor: pointer;
}

.gallery-grid img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	transition: transform 0.3s ease;
	display: block; /* Elimina espacio extra debajo de la imagen */
}

.gallery-item:hover img {
	transform: scale(1.05);
}

/* --- MODAL / LIGHTBOX DE GALERÍA --- */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 2000;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.3s ease,
		visibility 0.3s ease;
}

.modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.modal-content {
	background: var(--color-fondo);
	padding: 2rem;
	border-radius: var(--radio-borde);
	max-width: 90%;
	max-height: 90vh;
	width: 800px;
	position: relative;
	text-align: center;
	transform: scale(0.9);
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
}

.modal-overlay.active .modal-content {
	transform: scale(1);
}

.modal-close {
	position: absolute;
	top: 1rem;
	right: 1.5rem;
	font-size: 2.5rem;
	font-weight: bold;
	color: var(--color-secundario);
	cursor: pointer;
	line-height: 1;
	transition: color 0.3s ease;
}

.modal-close:hover {
	color: var(--color-primario);
}

.modal-image {
	max-width: 100%;
	max-height: 65vh;
	object-fit: contain;
	border-radius: var(--radio-borde);
	margin-bottom: 1rem;
}

.modal-description {
	color: var(--color-secundario);
	font-size: 1rem;
	overflow-y: auto; /* Para descripciones largas */
}

/* --- PIE DE PÁGINA --- */
.footer {
	background-color: var(--color-primario);
	color: var(--color-fondo-claro);
	text-align: center;
	padding: 3rem 0;
}

.social-links a {
	color: white;
	font-size: 1.5rem;
	margin: 0 0.75rem;
	transition: color 0.3s ease;
}

.social-links a:hover {
	color: var(--color-acento);
}

.footer p {
	margin-top: 1.5rem;
}

/* Estilos para el enlace de agendar cita en el footer */
.footer .appointment-link i {
  color: white; /* Color del ícono (movido desde el HTML) */
  font-size: 2.5rem; /* ¡Ajusta este valor si lo quieres más grande o más pequeño! */
  transition: color 0.3s ease, transform 0.3s ease; /* Transición suave para los efectos */
  display: inline-block; /* Necesario para que la transformación funcione bien */
}

.footer .appointment-link:hover i {
  transform: scale(1.1); /* Agranda ligeramente el ícono para dar feedback */
  color: var(--color-acento); /* Cambia al color de acento para mayor feedback */
}

/* --- DISEÑO RESPONSIVO --- */
@media (max-width: 768px) {
	.nav-links {
		display: none; /* Opcional: Implementar un menú de hamburguesa */
	}
	.hero h1 {
		font-size: 2.5rem;
	}
	.about-content {
		grid-template-columns: 1fr;
	}
	section h2 {
		font-size: 2rem;
	}
}