/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    min-height: 100vh;
    padding: 20px;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

/* Header */
.header {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Contenido principal */
.content {
    padding: 40px;
}

/* Sección de marca */
.brand-section {
    color: white;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    text-align: center;
}

.brand-section.moura {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
}

.brand-section.sermat {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.brand-section.heliar {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
}

.brand-section.placord {
    background: linear-gradient(135deg, #6f42c1 0%, #5a2d91 100%);
}

.brand-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
    border: none;
    display: block;
}

/* Categorías */
.category {
    margin-bottom: 50px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.category h2 {
    color: #003366;
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #003366;
    display: inline-block;
}

/* Tablas */
.table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

th {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

/* Estilos de celdas */
.codigo {
    font-weight: 600;
    color: #003366;
}

.tipo {
    font-weight: 500;
    color: #666;
}

.aplicaciones {
    color: #555;
    max-width: 300px;
}

.precio {
    font-weight: 600;
    color: #28a745;
    font-size: 1.1rem;
}

.sin-stock {
    color: #dc3545;
    font-weight: 600;
}

/* Footer */
.footer {
    background: #003366;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 1200px) {
    .content {
        padding: 30px 20px;
    }
    
    .category {
        padding: 25px 20px;
    }
}

@media (max-width: 992px) {
    .header {
        padding: 80px 20px 40px;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .content {
        padding: 25px 15px;
    }
    
    .category {
        padding: 20px 15px;
    }
    
    .search-container {
        margin-bottom: 25px;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 60px 15px 30px;
    }
    
    .header h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .header p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .content {
        padding: 20px 10px;
    }
    
    .category {
        padding: 20px 10px;
        margin-bottom: 25px;
    }
    
    .brand-section h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .search-container {
        margin-bottom: 20px;
    }
    
    .search-box {
        width: 100%;
        padding: 12px 15px 12px 40px;
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    .search-icon {
        left: 15px;
        font-size: 16px;
    }
    
    .table-container {
        margin: 0 -10px;
        padding: 0 10px;
    }
    
    table {
        min-width: 550px;
        font-size: 14px;
    }
    
    th, td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    th {
        font-size: 14px;
        font-weight: 600;
    }
    
    .product-counter {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .category-header {
        padding: 15px 10px;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
    
    .category-count {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 50px 10px 25px;
    }
    
    .header h1 {
        font-size: 1.7rem;
        margin-bottom: 12px;
    }
    
    .header p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .content {
        padding: 15px 5px;
    }
    
    .category {
        padding: 15px 5px;
        margin-bottom: 20px;
    }
    
    .brand-section h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .search-container {
        margin-bottom: 15px;
    }
    
    .search-box {
        padding: 10px 12px 10px 35px;
        font-size: 16px;
    }
    
    .search-icon {
        left: 12px;
        font-size: 14px;
    }
    
    .table-container {
        margin: 0 -5px;
        padding: 0 5px;
    }
    
    table {
        min-width: 480px;
        font-size: 12px;
    }
    
    th, td {
        padding: 10px 6px;
        font-size: 12px;
    }
    
    th {
        font-size: 13px;
        font-weight: 600;
    }
    
    .product-counter {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .category-header {
        padding: 12px 5px;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
    
    .category-count {
        font-size: 0.8rem;
    }
    
    .sin-stock {
        font-size: 11px;
    }
    
    /* Mejorar legibilidad en móviles */
    .price-cell {
        font-weight: 600;
        color: #003366;
    }
    
    .model-cell {
        font-weight: 500;
    }
    
    /* Mejorar interacción táctil */
    button, .search-box, input {
        min-height: 44px; /* Tamaño mínimo recomendado para touch */
    }
    
    /* Prevenir zoom en inputs en iOS */
    input[type="text"], input[type="search"] {
        font-size: 16px;
    }
    
    /* Scroll horizontal suave en tablas */
    .table-container {
        scrollbar-width: thin;
        scrollbar-color: #ccc transparent;
    }
    
    .table-container::-webkit-scrollbar {
        height: 8px;
    }
    
    .table-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .table-container::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }
    
    .table-container::-webkit-scrollbar-thumb:hover {
        background: #999;
    }
} 

/* Clases para optimización de estilos inline */
.btn-group {
    display: flex;
    gap: 0.5rem;
}

.btn-flex {
    flex: 1;
    text-decoration: none;
}

.contact-link {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.whatsapp-link {
    color: #fff;
    text-decoration: none;
}

.social-container {
    margin: 1rem 0;
}

.social-link {
    color: #fff;
    margin: 0 10px;
    font-size: 1.5rem;
    text-decoration: none;
    vertical-align: middle;
}

.social-icon {
    vertical-align: middle;
}

.footer-credits {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #ccc;
}

.credits-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.chat-form {
    display: none;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1rem;
}

.chat-label {
    font-size: 1rem;
}

.chat-input {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.chat-submit {
    margin-top: 0.5rem;
} 