﻿/* Grid equipos ventas */
.equipos-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	justify-items: stretch;
	align-items: stretch;
	margin-top: 0;
}
.equipo-card-wrap {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	position: relative;
	overflow: hidden;
	border-radius: 12px;
}

/* Sale badge - rotated diagonal in top-right corner */
.sale-badge {
	position: absolute;
	top: 14px;
	right: -22px;
	width: 90px;
	padding: 5px 0;
	background: #ff4444;
	color: #fff;
	text-align: center;
	font-weight: 700;
	font-size: 0.75rem;
	transform: rotate(45deg);
	z-index: 10;
	box-shadow: 0 2px 8px rgba(0,0,0,0.3);
	letter-spacing: 0.5px;
}
.no-stock-badge {
	position: absolute;
	top: 14px;
	right: -22px;
	width: 90px;
	padding: 5px 0;
	background: #666;
	color: #fff;
	text-align: center;
	font-weight: 700;
	font-size: 0.75rem;
	transform: rotate(45deg);
	z-index: 10;
	box-shadow: 0 2px 8px rgba(0,0,0,0.3);
	letter-spacing: 0.5px;
}

/* Grid breakpoints - clean cascade, no conflicts */
@media (max-width: 1280px) {
	.equipos-grid { grid-template-columns: repeat(2, 1fr); }
	.card.h-100 { min-height: auto; }
}
@media (max-width: 900px) {
	.equipos-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
	.equipos-grid { grid-template-columns: 1fr !important; gap: 12px; }
	aside.col-md-3 { display: none !important; }
	.col-md-9 { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }
	.card.h-100 { min-height: auto !important; }
}

@media (max-width: 480px) {
	.equipos-grid { grid-template-columns: 1fr !important; gap: 10px; }
	.card.h-100 { 
		min-height: auto !important; 
		padding: 10px;
	}
	.card .card-body {
		padding: 6px 8px 10px;
	}
	.card .card-title {
		font-size: 0.85rem;
		margin-bottom: 4px;
	}
	.card .card-text {
		font-size: 0.8rem;
		margin-bottom: 6px;
	}
	.btn-primary {
		font-size: 0.8rem;
		padding: 7px 12px;
	}
}

/* Search section responsive adjustments */
.search-section {
	overflow-x: hidden;
	width: 100%;
	box-sizing: border-box;
}

