/* INDEX NUEVO - ESTILOS COMPLETOS Y LIMPIOS */

:root {
	--blue-primary: #009EE2;
	--dark-text: #333333;
	--light-bg: #f8f9fa;
	--white: #ffffff;
	--border-color: #e0e0e0;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html, body {
	width: 100%;
	overflow-x: hidden;
	margin: 0;
	padding: 0;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color: var(--dark-text);
	line-height: 1.6;
	margin: 0;
	padding: 0;
}

/* ===== HEADER Y NAVEGACIÓN ===== */
.header-principal {
	background: var(--white);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	position: relative;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1001;
	width: 100%;
	margin: 0;
	padding: 0;
	line-height: 1;
}

.header-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 30px;
	max-width: 100%;
	margin: 0;
}

.logo-container {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	margin-right: 40px;
}

.logo {
	max-width: 250px;
	height: auto;
	width: auto;
	display: block;
}

/* Navegación Desktop */
.nav-desktop {
	display: none;
	flex: 1 1 auto;
}

.menu-principal {
	list-style: none;
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 0;
	padding: 0;
	flex-wrap: nowrap;
}

.menu-principal > li > a {
	color: var(--dark-text);
	font-weight: 600;
	font-size: 12px;
	padding: 12px 15px;
	text-decoration: none;
	display: block;
	white-space: nowrap;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.menu-principal > li:hover > a {
	color: var(--blue-primary);
	background: rgba(0, 158, 226, 0.08);
	border-radius: 4px;
}

.menu-item-dropdown {
	position: relative;
}

.submenu {
	position: fixed;
	background: var(--white);
	list-style: none;
	min-width: 240px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	border-radius: 0 0 8px 8px;
	border-top: 3px solid var(--blue-primary);
	padding: 8px 0;
	display: none;
	z-index: 10001;
}

.menu-principal li:hover > .submenu {
	display: block;
}

.submenu li a {
	padding: 10px 20px;
	font-size: 13px;
	color: #555;
	font-weight: 500;
	display: block;
	text-decoration: none;
	transition: all 0.2s ease;
	border-left: 3px solid transparent;
}

.submenu li a:hover {
	background: var(--light-bg);
	color: var(--blue-primary);
	border-left-color: var(--blue-primary);
	padding-left: 25px;
}

.submenu-nivel2 {
	position: fixed;
	background: var(--white);
	list-style: none;
	min-width: 220px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	border-left: 3px solid var(--blue-primary);
	padding: 8px 0;
	display: none;
	z-index: 10002;
}

.submenu li:hover > .submenu-nivel2 {
	display: block;
}

/* Botón menú móvil */
.menu-toggle-mobile {
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	z-index: 1001;
}

.menu-toggle-mobile span {
	width: 28px;
	height: 3px;
	background: var(--dark-text);
	border-radius: 2px;
	transition: all 0.3s ease;
}

.menu-toggle-mobile.active span:nth-child(1) {
	transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle-mobile.active span:nth-child(2) {
	opacity: 0;
}

.menu-toggle-mobile.active span:nth-child(3) {
	transform: rotate(-45deg) translate(7px, -7px);
}

/* Navegación Mobile */
.nav-mobile {
	display: none;
	background: var(--white);
	border-top: 1px solid var(--border-color);
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease;
	position: static;
	width: 100%;
}

.nav-mobile.active {
	max-height: 600px;
	overflow-y: auto;
}

.menu-mobile {
	list-style: none;
	padding: 0;
	margin: 0;
}

.menu-mobile > li {
	border-bottom: 1px solid var(--border-color);
}

.menu-mobile > li > a,
.toggle-submenu {
	display: block;
	padding: 14px 20px;
	color: var(--dark-text);
	text-decoration: none;
	font-weight: 500;
	font-size: 14px;
	cursor: pointer;
	background: none;
	border: none;
	width: 100%;
	text-align: left;
	transition: all 0.2s ease;
}

.menu-mobile > li > a:hover,
.toggle-submenu:hover {
	background: var(--light-bg);
	color: var(--blue-primary);
	padding-left: 25px;
}

.submenu-mobile {
	list-style: none;
	background: #f5f5f5;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.has-submenu.open > .submenu-mobile {
	max-height: 1000px;
}

.submenu-mobile li {
	border-bottom: 1px solid #eee;
}

.submenu-mobile li a {
	display: block;
	padding: 12px 20px 12px 40px;
	color: #666;
	text-decoration: none;
	font-size: 13px;
	transition: all 0.2s ease;
}

.submenu-mobile li a:hover {
	background: white;
	color: var(--blue-primary);
}

/* ===== SLIDER ===== */
.slider-container {
	position: relative;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	max-width: 100%;
	overflow: hidden;
	margin: 0;
	padding: 0;
	z-index: 0;
}

.slider-wrapper {
	width: 100%;
	height: 100%;
	position: relative;
	display: flex;
}

.slide {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	animation: fadeInSlide 0.5s ease-in-out;
	display: none;
}

@keyframes fadeInSlide {
	from { opacity: 0; }
	to { opacity: 1; }
}

.slider-prev, .slider-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.5);
	color: var(--white);
	border: none;
	font-size: 48px;
	padding: 20px 25px;
	cursor: pointer;
	z-index: 50;
	border-radius: 4px;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
}

