/* --- COLORES CORPORATIVOS --- */
:root {
	--primary-green: #43a047;
	--dark-green: #2e7d32;
	--accent-blue: #1565C0;
	--text-gray: #333;
	--light-gray: #f8f9fa;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	font-family: 'Roboto', sans-serif;
	color: var(--text-gray);
	overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar {
	background-color: rgba(255,255,255,0);
	box-shadow: none;
	transition: background-color 0.4s, box-shadow 0.4s;
}
.navbar.scrolled {
	background-color: white;
	box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}
/* logo & links transparentes en hero */
.navbar:not(.scrolled) .nav-link,
.navbar:not(.scrolled) .navbar-brand {
	color: white !important;
}
.navbar:not(.scrolled) .btn-outline-lidetec {
	border-color: rgba(255,255,255,0.7);
	color: white;
}
.navbar-brand img { max-height: 48px; width: auto; }
.nav-link {
	color: var(--text-gray) !important;
	font-weight: 500;
	transition: color 0.3s;
	position: relative;
}
.nav-link::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 50%;
	right: 50%;
	height: 2px;
	background: var(--primary-green);
	transition: left 0.3s, right 0.3s;
}
.nav-link:hover::after,
.nav-link.active-section::after { left: 0; right: 0; }
.nav-link:hover { color: var(--primary-green) !important; }
.nav-link.active-section { color: var(--primary-green) !important; }

.btn-outline-lidetec {
	border: 1px solid rgba(22,122,58,.35);
	color: var(--dark-green);
	border-radius: 14px;
	padding: 8px 14px;
	transition: all 0.3s;
}
.btn-outline-lidetec:hover { background: var(--primary-green); color: white; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero-section {
	background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(20,60,20,0.55) 100%),
	            url('../img/lidetecbanner.jpg');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	height: 100vh;
	display: flex;
	align-items: center;
	color: white;
	text-align: center;
	position: relative;
	overflow: hidden;
}
/* partícula decorativa */
.hero-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 70% 50%, rgba(67,160,71,0.18) 0%, transparent 60%);
	pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	text-transform: uppercase;
	margin-bottom: 20px;
	opacity: 0;
	transform: translateY(30px);
	animation: heroReveal 0.9s 0.3s ease forwards;
	line-height: 1.15;
}
.hero-subtitle {
	font-size: 1.2rem;
	margin-bottom: 36px;
	opacity: 0;
	animation: heroReveal 0.9s 0.8s ease forwards;
}
.hero-btns {
	opacity: 0;
	animation: heroReveal 0.9s 1.2s ease forwards;
}
@keyframes heroReveal {
	to { opacity: 1; transform: translateY(0); }
}
.btn-custom {
	background-color: var(--primary-green);
	color: white;
	padding: 12px 30px;
	border: none;
	border-radius: 6px;
	transition: all 0.3s;
	font-weight: bold;
	position: relative;
	overflow: hidden;
}
.btn-custom::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(255,255,255,0.15);
	opacity: 0;
	transition: opacity 0.3s;
}
.btn-custom:hover::after { opacity: 1; }
.btn-custom:hover { background-color: var(--dark-green); transform: translateY(-2px); color: white; box-shadow: 0 6px 20px rgba(46,125,50,0.4); }

/* ─── SEPARADOR diagonal entre secciones ─────────────────── */
.hero-section + section { position: relative; }

/* ─── SECCIONES GENERALES ────────────────────────────────── */
.section-padding { padding: 80px 0; }
.section-title {
	text-align: center;
	margin-bottom: 50px;
	color: var(--dark-green);
	position: relative;
}
.section-title::after {
	content: '';
	display: block;
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, var(--primary-green), var(--accent-blue));
	margin: 15px auto;
	border-radius: 2px;
	transition: width 0.6s ease;
}
.section-title.in-view::after { width: 100px; }

/* ─── ANIMACIONES SCROLL ─────────────────────────────────── */
.fade-up {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.in-view {
	opacity: 1;
	transform: translateY(0);
}
/* Delay escalonado en hijos de una fila */
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ─── NOSOTROS ────────────────────────────────────────────── */
#nosotros img.img-fluid {
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0,0,0,0.15);
	transition: transform 0.5s ease, box-shadow 0.5s ease;
}
#nosotros img.img-fluid:hover {
	transform: scale(1.02);
	box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* ─── TARJETAS MISIÓN/VISIÓN ─────────────────────────────── */
