html, body, header, main, footer, section, article, div, nav, span, p, h1, h2, h3, h4, h5, h6, li, label, table, thead, tbody, tr, th, td, button {
    cursor: default;
    -webkit-user-select: none;
    user-select: none;
}

a, button, select, [role="button"], .cart, .cart-contenido, .tab-button {
    cursor: pointer;
}

input[type="text"], input[type="search"], input[type="email"], input[type="number"], input[type="tel"], input[type="password"], textarea {
    cursor: text;
    -webkit-user-select: text;
    user-select: text;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: sans-serif;
	background-color: #f4f6f9;
	color: #333;
	margin: 0;
	padding: 0;
}

.header-fijo {
	position: sticky;
	top: 0;
	z-index: 9990;
	width: 100%;
	background: #ffffff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-principal {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	min-height: 78px;

	display: flex;
	align-items: center;
	gap: 25px;

	padding: 10px 20px;
}

.header-logo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.header-logo img {
	display: block;
	max-width: 190px;
	max-height: 58px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.header-buscador {
	flex: 1 1 auto;
	min-width: 150px;
}

.header-buscador input {
	width: 100%;
	height: 46px;
	padding: 0 16px;
	font-size: 16px;
	border: 2px solid #cbd5e0;
	border-radius: 8px;
	background: #ffffff;
	color: #2d3748;
	outline: none;
	transition:
		border-color 0.2s,
		box-shadow 0.2s;
}

.header-buscador input:focus {
	border-color: #48bb78;
	box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.12);
}

.info-bar {
	display: flex;
	justify-content: space-between;
	font-size: 0.9em;
	color: #666;
	margin-bottom: 20px;
	background: #edf2f7;
	padding: 10px;
	border-radius: 5px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;

    margin: 0;
    padding: 0;
}

.tab-responsive table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.tab-responsive th,
.tab-responsive td {
    box-sizing: border-box;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	background: #fff;
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	padding-top: 25px !important;
}
	
.contenido-principal {
	width: 100%;
	padding-top: 24px;
}

.container > .logo,
.container > h1,
.container > .info-bar,
.container > .searchbox,
.container > .tabs {
	display: none !important;
}

h1 {
	margin-top: 0;
	color: #1a365d;
}
	
.alert {
	background: #fff5f5;
	color: #c53030;
	padding: 12px;
	border-radius: 5px;
	margin-bottom: 20px;
	font-weight: bold;
	}
	
.cart {
	position: relative !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	flex: 0 0 auto;
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 46px;
	padding: 7px 12px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
	color: #2d3748;
	transition: box-shadow 0.2s, border-color 0.2s;
} 

.cart:hover {
	border-color: #cbd5e0;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.09);
}

.cart-contenido {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	white-space: nowrap;
}

.cart-resumen {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.cart-cantidad {
	font-weight: bold;
	font-size: 14px;
}

.cart-total {
	color: #38a169;
	font-weight: bold;
	font-size: 14px;
}

.cart-flecha {
	font-size: 11px;
	background: #edf2f7;
	padding: 3px 7px;
	border-radius: 10px;
}

.cart button {
	background: #25d366 !important;
	border: none !important;
	color: white !important;
	padding: 8px 13px !important;
	font-weight: bold;
	border-radius: 20px !important;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s;
}

.cart button:hover {
	background: #20bd5a !important;
}

.icono-whatsapp {
    width: 20px;
    height: auto;
    vertical-align: middle;
    margin-left: 5px;
}

.texto-movil {
    display: none;
}

.tabs-header {
	width: 100%;
	border-top: 1px solid #edf2f7;
	background: #ffffff;
}

.tabs {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 7px 15px;
	overflow-x: auto;
	overflow-y: hidden;

	scrollbar-width: thin;
}

.tabs::-webkit-scrollbar {
	height: 4px;
}

.tab-button {
	flex: 0 0 auto;
	border: none;
	background: transparent;
	color: #4a5568;
	padding: 9px 13px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition:
		background 0.2s,
		color 0.2s;
}

.tab-button:hover {
	background: #edf2f7;
	color: #2d3748;
}

.tab-button.active {
	background: #48bb78;
	color: white;
}
	
table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	}
	
th, td {
	padding: 12px;
	border-bottom: 1px solid #e2e8f0;
	}
	
th {
	background-color: #f7fafc;
	color: #4a5568;
	}
	
tr:hover {
	background-color: #f8fafc;
	}
	
.badge {
	padding: 5px 10px;
	border-radius: 12px;
	font-size: 0.85em;
	font-weight: bold;
	display: inline-block;
	}
	
.badge-success {
	background-color: #c6f6d5;
	color: #22543d;
	}
	
.badge-danger {
	background-color: #fed7d7;
	color: #742a2a;
	}
	
.precio-final {
	font-weight: bold;
	color: #2b6cb0;
	font-size: 1.1em;
}

#detalle-carrito {
	position: fixed !important;
	top: 132px !important;
	right: 20px !important;
	bottom: auto !important;
	width: 590px !important;
	max-width: calc(100vw - 30px);
	max-height: 400px;
	background: white;
	border: 2px solid #cbd5e0;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
	display: none;
	flex-direction: column;
	font-family: sans-serif;
	z-index: 9998;
	overflow: hidden;
}

.footer-armcel {
	width: 100%;
	margin-top: 50px;
	background: #1a202c;
	color: #e2e8f0;
	border-top: 4px solid #48bb78;
	font-family: Arial, sans-serif;
}

.footer-contenido {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 45px 25px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
	gap: 35px;
}

.footer-logo {
	max-width: 170px;
	max-height: 60px;
	width: auto;
	height: auto;
	object-fit: contain;
	margin-bottom: 15px;
}