.slider-prev:hover, .slider-next:hover {
	background: rgba(0, 0, 0, 0.8);
	transform: translateY(-50%) scale(1.1);
}

/* Efectos de transición aleatorios */
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes slideInLeft {
	from { transform: translateX(-100%); opacity: 0; }
	to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
	from { transform: translateX(100%); opacity: 0; }
	to { transform: translateX(0); opacity: 1; }
}

@keyframes zoomIn {
	from { transform: scale(0.8); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

@keyframes slideInTop {
	from { transform: translateY(-100%); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

@keyframes rotateIn {
	from { transform: rotate(-10deg) scale(0.8); opacity: 0; }
	to { transform: rotate(0deg) scale(1); opacity: 1; }
}

.slider-prev { left: 25px; }
.slider-next { right: 25px; }

/* ===== SECCIÓN VENCIMIENTOS ===== */
.vencimientos-section {
	padding: 0 !important;
	overflow: hidden;
	border: none;
	position: relative;
	z-index: 10;
	margin: 0 !important;
	line-height: 1;
}

#marquee-vencimientos-container {
	white-space: nowrap;
	overflow: hidden;
	position: relative;
	width: 100%;
	margin: 0 !important;
	padding: 12px 0 !important;
}

#marquee-vencimientos-text {
	display: inline-block;
	padding-left: 100%;
	animation: marquee 20s linear infinite;
	font-weight: 500;
	font-size: 16px;
	margin: 0 !important;
	line-height: 1.4;
	padding-right: 20px;
}

@keyframes marquee {
	0% { transform: translate(0, 0); }
	100% { transform: translate(-100%, 0); }
}

/* ===== SERVICIOS GRID ===== */
.servicios-container {
	padding: 40px 20px;
	background: var(--light-bg);
	margin-top: -60px;
}

.servicios-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 25px;
	max-width: 1200px;
	margin: 0 auto;
}

.servicio-card {
	background: var(--white);
	border-radius: 8px;
	padding: 25px 20px;
	text-align: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	border: 1px solid transparent;
}

.servicio-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	border-color: var(--blue-primary);
}

