:root {
    --primary: #E31837;
    --primary-dark: #B8122B;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #1A1A1A;
    --text-dark: #2D2D2D;
    --whatsapp: #25D366;
    --success: #28A745;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; font-weight: 700; line-height: 1.2; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header { background: var(--white); position: fixed; top: 0; left: 0; right: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }

.header-top { background: var(--dark-gray); padding: 8px 0; font-size: 13px; }

.header-top .container { display: flex; justify-content: space-between; align-items: center; }

.header-top-left { display: flex; gap: 24px; color: var(--white); }

.header-top-left span { display: flex; align-items: center; gap: 6px; }

.header-top-right { display: flex; gap: 16px; }

.header-top-right a { color: var(--white); text-decoration: none; transition: color 0.3s; }

.header-top-right a:hover { color: var(--primary); }

.header-main { padding: 16px 0; }

.header-main .container { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.logo-text { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 24px; color: var(--primary); }

.logo-sub { font-size: 11px; color: var(--dark-gray); text-transform: uppercase; letter-spacing: 1px; }

.main-nav { display: flex; gap: 24px; }

.nav-link { color: var(--text-dark); text-decoration: none; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; transition: all 0.3s; }

.nav-link:hover, .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }

.header-cta { display: flex; gap: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 14px; text-decoration: none; border: none; border-radius: 4px; cursor: pointer; transition: all 0.3s ease; }

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(227, 24, 55, 0.3); }

.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: #1EBE57; transform: translateY(-2px); }

.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* Category Hero */
.category-hero { margin-top: 120px; background: linear-gradient(135deg, var(--dark-gray) 0%, #2d2d2d 100%); padding: 60px 0; }

.breadcrumb { color: var(--medium-gray); margin-bottom: 16px; font-size: 14px; }
.breadcrumb a { color: var(--white); text-decoration: none; }
.breadcrumb i { font-size: 10px; margin: 0 8px; }

.category-hero h1 { font-size: clamp(32px, 5vw, 48px); color: var(--white); margin-bottom: 12px; }
.category-hero h1 span { color: var(--primary); }
.category-hero p { font-size: 18px; color: var(--medium-gray); max-width: 600px; }

/* Products Grid */
.category-products { padding: 60px 0; background: var(--light-gray); }

.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }

.product-card { background: var(--white); border-radius: 8px; overflow: hidden; transition: all 0.3s ease; }

.product-card:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

.product-img { height: 220px; background: var(--white); display: flex; align-items: center; justify-content: center; position: relative; padding: 20px; }

.product-badge { position: absolute; top: 16px; left: 16px; background: var(--primary); color: var(--white); padding: 4px 12px; font-size: 12px; font-weight: 600; border-radius: 4px; text-transform: uppercase; }

.product-content { padding: 24px; }

.product-content h3 { font-size: 18px; margin-bottom: 16px; color: var(--dark-gray); }

.product-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; padding: 16px; background: var(--light-gray); border-radius: 4px; }

.spec-item { font-size: 13px; }
.spec-item span { display: block; color: #666; font-size: 11px; text-transform: uppercase; }
.spec-item strong { font-family: 'JetBrains Mono', monospace; color: var(--dark-gray); }

.product-actions { display: flex; gap: 12px; }
.product-actions .btn { flex: 1; padding: 10px 16px; font-size: 13px; }

/* CTA Section */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 60px 0; text-align: center; }

.cta-section h2 { color: var(--white); font-size: 32px; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.9); margin-bottom: 24px; font-size: 18px; }

.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-buttons .btn-whatsapp { background: var(--white); color: var(--whatsapp); }
.cta-buttons .btn-primary { background: var(--white); color: var(--primary); }

/* Footer */
.footer { background: var(--dark-gray); padding: 48px 0 24px; color: var(--medium-gray); }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { font-size: 14px; line-height: 1.7; }

.footer h4 { color: var(--white); font-size: 16px; margin-bottom: 20px; text-transform: uppercase; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--medium-gray); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 13px; }

/* Floating CTA */
.floating-cta { position: fixed; bottom: 24px; right: 24px; z-index: 999; }

