* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f4f6f9; color: #333333; line-height: 1.6; }

/* Contenedor principal corregido para evitar advertencias del editor */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Animación de rebote suave y tamaño ampliado para el Logo */
@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.logo-img {
    height: 120px !important; /* Forzamos la altura deseada */
    max-height: 120px;
    width: auto !important;
    display: block !important;
    animation: floatBounce 3s ease-in-out infinite;
    transition: transform 0.2s;
}
.logo-img:hover {
    transform: scale(1.03);
}

/* Barra Superior */
.top-bar { background-color: #0a192f; color: #ffffff; font-size: 0.82rem; padding: 8px 0; border-bottom: 2px solid #0D8FA5; }
.top-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.contact-info a { color: #25d366; text-decoration: none; font-weight: bold; }
.top-links { display: flex; gap: 15px; }
.top-links a { color: #adb5bd; text-decoration: none; transition: color 0.2s; }
.top-links a:hover { color: #0D8FA5; }

/* Navegación Principal */
.main-nav { background-color: #ffffff; color: #ffffff; padding: 12px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.15); position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.cart-box { background-color: #0D8FA5; color: #ffffff; padding: 8px 16px; border-radius: 6px; font-weight: bold; font-size: 0.95rem; display: flex; align-items: center; gap: 6px; transition: background 0.2s; cursor: pointer; }
.cart-box:hover { background-color: #0a7385; }

/* Categorías */
.category-bar { background-color: #0f4c8a; border-bottom: 1px solid #e1e1e1; overflow-x: auto; white-space: nowrap; padding: 10px 0; }
.category-list { display: flex; list-style: none; gap: 25px; padding: 0 10px; }
.category-list li a { color: #ffffff; text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.category-list li a:hover { color: rgb(195, 168, 3); }

/* Hero */
.hero { background: linear-gradient(135deg, #003366 0%, #0a192f 100%); color: #ffffff; text-align: center; padding: 60px 20px; margin-bottom: 30px; }
.hero-content h2 { font-size: 2.2rem; margin-bottom: 15px; }
.hero-content p { font-size: 1.05rem; color: #cbd5e1; max-width: 700px; margin: 0 auto 25px auto; }
.btn-primary { background-color: #0D8FA5; color: #ffffff; padding: 12px 28px; border-radius: 6px; text-decoration: none; font-weight: bold; display: inline-block; border: none; cursor: pointer; transition: background 0.2s; }
.btn-primary:hover { background-color: #0a7385; }

/* Catálogo */
.catalog-section { padding: 20px 0 50px 0; }
.category-block { margin-bottom: 40px; }
.category-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #00a5b3; padding-bottom: 8px; margin-bottom: 20px; }
.category-header h3 { color: #003366; font-size: 1.4rem; }
.ver-todo { color: #0D8FA5; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product-card { background: #ffffff; border: 1px solid #e1e1e1; border-radius: 8px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; position: relative; box-shadow: 0 3px 8px rgba(0,0,0,0.03); transition: transform 0.2s; }
.product-card:hover { transform: translateY(-4px); border-color: #003366; }
.badge { position: absolute; top: 15px; right: 15px; background-color: rgba(202, 22, 22, 0.91); color: #ffffff; font-size: 0.75rem; font-weight: bold; padding: 3px 8px; border-radius: 4px; }
.product-card h4 { font-size: 1.05rem; color: #1a2b4c; margin-bottom: 8px; }
.product-card .code { font-size: 0.8rem; color: #6c757d; margin-bottom: 12px; }
.product-card .price { font-size: 1.25rem; font-weight: bold; color: #000000; margin-bottom: 15px; }
.btn-buy { background-color: #003366; color: #ffffff; border: none; padding: 10px; border-radius: 5px; font-weight: bold; cursor: pointer; }
.btn-buy:hover { background-color: #002244; }

/* Beneficios */
.features-grid-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 50px auto; max-width: 1200px; padding: 0 15px; }
.feature-box-card { background: #ffffff; border: 1px solid #e1e1e1; border-radius: 8px; padding: 25px 20px; text-align: center; box-shadow: 0 3px 10px rgba(0,0,0,0.04); display: flex; flex-direction: column; justify-content: space-between; }
.feature-box-icon { font-size: 2.2rem; margin-bottom: 12px; }
.feature-box-card h4 { font-size: 1.05rem; color: #1a2b4c; margin-bottom: 8px; }
.feature-box-card p { font-size: 0.85rem; color: #6c757d; line-height: 1.4; margin-bottom: 15px; }
.btn-card-link { display: inline-block; background-color: #0066cc; color: white; text-decoration: none; padding: 8px 12px; border-radius: 4px; font-size: 0.85rem; font-weight: bold; }
.btn-card-whatsapp { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background-color: #25d366; color: white; text-decoration: none; padding: 8px 12px; border-radius: 4px; font-size: 0.85rem; font-weight: bold; }

/* Modales y Carrito */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; z-index: 2000; padding: 15px; }
.modal-content { background: #ffffff; width: 100%; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.modal-header { background-color: #003366; color: #ffffff; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.btn-close { background: none; border: none; color: #ffffff; font-size: 1.5rem; cursor: pointer; }
.modal-body { padding: 20px; }
.cart-modal-container { display: grid; grid-template-columns: 1fr 280px; gap: 20px; }
.cart-products-list-area { max-height: 320px; overflow-y: auto; }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; }
.cart-summary-box { background: #f8f9fa; border: 1px solid #e1e1e1; border-radius: 6px; padding: 15px; display: flex; flex-direction: column; justify-content: space-between; }
.cart-summary-box h4 { font-size: 1rem; color: #003366; border-bottom: 2px solid #0D8FA5; padding-bottom: 6px; margin-bottom: 10px; text-align: center; }
.summary-row.total { font-size: 1.15rem; font-weight: bold; color: #003366; text-align: center; padding-top: 10px; }

/* Footer */
.main-footer { background-color: #0a192f; color: #cbd5e1; padding: 40px 0 20px 0; margin-top: 50px; border-top: 3px solid #0D8FA5; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: #ffffff; font-size: 1.1rem; margin-bottom: 15px; border-left: 3px solid #0D8FA5; padding-left: 8px; }
.footer-col p { font-size: 0.9rem; margin-bottom: 8px; }
.footer-col a { color: #cbd5e1; text-decoration: none; }
.footer-bottom { text-align: center; border-top: 1px solid #1e293b; padding-top: 15px; font-size: 0.82rem; color: #94a3b8; }

@media (max-width: 768px) {
    .top-container { flex-direction: column; text-align: center; }
    .top-links { justify-content: center; }
    .cart-modal-container { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
}