.servicio-card img {
	max-width: 100px;
	height: auto;
	margin-bottom: 15px;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.servicio-card h3 {
	font-size: 16px;
	margin-bottom: 15px;
	color: var(--dark-text);
	font-weight: 600;
}

.btn-servicio {
	display: inline-block;
	background: var(--blue-primary);
	color: var(--white);
	padding: 10px 20px;
	border-radius: 4px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.2s ease;
}

.btn-servicio:hover {
	background: #0084b8;
	transform: scale(1.05);
}

/* ===== FOOTER ===== */
.footer-principal {
	background: #2c3e50;
	color: var(--white);
	padding: 40px 20px 20px;
}

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

.footer-column {
	text-align: left;
}

.footer-logo {
	max-width: 200px;
	height: auto;
	display: block;
	margin-bottom: 15px;
}

.footer-column h4 {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.footer-column p {
	font-size: 13px;
	line-height: 1.8;
	margin: 5px 0;
	color: rgba(255, 255, 255, 0.8);
}

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

.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background: rgba(255, 255, 255, 0.2);
	color: var(--white);
	border-radius: 50%;
	text-decoration: none;
	font-size: 16px;
	transition: all 0.2s ease;
}

.social-links a:hover {
	background: var(--blue-primary);
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 20px;
	text-align: center;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
}

/* ===== MEDIA QUERIES - TABLET (768px) ===== */
@media (min-width: 768px) {
	.header-container {
		padding: 15px 40px;
	}

	.logo {
		max-width: 220px;
	}

	.nav-desktop {
		display: flex;
	}

	.menu-toggle-mobile {
		display: none;
	}

	.nav-mobile {
		display: none !important;
	}

	.slider-container {
		height: 500px;
	}

	.slider-prev, .slider-next {
		font-size: 32px;
		padding: 12px 18px;
		left: 25px;
		right: auto;
	}

	.slider-next {
		left: auto;
		right: 25px;
	}

	.servicios-grid {
		grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
		gap: 30px;
		padding: 50px 40px;
	}

	.servicio-card h3 {
		font-size: 15px;
	}
}

/* ===== MEDIA QUERIES - DESKTOP (1024px) ===== */
@media (min-width: 1024px) {
	.header-container {
		padding: 15px 60px;
	}

	.logo {
		max-width: 250px;
	}

	.menu-principal > li > a {
		font-size: 13px;
		padding: 14px 16px;
	}

	.slider-container {
		height: 550px;
	}

	.servicios-container {
		padding: 60px 40px;
	}

	.servicios-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 35px;
	}

	.servicio-card {
		padding: 30px 25px;
	}

	.servicio-card img {
		max-width: 120px;
	}

	.footer-container {
		gap: 40px;
	}

	.footer-principal {
		padding: 50px 40px 25px;
	}
}

/* ===== MEDIA QUERIES - MOBILE (<768px) ===== */
@media (max-width: 767px) {
	.nav-mobile {
		display: block;
	}

	.header-container {
		padding: 12px 15px;
	}

	.logo {
		max-width: 160px;
	}

	.slider-container {
		height: 220px;
	}

	.slider-prev, .slider-next {
		font-size: 18px;
		padding: 5px 8px;
	}

	.vencimientos-section {
		padding: 10px 15px;
		font-size: 12px;
	}

	#marquee-vencimientos-text {
		animation: marquee 18s linear infinite;
	}

	.servicios-container {
		padding: 20px 12px;
	}

	.servicios-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.servicio-card {
		padding: 12px 10px;
		border-radius: 6px;
	}

	.servicio-card img {
		max-width: 60px;
		margin-bottom: 8px;
	}

	.servicio-card h3 {
		font-size: 13px;
		margin-bottom: 8px;
		line-height: 1.3;
	}

	.btn-servicio {
		font-size: 11px;
		padding: 6px 12px;
	}

	.footer-container {
		grid-template-columns: 1fr;
		gap: 15px;
		margin-bottom: 15px;
	}

	.footer-column {
		text-align: center;
	}

	.footer-column h4 {
		font-size: 13px;
		margin-bottom: 8px;
	}

	.footer-column p {
		font-size: 12px;
	}

	.footer-logo {
		max-width: 150px;
	}

	.social-links {
		justify-content: center;
	}

	.social-links a {
		width: 34px;
		height: 34px;
		font-size: 14px;
	}

	.footer-bottom {
		font-size: 11px;
		padding-top: 15px;
	}
}

/* ===== UTILITARIOS ===== */
img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--blue-primary);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* Asegurar que todo se ajuste sin bordes cortados */
body, html {
	margin: 0;
	padding: 0;
	width: 100%;
	overflow-x: hidden;
}

main, section, header, footer, .footer-principal {
	max-width: 100%;
	width: 100%;
	overflow-x: hidden;
	box-sizing: border-box;
}

/* Scroll suave */
html {
	scroll-behavior: smooth;
}

/* Prevenir scroll horizontal en tablets y móviles */
@media (max-width: 1024px) {
	body, html {
		overflow-x: hidden;
	}

	* {
		max-width: 100%;
	}
}