.floating-btn { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.3); transition: transform 0.3s; }
.floating-btn:hover { transform: scale(1.1); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.active { display: flex; }

.modal { background: var(--white); border-radius: 12px; max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; }

.modal-header { padding: 24px; border-bottom: 1px solid var(--medium-gray); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 20px; color: var(--dark-gray); }

.modal-close { width: 36px; height: 36px; border: none; background: var(--light-gray); border-radius: 50%; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.modal-close:hover { background: var(--primary); color: var(--white); }

.modal-body { padding: 24px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; }
.form-group label span { color: var(--primary); }

.form-group input, .form-group select { width: 100%; padding: 12px 16px; border: 1px solid var(--medium-gray); border-radius: 4px; font-size: 15px; font-family: inherit; transition: border-color 0.3s; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary); }

.form-submit { width: 100%; padding: 16px; font-size: 16px; }

.form-note { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #666; margin-top: 16px; }

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .main-nav { display: none; }
}

@media (max-width: 768px) {
    .header-top { display: none; }
    .category-hero { margin-top: 80px; padding: 40px 0; }
    .products-grid { grid-template-columns: 1fr; }
    .product-actions { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; }
}

/* Details Modal */
#detailsModal .modal { max-width: 700px; }

.details-content { padding: 24px; }

.detail-header { display: flex; gap: 24px; margin-bottom: 24px; align-items: center; }

.detail-header img { width: 180px; height: 140px; object-fit: contain; background: #f5f5f5; border-radius: 8px; padding: 16px; }

.detail-header h3 { font-size: 22px; margin-bottom: 8px; color: var(--dark-gray); }

.detail-specs { margin-bottom: 24px; }

.detail-specs h4 { font-size: 16px; margin-bottom: 12px; color: var(--dark-gray); text-transform: uppercase; letter-spacing: 0.5px; }

.detail-specs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.detail-spec-item { background: var(--light-gray); padding: 12px; border-radius: 4px; }

.detail-spec-item span { display: block; font-size: 11px; text-transform: uppercase; color: #666; margin-bottom: 4px; }

.detail-spec-item strong { font-family: 'JetBrains Mono', monospace; font-size: 15px; color: var(--dark-gray); }

.detail-features { margin-bottom: 24px; }

.detail-features h4 { font-size: 16px; margin-bottom: 12px; color: var(--dark-gray); text-transform: uppercase; }

.detail-features ul { list-style: none; }

.detail-features li { padding: 8px 0; border-bottom: 1px solid var(--light-gray); display: flex; align-items: center; gap: 10px; }

.detail-features li i { color: var(--success); }

.detail-actions { display: flex; gap: 12px; }

.detail-actions .btn { flex: 1; padding: 14px 20px; }

@media (max-width: 768px) {
    .detail-header { flex-direction: column; text-align: center; }
    .detail-header img { width: 100%; height: 160px; }
    .detail-specs-grid { grid-template-columns: 1fr; }
    .detail-actions { flex-direction: column; }
}

/* About Content */
.about-content { padding: 60px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 60px; }

.about-text h2 { font-size: 28px; margin-bottom: 20px; color: var(--dark-gray); }
.about-text h3 { font-size: 20px; margin: 30px 0 15px; color: var(--dark-gray); }
.about-text p { margin-bottom: 16px; color: #555; line-height: 1.8; }

.values-list { list-style: none; }
.values-list li { padding: 12px 0; border-bottom: 1px solid var(--light-gray); display: flex; align-items: center; gap: 12px; }
.values-list li i { color: var(--success); }

.about-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-content: start; }
.stat-card { background: var(--light-gray); padding: 30px; border-radius: 8px; text-align: center; }
.stat-icon { font-size: 36px; color: var(--primary); margin-bottom: 12px; }
.stat-number { font-family: 'Montserrat', sans-serif; font-size: 42px; font-weight: 800; color: var(--dark-gray); line-height: 1; }
.stat-label { font-size: 13px; color: #666; margin-top: 8px; }

.services-section { padding-top: 40px; border-top: 1px solid var(--medium-gray); }
.services-section h2 { font-size: 28px; margin-bottom: 30px; text-align: center; color: var(--dark-gray); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card { background: var(--white); padding: 30px; border-radius: 8px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.service-icon { width: 60px; height: 60px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 24px; color: var(--white); }
.service-card h4 { font-size: 16px; margin-bottom: 10px; color: var(--dark-gray); }
.service-card p { font-size: 13px; color: #666; }

/* Contact Section */
.contact-section { padding: 60px 0; background: var(--light-gray); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h2, .contact-form-wrapper h2 { font-size: 28px; margin-bottom: 8px; color: var(--dark-gray); }
.contact-subtitle { color: #666; margin-bottom: 30px; }

.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 30px; }
.contact-card { background: var(--white); padding: 24px; border-radius: 8px; text-align: center; }
.contact-icon { width: 50px; height: 50px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 20px; color: var(--white); }
.contact-card h4 { font-size: 14px; margin-bottom: 8px; color: var(--dark-gray); }
.contact-card p { font-size: 14px; font-weight: 600; color: var(--dark-gray); }
.contact-card span { font-size: 12px; color: #888; }

.response-time { background: var(--white); padding: 20px; border-radius: 8px; display: flex; align-items: center; gap: 16px; }
.response-time i { font-size: 24px; color: var(--success); }
.response-time strong { display: block; color: var(--dark-gray); }
.response-time p { font-size: 13px; color: #666; margin: 0; }

.contact-form-wrapper { background: var(--white); padding: 40px; border-radius: 8px; }
.contact-form-wrapper textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--medium-gray); border-radius: 4px; font-size: 15px; font-family: inherit; min-height: 100px; resize: vertical; }

@media (max-width: 1024px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-stats-grid { grid-template-columns: repeat(4, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: 1fr; }
}
