* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: Arial, sans-serif;
}

body {
	background-color: #f5f5f5;
	line-height: 150%;
}

.header {
	background-color: #2c6aa0;
	color: white;
	padding: 15px 0;
	border-bottom: 5px solid #1a4971;
    /* Mantener la barra de navegación visible al hacer scroll. Sticky conserva el espacio en el flujo del documento y evita que el contenido se superponga */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: center;
	position: relative;
}

.nav-menu {
	display: flex;
	list-style: none;
	justify-content: center;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	color: white;
	font-size: 24px;
	cursor: pointer;
	padding: 5px;
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}

@media (max-width : 807px ){
	.menu-toggle {
		display: block;
	}

	.nav-menu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		background-color: #2c6aa0;
		box-shadow: 0 5px 10px rgba(0,0,0,0.2);
		padding: 10px 0;
		z-index: 100;
		display: none;
	}

	.nav-menu.active {
		display: flex;
	}

	.nav-menu li {
		margin: 0;
		text-align: center;
	}

	.nav-menu a {
		display: block;
		padding: 12px 20px;
	}
}

.nav-menu li {
	margin-left: 15px;
}

.nav-menu a {
	color: white;
	text-decoration: none;
	font-size: 14px;
	text-transform: uppercase;
}

.nav-menu a:hover {
	text-decoration: underline;
}

.logo-container {
	background-color: white;
	text-align: center;
	padding: 20px 0;
}

.logo {
	max-width: 300px;
}

.main-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
}

.hero-section {
	background-image: url("img/principal.png");
	background-size: cover;
	background-position: center;
    height: 600px;
    position: relative;
    /* Margen inferior para separar el héroe del contenido siguiente */
    margin-bottom: 40px;
}

/* Eliminamos margen lateral en pantallas grandes para que la sección hero ocupe todo el ancho */

.hero-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: rgba(0, 0, 0, 0.7);
	color: white;
    /* Aumentamos el relleno para separar el texto y el botón de los bordes */
    padding: 30px;
}

/* Ajustar el tamaño de fuente del texto de apoyo en el hero */
.hero-content p {
    font-size: 18px;
}

/* Contenedor que agrupa el texto de apoyo y el botón en el hero */
.hero-subcontent {
    margin-top: 10px;
}

/* Eliminamos la alineación horizontal en pantallas anchas para que el botón se ubique debajo del texto siempre */

/* Estilo del botón de llamado a la acción en la sección hero */
.hero-cta {
    display: inline-block;
    margin-top: 15px;
    background-color: #2c6aa0;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 4px;
    font-size: 18px;
    text-decoration: none;
}

.hero-cta:hover {
    background-color: #1a4971;
}

.hero-content h1 {
	font-size: 28px;
	margin-bottom: 10px;
}

.about-section {
	background-color: white;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
	margin-bottom: 40px;
}

.about-section h2 {
	color: #2c6aa0;
	margin-bottom: 20px;
}

.service-section-tit {
	display: grid;
	gap: 30px;
	margin-bottom: 40px;
}


.service-section-tit h3 {
	margin-bottom: 10px;
	color: #2c6aa0;
}
.service-section-tit h2 {
	margin-top: 30px;
	color: #2c6aa0;
	text-align: center;
}

.service-content {
	 padding: 30px;
}

.service-content-sub {
	padding: 30px;
}


.service-section {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-bottom: 40px;
}

