/* --- ESTILOS GLOBALES Y RESETEO --- */
html {
    scroll-behavior: smooth; /* <-- Magia! Activa el scroll suave para todos los enlaces ancla */
}

        :root {
            --primary-color: #0078D4;
            --secondary-color: #F1F1F1;
            --text-color: #333;
            --whatsapp-color: #25D366;
            --light-gray: #f9f9f9;
        }

        body {
            margin: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            line-height: 1.6;
            color: var(--text-color);
            background-color: #fff;
        }

        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* --- HEADER Y NAVEGACIÒN --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    
    /* --- ESTILOS DEL DEGRADADO Y TEXTO --- */
    background: linear-gradient(to right, #0078D4, #ffffff); /* Degradado de azul a blanco */
    color: #333; /* Color de texto oscuro para legibilidad en ambos fondos */
    
    /* Opcional: Añadir una sombra sutil para separar el header del contenido */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
        header h1 {
            font-size: 1.5rem;
            margin: 0;
        }

        header img {
            height: 50px;
        }

        nav {
            background-color: var(--secondary-color);
            padding: 0;
            border-bottom: 2px solid #ddd;
        }

        nav ul {
            list-style-type: none;
            padding: 0;
            margin: 0;
            display: flex;
            justify-content: center;
        }

        nav ul li a {
            display: block;
            text-decoration: none;
            color: var(--text-color);
            font-weight: bold;
            padding: 15px 20px;
            transition: background-color 0.3s, color 0.3s;
        }

        nav ul li a:hover, nav ul li a:focus {
            background-color: var(--primary-color);
            color: white;
            outline: none;
        }

        /* --- CARRUSEL (SLIDESHOW) --- */
.slideshow-container {
    position: relative;
    max-height: 60vh;
    overflow: hidden;
    background-color: #f1f1f1; /* Gris claro, más versátil */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Sombra sutil para dar profundidad */
}
	.slide {
		display: none; /* Ocultar todas las imágenes por defecto */
		width: 100%;
		text-align: center;
	}

	.slide img {
		max-width: 100%;
		max-height: 60vh;
		object-fit: cover; /* Hace que la imagen cubra el espacio sin deformarse */
	}

	/* Controles del carrusel */
	.prev, .next {
		cursor: pointer;
		position: absolute;
		top: 50%;
		width: auto;
		padding: 16px;
		margin-top: -22px;
		color: white;
		font-weight: bold;
		font-size: 24px;
		transition: 0.6s ease;
		border-radius: 0 3px 3px 0;
		user-select: none;
		background-color: rgba(0,0,0,0.5);
	}

	.next {
		right: 0;
		border-radius: 3px 0 0 3px;
	}

	.prev:hover, .next:hover {
		background-color: rgba(0,0,0,0.8);
	}

        /* --- SECCIÓN DE INFORMACIÓN --- */
        .info-section {
            text-align: center;
            padding: 40px 20px;
        }

        .info-section h2 {
            font-size: 2rem;
            margin-bottom: 10px;
        }

        /* --- SECCIÓN DE CONTACTO (MEJORADA) --- */
        .contact-section {
            background-color: var(--light-gray);
            padding: 40px 0;
        }
        .contact-section h2 {
            text-align: center;
            margin-bottom: 30px;
            font-size: 2rem;
        }

        .contact-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            text-align: center;
        }

        .contact-item {
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        .contact-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        }

        .contact-item h3 {
            margin-top: 0;
            color: var(--primary-color);
        }

        .contact-item a {
            text-decoration: none;
            color: var(--text-color);
            font-weight: bold;
        }
        .contact-item a:hover {
            text-decoration: underline;
        }

        /* --- FOOTER (PIE DE PÁGINA) --- */
        footer {
            background-color: var(--primary-color);
            color: white;
            text-align: center;
            padding: 20px 0;
            margin-top: 40px;
        }

        .logos {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 30px;
            margin-top: 15px;
        }

        .logos img {
            height: 50px;
            background-color: white;
            padding: 5px;
            border-radius: 5px;
        }

        /* --- BOTÓN DE WHATSAPP --- */
        .chat-button {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background-color: var(--whatsapp-color);
            color: white;
            padding: 12px 18px;
            border: none;
            border-radius: 50px;
            font-size: 16px;
            text-decoration: none;
            display: flex;
            align-items: center;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s, box-shadow 0.3s;
            z-index: 1000;
        }

        .chat-button:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
        }

        .chat-button img {
            height: 24px;
            margin-right: 10px;
        }

		/* --- ESTILOS PARA EL BOTÓN FLOTANTE DE FACEBOOK --- */
		.facebook-button {
			position: fixed; /* Lo hace flotante */
			width: 40px;
			height: 40px;
			bottom: 20px;    /* Alineado verticalmente con WhatsApp */
			left: 20px;    /* Desplazado a la izquierda para que no se superponga */
			background-color: #1877f2; /* Color oficial de Facebook */
			color: #FFF;
            padding: 6px 30px;
			border-radius: 50px;
			text-align: center;
			font-size: 15px;
			box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
			z-index: 1000;
			display: flex;
			align-items: center;
			justify-content: center;
			transition: transform 0.3s ease;
		}

		.facebook-button:hover {
			transform: scale(1.1); /* Efecto de zoom al pasar el mouse */
		}

		.facebook-button img {
			width: 35px; /* Ajusta el tamaño del icono dentro del botón */
			height: auto;
		}