.search-section form {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.search-section form input[type="text"] {
	flex: 1;
	min-width: 200px;
	padding: 12px 14px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 1rem;
	box-sizing: border-box;
}

.search-section form button,
.search-section form a {
	padding: 12px 18px;
	border: none;
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.95rem;
	white-space: nowrap;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.search-section form button {
	background: #00b7ef;
	color: #fff;
}

.search-section form a {
	background: #ccc;
	color: #333;
	text-decoration: none;
}

@media (max-width: 480px) {
	.search-section form {
		flex-direction: column;
	}

	.search-section form input[type="text"],
	.search-section form button,
	.search-section form a {
		width: 100%;
		min-width: auto;
	}

	.search-section h3 {
		font-size: 1.2rem;
	}
}

/* Sticky categories sidebar */
aside.col-md-3 {
	position: -webkit-sticky;
	position: sticky;
	top: 20px;
	align-self: flex-start;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
}
aside .categories-menu {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0;
}
.categories-menu .category-link {
	display: block;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 6px;
	color: #003355;
	text-decoration: none;
	font-weight: 600;
	margin: 0;
	transition: background 0.15s, color 0.15s;
}
.categories-menu .category-link:hover { background: #e0eaf4; }
.categories-menu .category-link.active { background: #003355; color: #fff; }

/* Primera opción (Todas) destacada */
.categories-menu .category-link:first-child {
	background: #063a53;
	color: #fff;
	border-radius: 6px;
	padding: 14px 18px;
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: 6px;
}

/* Product card look to match example */
.card.h-100 { 
	background: #fff; 
	border-radius: 12px; 
	box-shadow: 0 6px 24px rgba(0,0,0,0.06); 
	border: none; 
	padding: 14px; 
	overflow: visible;
	display: flex;
	flex-direction: column;
	min-height: auto;
}
.equipo-card-wrap .card {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.card-img-top { 
	width: 100%; 
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: contain; 
	display: block; 
	margin: 0 auto 12px;
	flex-shrink: 0;
	text-align: center;
	background: #f9f9f9;
	border-radius: 8px;
	padding: 6px;
	box-sizing: border-box;
	cursor: pointer;
	transition: opacity 0.2s;
}
.card-img-top:hover {
	opacity: 0.85;
}
.card .card-body { 
	padding: 8px 10px 14px; 
	text-align: left;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}
.card .card-title { 
	font-size: 0.9rem; 
	font-weight: 700; 
	color: #003355; 
	margin-bottom: 6px;
	line-height: 1.3;
	word-break: break-word;
	overflow-wrap: break-word;
}
.card .card-text { 
	color: #6b7280; 
	font-size: 0.85rem; 
	margin-bottom: 10px;
	flex-grow: 1;
	word-break: break-word;
	overflow-wrap: break-word;
}

/* Primary button color like example */
.btn-primary { background: #00b7ef; border-color: #00b7ef; color: #00283a; border-radius:8px; padding:8px 14px; }
.btn-primary:hover, .btn-primary:focus { background:#00a3d9; border-color:#00a3d9; color:#fff }

/* Layout tweaks: keep aside fixed width and content aligned */
aside.col-md-3 { max-width: 230px; }
.equipos-grid { align-items: stretch; }

/* Adjust pagination look */
.pagination .page-link { color:#003355 }
.pagination .page-item.active .page-link { background:#003355;color:#fff;border-color:#003355 }

/* Ensure the left column does not collapse on short lists */
@media(min-width: 768px){
	aside.col-md-3 { display:flex; }
	aside.col-md-3 > .categories-menu { width:100%; }
}

/* Align products row and main content to top */
main.container { width: 100%; max-width: 100%; margin: 0 auto !important; padding: 30px 20px; box-sizing: border-box; }
main.container.my-5 { margin-top: 0 !important; padding-top: 30px; }
.row { align-items: flex-start; margin: 0; padding: 0; }
aside.col-md-3 { margin-bottom: 0 !important; padding: 0 18px 0 0 !important; margin-top: 0; margin-left: 0; }
aside.col-12 { margin-bottom: 0 !important; margin-top: 0; }
.col-md-9 { padding-left: 0 !important; margin-top: 0; }
.equipos-grid { margin-top: 0; align-items: stretch; }

@media (max-width: 600px) {
	main.container {
		padding: 20px 12px;
	}
	.col-md-9 {
		padding: 0 !important;
	}
	.search-section {
		padding: 20px 0 !important;
	}
}
/* --- GADGETS PORQUE ELEGIRNOS --- */
.gadget-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.2rem;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}


.gadget-card {
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 2px 16px rgba(0,0,0,0.07);
	padding: 2.4rem 1.6rem 1.6rem 1.6rem;
	width: 100%;
	min-height: 380px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	transition: transform 0.15s, box-shadow 0.15s;
	position: relative;
}
.gadget-card .btn {
	background: #00b7ef !important;
	color: #00283a !important;
}
.gadget-card .btn:hover {
	background: #00a3d9 !important;
	color: #fff !important;
}
/* Maintain 600x400 (3:2) image aspect ratio in gadget cards */
.gadget-card img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 12px;
}
.gadget-card:hover {
	transform: translateY(-6px) scale(1.03);
	box-shadow: 0 6px 24px rgba(0,0,0,0.13);
}
.gadget-num {
	font-size: 2.2rem;
	font-weight: 800;
	color: #0a3c5e;
	margin-bottom: 0.7rem;
}
.gadget-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #003355;
	margin-bottom: 0.6rem;
	text-align: center;
}
.gadget-desc {
	font-size: 1.05rem;
	color: #444;
	text-align: center;
	line-height: 1.5;
	flex-grow: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
@media (max-width: 991px) {
	.gadget-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 700px) {
	.gadget-grid { grid-template-columns: 1fr !important; gap: 0.8rem; grid-auto-rows: auto; }
	.gadget-card { min-height: auto; padding: 1rem 0.6rem; font-size: 0.85rem; min-width: 0; overflow: hidden; word-break: break-word; overflow-wrap: break-word; }
	.gadget-card img { aspect-ratio: 1 / 1; object-fit: cover; }
	.gadget-title { font-size: 0.95rem; word-break: break-word; overflow-wrap: break-word; hyphens: auto; }
	.gadget-desc { font-size: 0.85rem; word-break: break-word; overflow-wrap: break-word; }
	.gadget-card .btn { font-size: 0.8rem; padding: 6px 12px; }
}
/* Carrusel de marcas (independiente del de clientes) */
.brands-carousel-section {
	padding: 36px 0 24px;
	text-align: center;
	width: 80%;
	max-width: none;
	min-width: 280px;
	margin: 0 auto;
	box-sizing: border-box;
	overflow: visible;
}
.brands-carousel-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: unset;
	color: #003355;
	text-align: center;
}
.brands-carousel {
	overflow: hidden;
	width: 100%;
	margin: 0;
	box-sizing: border-box;
}
.brands-track {
	display: flex;
	gap: 40px;
	width: max-content;
	animation: brands-scroll 18s linear infinite;
	will-change: transform;
}
.brands-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 140px;
	flex-shrink: 0;
	opacity: 0.85;
	transition: opacity 0.2s;
}
.brands-item img {
	width: 100px;
	height: 100px;
	object-fit: contain;
}
.brands-item:hover {
	opacity: 1;
}
@keyframes brands-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}
@media (max-width: 700px) {
	.cards {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.card {
		padding: 20px 12px;
		min-height: 200px;
	}
	.card img {
		width: 80px;
		height: 80px;
		margin-bottom: 10px;
	}
}
/* Carrusel de clientes */
.clientes-carousel-section {
	background: var(--bg);
	padding: 36px 0 24px;
	text-align: center;
	width: 80%;
	max-width: none;
	min-width: 280px;
	margin: 5em auto;
	box-sizing: border-box;
	overflow: visible;
}

/* (categories-menu styles defined above) */
.clientes-carousel-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 18px;
	color: #003355;
	text-align: center;
}
.clientes-carousel {
	overflow: hidden;
	width: 100%;
	margin: 0;
	box-sizing: border-box;
}
.carousel-track {
	display: flex;
	gap: 40px;
	width: max-content;
	animation: clientes-scroll 30s linear infinite;
	will-change: transform;
}
.carousel-item {
	display: contents;
	flex-direction: column;
	align-items: center;
	min-width: 140px;
	flex-shrink: 0;
	opacity: 0.85;
	transition: opacity 0.2s;
}
.carousel-item img {
	width: 70px;
	height: 70px;
	object-fit: contain;
	border-radius: 50%;
	background: black;
	box-shadow: 0 2px 8px rgba(0,0,0,0.07);
	margin-bottom: 8px;
}
.carousel-item span {
	font-size: 1rem;
	color: #075e54;
}
.carousel-item:hover {
	opacity: 1;
}
@keyframes clientes-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}
.brand img {
	transition: transform 1.2s cubic-bezier(.33,1,.68,1), filter 0.7s;
	filter: drop-shadow(0 2px 12px rgba(0,0,0,0.13));
}
img#main-logo.logo-animate {
	animation: logoPop 1.5s cubic-bezier(.33,1,.68,1);
}
@keyframes logoPop {
	0% { transform: scale(0.85) rotate(-6deg); filter: brightness(0.8) blur(1.5px); opacity:0; }
	60% { transform: scale(1.08) rotate(3deg); filter: brightness(1.1) blur(0); opacity:1; }
	100% { transform: scale(1) rotate(0); filter: none; opacity:1; }
}

/* Title pop animation for site-width sections (e.g., 'Nuestras Soluciones') */
.section.site-width .section-title{
	opacity: 0;
	transform: translateY(12px) scale(.98);
}
.section.site-width .section-title.title-animate{
	opacity: 1;
	transform: translateY(0) scale(1);
	animation: titlePop 820ms cubic-bezier(.33,1,.68,1);
	animation-fill-mode: both;
}
@keyframes titlePop {
	0% { transform: translateY(12px) scale(.98); opacity:0 }
 	60% { transform: translateY(-6px) scale(1.02); opacity:1 }
 	100% { transform: translateY(0) scale(1); opacity:1 }
}
@media (max-width: 700px) {
	.section.site-width .section-title {
		font-size: 1.8rem;
	}
}

.btn:hover, .btn:focus {
	background: #22d2ff;
	color: #003355;
	box-shadow: 0 4px 18px rgba(0,195,255,0.18);
	transform: scale(1.06);
	transition: all 0.18s cubic-bezier(.33,1,.68,1);
}
/* Botón flotante WhatsApp moderno */
.whatsapp-float {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 1000;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 18px 0 0;
	text-decoration: none;
	background: rgba(255,255,255,0.95);
	border-radius: 32px;
	box-shadow: 0 4px 24px rgba(37,211,102,0.18), 0 1.5px 8px rgba(0,0,0,0.10);
	transition: box-shadow 0.2s, background 0.2s, transform 0.2s;
	height: 56px;
}
.whatsapp-float:hover {
	background: #eafff3;
	box-shadow: 0 8px 32px rgba(37,211,102,0.28), 0 2px 12px rgba(0,0,0,0.13);
	transform: translateY(-2px) scale(1.04);
}
.wa-ico-bg {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #25D366;
	box-shadow: 0 2px 8px rgba(37,211,102,0.18);
	margin: 4px 0 4px 4px;
}
.wa-label {
	color: #075e54;
	font-weight: 700;
	font-size: 1.08rem;
	letter-spacing: 0.01em;
	padding-left: 6px;
	padding-right: 8px;
}
:root{ --bg:#f4f7fb; --card:#fff; --text:#1a2b3c; --muted:#5d6b7a; --primary:#0b5ed7; --accent:#00c3ff; }
*{box-sizing:border-box; font-family: 'Inter', system-ui, Segoe UI, Roboto, Arial, sans-serif;}
.html,body{margin:0;padding:0}
body{font-family:'Inter', system-ui, Segoe UI, Roboto, Arial, sans-serif;background:var(--bg);color:var(--text)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:12px;width:80%;max-width:1200px;min-width:280px;margin:0 auto;padding:8px 2vw;box-sizing:border-box}
.nav a{color:#fff;text-decoration:none;margin-left:14px}
.nav a.active{font-weight:700}
.hero{position:relative;background: url('../../uploads/fondo.png') center center/cover no-repeat; color:white; padding:12px 0 28px; overflow:hidden}
.hero::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.45);
	z-index: 1;
}
.hero > .nav, .hero-content {
	position: relative;
	z-index: 2;
}
.hero .brand{font-weight:800;font-size:1.1rem}
.hero-content{width:80%;max-width:1200px;min-width:280px;margin:10px auto 0;text-align:center;padding:0 2vw;box-sizing:border-box}
.hero h1{font-size:1.9rem;margin:0 0 8px}
.hero p{opacity:.9;margin:0 0 26px}
.btn{background:#00b7ef;color:#00283a;border:none;border-radius:8px;padding:12px 20px;cursor:pointer;text-decoration:none;display:inline-block;font-weight:700;position:relative;z-index:2}
.btn:hover{background:#00a3d9;color:#fff;}
.section{width:80%;max-width:1200px;min-width:280px;margin:24px auto;padding:0 2vw;box-sizing:border-box}
.section-title{text-align:center;margin:0 0 18px;position:relative;z-index:2;font-size:2.2rem;font-weight:700}
.lead{font-size:1.2rem;line-height:1.6;color:var(--text)}

/* Ensure site-width sections explicitly use 80% and neutralize Bootstrap row gutters inside them */
.section.site-width{
	width:80% !important;
	max-width:1100px !important;
	margin-left:auto !important;
	margin-right:auto !important;
	box-sizing:border-box !important;
}

/* Force smaller logo across site (overrides inline height) */
.nav .brand img{height:100px !important;max-height:100px !important}

/* Larger menu items */
.nav a, .nav .menu a, .nav .nav-link{font-size:16px;line-height:1;font-weight:600;padding:8px 10px;color:#fff}
.nav a:hover, .nav .menu a:hover, .nav .nav-link:hover{color:var(--accent)}

/* Desktop nav menu - flex layout */
.nav nav {
	display: flex;
	gap: 12px;
	align-items: center;
#	flex: 1;
}

/* Change menu link color when page is scrolled */
.nav.scrolled a, .nav.scrolled .nav-link{ color: var(--accent) !important }

@media (max-width:700px){
	.nav .brand img{height:72px !important;max-height:72px !important}
	.nav a, .nav .menu a, .nav .nav-link{font-size:16px;padding:8px 10px}
}

/* Force 80% width on desktop-like viewports across site */
@media (min-width: 700px) {
	.nav,
	.hero-content,
	.section,
	main.container,
	.brands-carousel-section,
	.clientes-carousel-section,
	.site-width {
		width: 80% !important;
		max-width: none !important;
		min-width: 0 !important;
		margin-left: auto !important;
		margin-right: auto !important;
		box-sizing: border-box !important;
		padding: 0 2vw !important;
	}
}
.section-title{text-align:center;margin:0 0 26px;font-size:2.2rem;font-weight:700}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.cards .col-12,
.cards .col-sm-6,
.cards .col-md-4 {
	width: auto !important;
	max-width: 100% !important;
	flex: 0 1 auto !important;
}
.card{padding:40px 28px; min-height:340px;}
.card img{width:100%;height:300px;object-fit:contain;margin-bottom:2px}
.card {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}
.card h3 {
	margin: 8px 0 6px;
}

/* Admin list item card style - applied to admin listing rows */
.admin-item-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 6px 20px rgba(0,0,0,0.06);
	padding: 14px;
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid #eef2f6;
}
.admin-item-card .admin-item-title{ font-weight:700; color:#003355; }
.admin-item-card .actions{ margin-left: auto; display:flex; gap:8px; }

/* Responsive adjustments for admin cards */
@media (max-width: 768px) {
	.admin-item-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	.admin-item-card img {
		width: 100%;
		max-width: 220px;
		height: auto;
		margin-bottom: 8px;
	}
	.admin-item-card .actions { width: 100%; justify-content: flex-end; }
	.card.h-100 { min-height: auto; }
	.equipos-grid { gap: 20px; }
}

@media (max-width: 480px) {
	.admin-item-card { padding: 10px; }
	.admin-item-card .admin-item-title{ font-size: 0.95rem; }
	.nav{padding:10px 4vw}
}

/* Mobile - force fluid widths and stacking for all small phones */
@media (max-width: 600px) {
	.nav{
		width:95% !important;
		max-width: none !important;
		padding:10px 4vw !important;
		flex-wrap: wrap;
		gap:8px;
	}
	.nav .brand img{ height:48px; }
	.hero-content, .section, .clientes-carousel-section, .brands-carousel-section, main.container {
		width:95% !important;
		max-width: none !important;
		margin: 20px auto !important;
		padding: 0 4vw !important;
	}
	.equipo-card-wrap { max-width: 100% !important; }
	.admin-item-card { width:100%; box-sizing:border-box; }
	.admin-item-card img { max-width:100%; height:auto; }
	.admin-item-card .actions { width:100%; justify-content:flex-end; }
	.card.h-100 { min-height: auto !important; }
}

/* Ensure .cards stack one-per-line on small screens */
@media (max-width: 700px) {
	.cards {
		display: grid !important;
		grid-template-columns: 1fr !important;
		gap: 16px !important;
	}
	.cards > .col-12,
	.cards > .col-sm-6,
	.cards > .col-md-4 {
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 100% !important;
	}
}

@media (max-width: 380px) {
	.hero h1 { font-size: 1.6rem; }
	.clientes-carousel .carousel-item img { width: 56px; height:56px; }
}
/* Tablet: 2 columns (only between 601px and 900px, not on mobile) */
@media (min-width: 601px) and (max-width: 900px) {
	.equipos-grid { grid-template-columns: repeat(2, 1fr) !important; }
	.equipo-card-wrap { max-width: 100% !important; }
	.card.h-100 { min-height: auto !important; }
}
.card p {
	color: var(--muted);
	font-size: .95rem;
}
.card .center {
	margin-top: auto;
}
.herramienta-img{width:120px;height:120px;object-fit:contain;margin-bottom:10px}
.card herramientas{width:200px;height:400px;object-fit:contain;margin-bottom:2px}
.card h3{margin:8px 0 6px}.card p{color:var(--muted);font-size:.95rem}

/* Fix accordion visibility fallback: ensure collapse panels are visible when opened */
.accordion-collapse.collapse {
	display: block; /* allow height animations but keep collapsed height 0 */
	height: 0;
	overflow: hidden;
}
.accordion-collapse.collapse.show {
	height: auto !important;
	overflow: visible !important;
}
.accordion-body{color:var(--text);}
.center{text-align:center;margin-top:20px}
.header-simple{background:#0b5ed7;color:#fff;padding:20px 0 30px}
.header-simple h1{text-align:center;margin:18px 0 10px}
.list{display:flex;flex-direction:column;gap:16px}
.item{
	background:var(--card);
	border-radius:12px;
	display:flex;
	gap:16px;
	padding:16px;
	align-items:stretch;
	box-shadow:0 6px 18px rgba(0,0,0,.06);
}
.item > img {
	width:80px;
	height:80px;
	object-fit:contain;
	margin-right:12px;
	align-self:flex-start;
}
.item > div {
	display:flex;
	flex-direction:column;
	flex:1;
}
.item .center {
	margin-top:auto;
}
.item .btn {
	background: #00b7ef !important;
	color: #00283a !important;
}
.item .btn:hover {
	background: #00a3d9 !important;
	color: #fff !important;
}
.item img{width:80px;height:80px;object-fit:contain}.item .muted{color:var(--muted);margin:4px 0}
.form form{background:var(--card);padding:18px;border-radius:12px;box-shadow:0 6px 18px rgba(0,0,0,.06)}
.form .grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.form input,.form textarea{width:100%;padding:12px;border:1px solid #d0d7e2;border-radius:8px}
.alert{padding:12px 14px;border-radius:8px;margin-bottom:14px}
.alert.success{background:#e7f6ee;color:#0a7d2a}.alert.error{background:#fdecea;color:#b00020}
.footer{
	color:#dbe7ff;
	background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('../../uploads/fondo.png') center center/cover no-repeat, #0b5ed7;
	text-align:center;
	padding:38px 0 80px;
	margin-top:40px;
	position:relative;
	min-height: auto;
}

/* Make footer content match hero layout */
.footer .footer-nav,
.footer > div,
.footer p {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2vw;
	box-sizing: border-box;
}
.footer .footer-nav{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; align-items:center; }
.footer .footer-nav a{ color: #eaf2ff; text-decoration:none; margin:6px; font-size:16px; font-weight:600; }
@media (max-width:700px){
	.footer .footer-nav a{font-size:14px; margin:4px;}
	.footer .footer-nav,
	.footer > div,
	.footer p { width: 95%; }
	.footer { padding:20px 4vw 40px; display:block !important; visibility:visible !important; overflow:visible !important; width:100% !important; max-width:none !important; box-sizing:border-box; }
	.footer .footer-nav { display:flex !important; flex-wrap:wrap; justify-content:center; }
	.footer p { display:block !important; }
}

@media (max-width: 480px) {
	.hero {
		padding: 8px 0 20px;
	}

	.hero h1 {
		font-size: 1.4rem;
		margin-bottom: 6px;
	}

	.hero p {
		font-size: 0.95rem;
		margin-bottom: 16px;
	}

	.nav {
		width: 100% !important;
		padding: 8px 4vw !important;
		gap: 6px;
	}

	.nav .brand img {
		height: 40px !important;
	}

	.nav a {
		margin-left: 8px;
		font-size: 14px;
	}

	.hero-content {
		width: 100% !important;
		padding: 0 4vw !important;
		margin: 8px auto 0 !important;
	}

	.footer {
		padding: 16px 0 60px;
	}

	.footer .footer-nav a {
		font-size: 12px;
		margin: 2px;
	}

	.footer p {
		font-size: 0.85rem;
	}
}

.footer p{ margin-top:12px; color: #eaf2ff; font-size: 0.95rem; }
/* Testimonios */
.testimonials{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.testimonial{background:var(--card);border-radius:14px;box-shadow:0 6px 18px rgba(0,0,0,.06);padding:16px}
.t-header{display:flex;gap:12px;align-items:center;margin-bottom:8px}
.t-header img{width:46px;height:46px;border-radius:50%;object-fit:cover}
/* Google Reviews */
.google-reviews-section{background:linear-gradient(135deg,#f8fbff 0%,#eef4ff 100%);border-radius:18px;padding:32px 20px}
.google-reviews-header{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:24px}
.google-g-logo{flex-shrink:0}
.google-review-card{position:relative;border:1px solid #e0e8ff;display:flex;flex-direction:column}
.google-review-card .t-header{align-items:flex-start}
.google-review-card p{display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden;line-height:1.55;margin:0;flex:1}
.gr-stars{color:#f5a623;font-size:1rem;letter-spacing:1px;margin-top:2px}
.gr-badge{margin-left:auto;opacity:.7;transition:opacity .2s;flex-shrink:0}
.gr-badge:hover{opacity:1}
.gr-time{font-size:.8rem;color:#999;margin-top:6px}
/* Detalle servicio */
.service-detail .hero-img{width:100%;max-height:320px;object-fit:cover;border-radius:12px;box-shadow:0 6px 18px rgba(0,0,0,.06)}
.service-detail .detail-img{width:100%;max-height:480px;object-fit:cover;border-radius:12px;box-shadow:0 6px 18px rgba(0,0,0,.06);margin:24px 0;}
.service-detail .lead{font-size:1.05rem;color:var(--muted)}
.service-detail .cta{margin-top:14px}
/* Brands carousel */
.brands{overflow:hidden;padding:0px 0;margin-bottom:10px}
.brands-track{display:flex;gap:40px;animation:scroll 30s linear infinite}
.brand img{height:100px;transition:all .2s}
.brand img:hover{filter:none;opacity:1}
@keyframes scroll{ from{transform:translateX(0)} to{transform:translateX(-50%)} }
@media(max-width:720px){ .form .grid2{grid-template-columns:1fr} }

/* Estilos separados para "Más herramientas" */
.tools-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 8px;
	width: 100%;
}

.tools-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 24px 16px;
	min-height: 240px;
	background: #f8f9fa;
	border-radius: 12px;
	text-align: center;
	transition: all 0.3s ease;
	border: 1px solid #e9ecef;
}

.tools-card:hover {
	background: #fff;
	transform: translateY(-4px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tools-card-img {
	width: 64px;
	height: 64px;
	object-fit: contain;
	margin-bottom: 12px;
	display: block;
}

.tools-card h3 {
	font-size: 0.95rem;
	margin: 8px 0 6px;
	color: #003355;
	font-weight: 600;
}

.tools-card p {
	font-size: 0.85rem;
	color: var(--muted);
	line-height: 1.4;
	flex-grow: 1;
	margin: 0;
}

@media (max-width: 1024px) {
	.tools-cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.tools-cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
	
	.tools-card {
		padding: 16px 12px;
		min-height: 200px;
	}
	
	.tools-card-img {
		width: 56px;
		height: 56px;
		margin-bottom: 8px;
	}
	
	.tools-card h3 {
		font-size: 0.9rem;
	}
	
	.tools-card p {
		font-size: 0.8rem;
	}
}

@media (max-width: 600px) {
	.tools-cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
		grid-auto-rows: 1fr;
	}
	
	.tools-card {
		padding: 12px 8px;
		min-height: auto;
		min-width: 0;
		overflow: hidden;
		word-break: break-word;
		overflow-wrap: break-word;
	}
	
	.tools-card-img {
		width: 48px;
		height: 48px;
		margin-bottom: 8px;
	}

	.tools-card h3 {
		font-size: 0.85rem;
		word-break: break-word;
		overflow-wrap: break-word;
		hyphens: auto;
	}

	.tools-card p {
		font-size: 0.75rem;
		word-break: break-word;
		overflow-wrap: break-word;
	}
}

/* Mobile & tablet: ensure carousels don't overflow */
@media (max-width: 1280px) {
	.carousel-track,
	.brands-track {
		gap: 20px;
	}
	.carousel-item,
	.brands-item {
		min-width: 100px;
	}
}

/* Mobile: carousels and footer must be full-width and visible */
@media (max-width: 700px) {
	.brands-carousel-section,
	.clientes-carousel-section {
		width: 100% !important;
		max-width: none !important;
		min-width: 0 !important;
		padding: 20px 8px !important;
		margin: 10px auto !important;
		box-sizing: border-box !important;
		overflow: visible !important;
	}
	.brands-carousel,
	.clientes-carousel {
		overflow: hidden;
		width: 100% !important;
		box-sizing: border-box;
	}
	.brands-track,
	.carousel-track {
		gap: 16px;
	}
	.brands-item,
	.carousel-item {
		min-width: 80px;
	}
	.brands-item img {
		width: 70px;
		height: 70px;
	}
	.brands-carousel-title,
	.clientes-carousel-title {
		font-size: 1.2rem;
	}
	footer.footer {
		display: block !important;
		visibility: visible !important;
		width: 100% !important;
		max-width: none !important;
		overflow: visible !important;
		padding: 24px 16px 40px !important;
		margin-top: 20px !important;
		box-sizing: border-box !important;
	}
	footer.footer .footer-nav {
		display: flex !important;
		flex-wrap: wrap !important;
		justify-content: center !important;
		gap: 8px !important;
		width: 100% !important;
	}
	footer.footer p {
		display: block !important;
		width: 100% !important;
		color: #eaf2ff !important;
	}
}

/* Mobile hamburger menu */
#menu-toggle {
	display: none;
	background: none;
	border: 0;
	color: inherit;
	font-size: 24px;
	cursor: pointer;
	padding: 8px;
}

@media (max-width: 700px) {
	#menu-toggle {
		display: inline-block;
		position: relative;
		z-index: 1002;
	}
	.nav {
		position: relative;
		z-index: 1;
	}
	/* Overlay cubre toda la página por debajo del nav */
	body.menu-open::before {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.88);
		z-index: 998;
	}
	body.menu-open {
		overflow: hidden;
	}
	/* El nav entero queda encima del overlay */
	body.menu-open .nav {
		position: relative;
		z-index: 1000;
	}
	/* Ocultar contenido del hero cuando el menú está abierto */
	body.menu-open .hero-content {
		position: relative;
		z-index: 0 !important;
	}
	.nav nav {
		display: none;
		position: fixed;
		top: 70px;
		right: 8px;
		left: 8px;
		background: #020f22;
		color: #fff;
		border-radius: 10px;
		box-shadow: 0 8px 28px rgba(0,0,0,0.3);
		padding: 8px 0;
		z-index: 1001;
		max-height: 80vh;
		overflow-y: auto;
	}
	.nav nav a {
		display: block;
		color: #fff;
		margin: 0;
		text-decoration: none;
		padding: 12px 16px;
		border-bottom: 1px solid rgba(255,255,255,0.2);
	}
	.nav nav a:last-child {
		border-bottom: none;
	}
	.nav nav a:hover {
		background: rgba(255,255,255,0.2);
		color: #fff;
		font-weight: 600;
	}
	.nav.open nav {
		display: block;
	}
}

/* Estilos para detalles (Más detalles) */
details > summary {
	background: #00b7ef;
	color: #00283a;
	border: none;
	border-radius: 8px;
	padding: 12px 20px;
	cursor: pointer;
	font-weight: 700;
	display: inline-block;
	list-style: none;
	user-select: none;
	margin-bottom: 12px;
	transition: background 0.2s ease;
}

details > summary:hover {
	background: #00a3d9;
	color: #fff;
}

details > summary::-webkit-details-marker {
	display: none;
}

details > summary::before {
	content: '';
	position: relative;
	margin-right: 6px;
}

details[open] > summary {
	background: #00a3d9;
	color: #fff;
}

.section {
	margin: 5em auto;
}

/* Stats grid responsive (quienes-somos historia counters) */
@media (max-width: 1280px) {
	.stats-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 24px !important;
		max-width: 100% !important;
	}
}
@media (max-width: 700px) {
	.stats-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 20px !important;
		max-width: 100% !important;
	}
	.stats-grid .counter {
		font-size: 56px !important;
		line-height: 70px !important;
		letter-spacing: -1px !important;
	}
	.stats-grid p:not(.counter) {
		font-size: 1rem !important;
	}
}
@media (max-width: 400px) {
	.stats-grid .counter {
		font-size: 44px !important;
		line-height: 56px !important;
	}
	.stats-grid p:not(.counter) {
		font-size: 0.85rem !important;
	}
}