.card-mv {
	border: none;
	box-shadow: 0 5px 20px rgba(0,0,0,0.07);
	transition: transform 0.35s, box-shadow 0.35s;
	height: 100%;
	border-top: 4px solid var(--primary-green);
	border-radius: 12px;
}
.card-mv:hover {
	transform: translateY(-8px);
	box-shadow: 0 18px 40px rgba(46,125,50,0.15);
}
.icon-mv {
	font-size: 3rem;
	color: var(--primary-green);
	margin-bottom: 20px;
}

/* ─── INSTALACIONES ───────────────────────────────────────── */
#instalaciones { position: relative; }

/* ─── SERVICIOS ───────────────────────────────────────────── */
.bg-light-green { background-color: #e8f5e9; }

.service-col-card {
	background: white;
	border-radius: 14px;
	padding: 28px;
	box-shadow: 0 6px 24px rgba(0,0,0,0.08);
	border-top: 4px solid var(--primary-green);
	height: 100%;
	transition: box-shadow 0.3s, transform 0.3s;
}
.service-col-card:hover {
	box-shadow: 0 12px 36px rgba(46,125,50,0.14);
	transform: translateY(-4px);
}
.service-col-title { color: var(--dark-green); margin-bottom: 20px; font-size: 1.1rem; }
.accordion-button:not(.collapsed) {
	background-color: #e8f5e9;
	color: var(--dark-green);
	box-shadow: none;
}
.accordion-button:focus { box-shadow: none; }
.service-list { padding-left: 0; list-style: none; margin-bottom: 0; }
.service-list li {
	padding: 8px 0 8px 18px;
	border-bottom: 1px solid #f0f0f0;
	position: relative;
	font-size: 0.95rem;
	transition: background 0.2s, padding-left 0.2s;
}
.service-list li:hover { background: #f9fdf9; padding-left: 24px; }
.service-list li::before { content: '▸'; position: absolute; left: 0; color: var(--primary-green); }
.service-list li:last-child { border-bottom: none; }

/* ─── CONTADORES ─────────────────────────────────────────── */
.counters-band {
	background: linear-gradient(135deg, #1b3a1f 0%, #2e7d32 50%, #1b5e20 100%);
	border-radius: 16px;
	padding: 48px 24px;
	box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.counter-card {
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.15);
	border-radius: 14px;
	padding: 28px 16px;
	transition: transform 0.3s, background 0.3s;
	color: white;
	backdrop-filter: blur(4px);
}
.counter-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.14); }
.counter-pending { opacity: 0.5; cursor: default; }
.counter-pending:hover { transform: none !important; }
.counter-number {
	font-size: 3rem;
	font-weight: 800;
	color: #a5d6a7;
	font-family: 'Montserrat', sans-serif;
	line-height: 1;
	text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.counter-label {
	font-size: 0.85rem;
	color: rgba(255,255,255,0.85);
	margin-top: 8px;
	font-weight: 500;
}
.counters-band small { color: rgba(255,255,255,0.5); }

/* ─── EMPRESAS ───────────────────────────────────────────── */
.company-card {
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
	height: 100%;
	padding: 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
}
.company-card:hover {
	box-shadow: 0 8px 24px rgba(46,125,50,0.14);
	transform: translateY(-4px);
	border-color: var(--primary-green);
}
/* Área de logo fija para alinear todas las tarjetas */
.company-logo-wrap {
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.company-logo { max-height: 60px; max-width: 100%; object-fit: contain; }
.company-text-logo {
	font-weight: 800;
	font-size: 1.1rem;
	color: var(--dark-green);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
.company-card small {
	min-height: 2.2em;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

/* ─── SIGNATARIO ─────────────────────────────────────────── */
.signatario-section {
	background: linear-gradient(135deg, #f1f8f1, #e8f5e9);
	border-radius: 16px;
	padding: 40px 20px;
	box-shadow: inset 0 2px 8px rgba(0,0,0,0.04);
}
.signatario-photo-frame {
	width: 160px; height: 160px;
	border: 3px dashed var(--primary-green);
	border-radius: 50%;
	margin: 0 auto 12px;
	display: flex; align-items: center; justify-content: center;
	cursor: pointer; position: relative; overflow: hidden;
	transition: border-color 0.3s, transform 0.3s;
}
.signatario-photo-frame:hover { border-color: var(--dark-green); transform: scale(1.05); }
.signatario-overlay {
	position: absolute; bottom: 0; left: 0; right: 0;
	background: rgba(46,125,50,0.85); color: white;
	font-size: 0.8rem; text-align: center; padding: 6px;
	transform: translateY(100%); transition: transform 0.3s;
}
.signatario-photo-frame:hover .signatario-overlay { transform: translateY(0); }
.signatario-photo-frame-modal {
	width: 160px; height: 160px;
	border: 3px solid #e0e0e0; border-radius: 50%;
	margin: 0 auto;
	display: flex; align-items: center; justify-content: center;
}

/* ─── CERTIFICACIONES ────────────────────────────────────── */
.cert-badge {
	text-align: center; padding: 32px;
	border: 2px solid #e8e8e8; border-radius: 14px;
	margin-bottom: 20px;
	transition: box-shadow 0.35s, transform 0.35s, border-color 0.35s;
}
.cert-clickable { cursor: pointer; }
.cert-clickable:hover {
	box-shadow: 0 10px 30px rgba(46,125,50,0.15);
	transform: translateY(-5px);
	border-color: var(--primary-green);
}
.cert-logo {
	height: 90px;
	width: auto;
	object-fit: contain;
	display: block;
	margin: 0 auto;
}
/* Certificados: igual altura, contenido centrado */
.cert-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
}
.cert-badge .cert-logo-wrap {
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}
.cert-number {
	font-family: monospace; color: var(--text-gray);
	background: #eee; padding: 5px 10px;
	border-radius: 4px; display: inline-block;
}
/* Documentos: igual altura */
.doc-card {
	background: white; border: 2px solid #e8e8e8;
	border-radius: 12px; padding: 22px; text-align: center;
	cursor: pointer; transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
	display: flex; flex-direction: column;
	align-items: center; justify-content: center;
	height: 100%;
}
.doc-card:hover {
	box-shadow: 0 8px 24px rgba(46,125,50,0.13);
	transform: translateY(-4px);
	border-color: var(--primary-green);
}
.doc-card i { transition: transform 0.3s; }
.doc-card:hover i { transform: scale(1.2); }

/* ─── CONTACTO ───────────────────────────────────────────── */
.contact-info-item {
	margin-bottom: 20px; display: flex; align-items: flex-start;
}
.contact-icon {
	min-width: 50px; height: 50px;
	background-color: var(--primary-green); color: white;
	border-radius: 50%;
	display: flex; justify-content: center; align-items: center;
	margin-right: 15px; font-size: 1.2rem;
	transition: transform 0.3s, box-shadow 0.3s;
}
.contact-info-item:hover .contact-icon {
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(67,160,71,0.4);
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
	background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
	color: white; padding: 30px 0; text-align: center;
}
.powered-by {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	opacity: 0.55;
	transition: opacity 0.3s;
}
.powered-by:hover { opacity: 0.9; }
.powered-by span {
	font-size: 0.78rem;
	color: rgba(255,255,255,0.7);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.xamto-logo {
	height: 22px;
	width: auto;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

/* ─── SCROLL TO TOP ──────────────────────────────────────── */
#scrollTopBtn {
	position: fixed; bottom: 30px; right: 30px;
	width: 48px; height: 48px;
	border-radius: 50%;
	background: var(--primary-green); color: white;
	border: none;
	box-shadow: 0 4px 16px rgba(46,125,50,0.4);
	font-size: 1.2rem; cursor: pointer;
	display: none; align-items: center; justify-content: center;
	z-index: 9999;
	transition: background 0.3s, transform 0.25s, box-shadow 0.3s;
}
#scrollTopBtn:hover {
	background: var(--dark-green);
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(46,125,50,0.5);
}
#scrollTopBtn.visible { display: flex; }

/* ─── MODAL mejorado ─────────────────────────────────────── */
.modal-content { border: none; border-radius: 16px; overflow: hidden; }
.modal-header { border-bottom: none; }