.service-card {
	background-color: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Estilo para el enlace de llamada a la acción en las tarjetas de servicio */
.service-link {
    display: inline-block;
    margin-top: 10px;
    color: #ffffff;
    background-color: #2c6aa0;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.service-link:hover {
    background-color: #1a4971;
}

/* --- Estilos específicos para las tarjetas de la sección de servicios --- */
/* Coloca el título a la izquierda y el botón a la derecha dentro de cada tarjeta */
.service-section .service-card .service-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-section .service-card .service-content h3 {
    margin-bottom: 0;
    margin-right: 10px;
}

/* Botón más pequeño dentro de las tarjetas de servicios */
.service-section .service-card .service-link {
    padding: 6px 10px;
    font-size: 12px;
    margin-top: 0;
}

/* --- Mostrar/Ocultar elementos adicionales en listas de profesionales --- */
.extra-item {
    display: none;
}

.toggle-button {
    margin-top: 10px;
    background-color: #2c6aa0;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
}

.toggle-button:hover {
    background-color: #1a4971;
}

.service-image {
	height: 200px;
	background-color: #ddd;
	background-size: cover;
	background-position: center;
}



.team-section {
	margin-bottom: 40px;
}

.team-section h2 {
	color: #2c6aa0;
	margin-bottom: 20px;
	text-align: center;
}

.team-section h3 {
	color: #2c6aa0;
	margin-bottom: 10px;
}

.team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.team-member {
	background-color: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.member-image {
	height: 200px;
	background-color: #ddd;
	background-size: cover;
	background-position: center;
}

.member-info {
	padding: 30px;
}

.member-info ul {
	margin-left: 15px;
}

.member-info li {
    margin-bottom: 5px;
    /* Evitar que los elementos de lista se dividan entre columnas */
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

.member-info h3 {
	color: #2c6aa0;
	margin-bottom: 5px;
}


.metodologia-section {
	margin-bottom: 40px;
}

.metodologia-section h2 {
	color: #2c6aa0;
	margin-bottom: 20px;
	text-align: center;
}

.metodologia-section h3 {
	color: #2c6aa0;
	margin-bottom: 10px;
}

.contact-section {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.contact-form {
	background-color: white;
	border-radius: 8px;
	padding: 30px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
	color: #2c6aa0;
	margin-bottom: 20px;
}

.form-group {
	margin-bottom: 15px;
}

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.form-group textarea {
	height: 120px;
}

.submit-btn {
	background-color: #2c6aa0;
	color: white;
	border: none;
	padding: 12px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
}

.submit-btn:hover {
	background-color: #1a4971;
}

.contact-info {
	background-color: white;
	border-radius: 8px;
	padding: 30px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
	color: #2c6aa0;
	margin-bottom: 20px;
}

.info-item {
	margin-bottom: 15px;
	display: flex;
	align-items: flex-start;
}

.info-item i {
	margin-right: 10px;
	color: #2c6aa0;
}

.footer {
	background-color: #2c6aa0;
	color: white;
	padding: 40px 0 20px;
	border-top: 5px solid #1a4971;
}

.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	padding: 0 20px;
}

.footer-section h3 {
	margin-bottom: 20px;
	font-size: 18px;
	position: relative;
	padding-bottom: 10px;
}

.footer-section h3::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 50px;
	height: 2px;
	background-color: white;
}

.footer-nav {
	list-style: none;
}

.footer-nav li {
	margin-bottom: 10px;
}

.footer-nav a {
	color: white;
	text-decoration: none;
}

.footer-nav a:hover {
	text-decoration: underline;
}

.social-links {
	display: flex;
	gap: 15px;
	margin-top: 20px;
}

.social-links a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background-color: white;
	border-radius: 50%;
	color: #2c6aa0;
	text-decoration: none;
	font-size: 20px;
	transition: all 0.3s;
}

.social-links a:hover {
	background-color: #1a4971;
	color: white;
}

.copyright {
	text-align: center;
	padding: 20px 0;
	margin-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.developer-info {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.developer-logo {
	height: 30px;
	width: auto;
	max-width: 120px;
}

.developer-text {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
}

.whatsapp-float {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}
.whatsapp-float img {
    width: 60px;
    height: 60px;
}
.whatsapp-float:hover {
    background-color: #20b954;
}
#button-container {
            position: fixed;
            bottom: 20px;
            right: 5px;
            display: flex;
            flex-direction: column;
            gap: 10px; /* Espacio entre los botones */
        }
        .button {
            padding: 10px;
            border: none;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            transition: background-color 0.3s, box-shadow 0.3s;
        }
        #back-to-top {
            background-color: #007BFF;
        }
        #back-to-top:hover {
            background-color: #0056b3;
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
        }
        #whatsapp-button {
            background-color: #25D366;
        }
        #whatsapp-button:hover {
            background-color: #1ebe56;
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
        }


/* --- Alertas del formulario de contacto --- */
.form-alert {
    display: none;
    margin-bottom: 15px;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}
.form-alert.ok {
    display: block;
    background: #e6f7ee;
    color: #1b6e3b;
    border: 1px solid #b7e4c7;
}
.form-alert.error {
    display: block;
    background: #fdecea;
    color: #a13a37;
    border: 1px solid #f5c2c7;
}

/* Honeypot: esconder sin usar display:none para bots básicos */
#website {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