/* --- ESTILOS PARA LAS PESTAÑAS --- */
.tabs-section {
    margin-top: 20px;
}
.tabs-buttons {
    display: flex;
    border-bottom: 2px solid var(--secondary-color);
}
.tab-button {
    display: inline-block; /* Permite que el enlace tenga padding y altura como un botón */
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none; /* <-- LÍNEA CLAVE! Quita el subrayado del enlace */
    transition: background-color 0.3s, color 0.3s;
}

/* El resto de los estilos .tab-button:hover y .tab-button.active seguirán funcionando perfectamente */
.tab-button:hover {
    background-color: var(--secondary-color);
}
.tab-button.active {
    background-color: var(--primary-color);
    color: white;
    border-bottom: 3px solid var(--primary-color);
}
.tab-content {
    display: none;
    padding: 20px 0;
    animation: fadeEffect 1s; /* Animación de aparición */
}
.tab-content.active {
    display: block;
}
@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

/*      ESTO  es solamante para el LOGIN
		El resto de los estilos .tab-button:hover y .tab-button.active seguirán funcionando perfectamente */

.login-container {
	max-width: 400px;
	margin: 40px auto;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.login-container h2 {
	text-align: center;
	color: var(--primary-color);
}
.form-group {
	margin-bottom: 15px;
}
.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}
.form-group input {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box; /* Importante para que el padding no afecte el ancho */
}
.login-button {
	width: 100%;
	padding: 12px;
	background-color: var(--primary-color);
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.3s;
}
.login-button:hover {
	background-color: #005a9e;
}
#resultado {
	margin-top: 30px;
	text-align: center;
	display: none; /* Oculto por defecto */
}
#resultado h3 {
	color: var(--primary-color);
}
#qrcode {
	margin: 20px auto;
	padding: 20px;
	border: 1px solid #ddd;
	display: inline-block;
}

/* --- ESTILOS PARA EL FORMULARIO DE CONSULTAS --- */
.consulta-form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.consulta-form-container .form-group {
    margin-bottom: 15px;
}

.consulta-form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.consulta-form-container input[type="text"],
.consulta-form-container input[type="email"],
.consulta-form-container textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Importante para que el padding no afecte el ancho total */
    font-size: 16px;
}

.consulta-form-container textarea {
    resize: vertical; /* Permite al usuario redimensionar verticalmente */
}

.consulta-button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #007BFF; /* Un color azul que combina con muchos temas */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.consulta-button:hover {
    background-color: #0056b3;
}

.respuesta-formulario {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.respuesta-formulario.exito {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.respuesta-formulario.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