.footer-descripcion {
	color: #a0aec0;
	line-height: 1.6;
	font-size: 14px;
	max-width: 280px;
	margin: 0 0 20px 0;
}

.footer-columna h3 {
	margin: 0 0 18px 0;
	color: #ffffff;
	font-size: 16px;
	font-weight: 700;
}

.footer-columna ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-columna li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin-bottom: 13px;
	color: #a0aec0;
	font-size: 13px;
	line-height: 1.5;
}

.footer-links li {
	display: block;
	margin-bottom: 11px;
}

.footer-links a {
	color: #a0aec0;
	text-decoration: none;
	transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
	color: #48bb78;
	padding-left: 4px;
}

.footer-contacto-rapido {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer-contacto-rapido a {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	color: #ffffff;
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s;
}

.footer-contacto-rapido a:hover {
	color: #48bb78;
}

.footer-inferior {
	border-top: 1px solid #2d3748;
	max-width: 1400px;
	margin: 0 auto;
	padding: 18px 25px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	color: #718096;
	font-size: 12px;
}

.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(26, 32, 44, 0.62);
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.popup-overlay.activo {
    display: flex;
}

.popup-contenido {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #48bb78;
    border-radius: 12px;
    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.22),
        0 4px 12px rgba(0, 0, 0, 0.08);

    overflow: hidden;
    animation: popupEntrada 0.2s ease-out;
}

@keyframes popupEntrada {
	
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
	
}

.popup-contenido h2 {
    margin: 0;
    padding: 24px 55px 18px 25px;
    color: #38a169;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.popup-contenido h2::after {
    content: "";
    display: block;
    width: 45px;
    height: 3px;
    margin-top: 12px;
    background: #48bb78;
    border-radius: 3px;
}

#popup-texto {
    overflow-y: auto;
    padding: 0 25px 25px 25px;
    color: #4a5568;
    font-size: 15px;
    line-height: 1.65;
}

#popup-texto p {
    margin: 0 0 15px 0;
}

#popup-texto p:last-child {
    margin-bottom: 0;
}

.popup-cerrar {
    position: absolute;
    top: 14px;
    right: 15px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #f7fafc;
    color: #718096;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s,
        transform 0.2s;
}

.popup-cerrar:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    color: #e53e3e;
    transform: rotate(90deg);
}

#popup-texto::-webkit-scrollbar {
    width: 7px;
}

#popup-texto::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 10px;
}

#popup-texto::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

#popup-texto::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

@media (max-width: 1100px) {
	
	.footer-contenido {
		grid-template-columns: repeat(3, 1fr);
	}

}

@media (max-width: 1000px) {

	.header-principal {
		gap: 12px;
	}

	.header-logo img {
		max-width: 150px;
	}

	.cart button {
		font-size: 12px;
		padding: 7px 10px !important;
	}

	.cart-flecha {
		display: none;
	}
}

@media (max-width: 700px) {

	.header-principal {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"logo carrito"
			"buscador buscador";
		gap: 8px;
		padding: 8px 10px;
	}

	.header-logo {
		grid-area: logo;
	}

	.header-logo img {
		max-width: 135px;
		max-height: 48px;
	}

	.header-buscador {
		grid-area: buscador;
	}

	.header-buscador input {
		height: 42px;
		font-size: 14px;
	}

	.cart {
		grid-area: carrito;
		min-height: 42px;
		padding: 5px 8px;
		gap: 6px;
	}

	.cart-contenido {
		gap: 6px;
	}

	.cart-resumen {
		font-size: 12px;
	}

    .texto-pc {
        display: none;
    }

    .texto-movil {
        display: inline;
    }

    .cart button {
        display: block;
    }
	
	.tabs {
		padding: 5px 8px;

		gap: 3px;
	}

	.tab-button {
		font-size: 12px;
		padding: 8px 10px;
	}

	.tab-responsive {
		width: 100%;
		max-width: 100vw;
		overflow-x: auto;
		overflow-y: visible;
		background: #fff;
		border-radius: 6px;
	}

	.container {
		width: max-content;
		min-width: 100%;
		max-width: none;
		margin: 0;
		background: #fff;
		padding: 25px 10px;
		border-radius: 6px;
		box-shadow: none;
	}

	.tab-responsive table {
		width: 100%;
		min-width: 700px;
	}
	
	#detalle-carrito {
		top: 116px !important;
		right: 8px !important;
		width: calc(100vw - 16px) !important;
		max-width: none;
		max-height: 60vh;
	}

	.footer-contenido {
		grid-template-columns: 1fr 1fr;
		gap: 30px;
		padding: 35px 20px;
	}
	
	.footer-marca {
		grid-column: 1 / -1;
	}
	
	.footer-inferior {
		flex-direction: column;
		text-align: center;
		padding: 18px 20px;
	}
	
    .popup-overlay {
        padding: 10px;
    }

    .popup-contenido {
        max-height: 90vh;

        border-radius: 10px;
        border-top-width: 4px;
    }

    .popup-contenido h2 {
        padding: 20px 50px 15px 20px;

        font-size: 19px;
    }

    #popup-texto {
        padding: 0 20px 20px 20px;

        font-size: 14px;
        line-height: 1.6;
    }

    .popup-cerrar {
        top: 11px;
        right: 11px;

        width: 32px;
        height: 32px;
    }
	
}

@media (max-width: 450px) {
	
	.footer-contenido {
		grid-template-columns: 1fr;
	}
	
	.footer-marca {
		grid-column: auto;
	}

}

@media (max-width: 400px) {

	.header-logo img {
		max-width: 115px;
	}

	.cart-resumen {
		font-size: 11px;
	}

	.tab-button {
		font-size: 11px;
		padding: 7px 9px;
	}

}