/* ============================================
   JENCO AUTOPARTS - STYLES
   Paleta: Azul corporativo + Naranja energía
   ============================================ */

:root {
    --primary: #0a2540;
    --primary-dark: #061829;
    --primary-light: #1a3a5c;
    --accent: #ff6b00;
    --accent-dark: #e55a00;
    --accent-light: #ff8533;
    --success: #25d366;
    --bg: #ffffff;
    --bg-alt: #f7f9fc;
    --bg-dark: #0a2540;
    --text: #1a2332;
    --text-light: #5a6478;
    --border: #e4e8ef;
    --shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.08);
    --shadow: 0 4px 12px rgba(10, 37, 64, 0.1);
    --shadow-lg: 0 12px 32px rgba(10, 37, 64, 0.15);
    --radius: 10px;
    --radius-lg: 16px;
    --transition: all 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 60px 24px; }
.container-narrow { max-width: 1080px; margin: 0 auto; padding: 40px 24px; }

/* ===== PROMO BANNER ===== */
.promo-banner {
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    color: white;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
}
.promo-banner a {
    color: white;
    font-weight: 700;
    text-decoration: underline;
    margin-left: 8px;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--primary-dark);
    color: #b8c5d6;
    font-size: 13px;
    padding: 8px 0;
}
.top-bar-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.top-bar-left, .top-bar-right { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar a { color: #b8c5d6; }
.top-bar a:hover { color: var(--accent-light); }

/* ===== HEADER ===== */
header {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.logo img { height: 48px; width: auto; }

.main-nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
}
.main-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}
.main-nav a:hover { color: var(--accent); }
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; gap: 12px; align-items: center; }

.btn-meli {
    padding: 10px 18px;
    background: #fff159;
    color: #2d3277;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}
.btn-meli:hover { background: #ffe600; transform: translateY(-1px); }

.btn-whatsapp-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--success);
    color: white;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
}
.btn-whatsapp-header:hover { background: #1fb855; transform: translateY(-1px); }

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,107,0,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-block;
    background: rgba(255, 107, 0, 0.2);
    color: var(--accent-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 107, 0, 0.3);
}
.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.hero h1 span {
    color: var(--accent);
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 17px;
    color: #c5d2e0;
    margin-bottom: 32px;
    max-width: 540px;
}
.hero p strong { color: white; font-weight: 600; }

.hero-ctas { display: flex; gap: 14px; margin-bottom: 36px; flex-wrap: wrap; }

.btn-primary-lg, .btn-secondary-lg {
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}
.btn-primary-lg {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.4);
}
.btn-primary-lg:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
}
.btn-secondary-lg {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}
.btn-secondary-lg:hover { background: rgba(255, 255, 255, 0.2); }

.hero-trust { display: flex; flex-direction: column; gap: 10px; }
.trust-item { font-size: 14px; color: #c5d2e0; }
.trust-item strong { color: white; }

/* ===== SELECTOR CARD ===== */
.selector-card {
    background: white;
    color: var(--text);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}
.selector-header { margin-bottom: 20px; }
.selector-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.selector-header p { font-size: 14px; color: var(--text-light); }

.selector-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-alt);
    padding: 4px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}
.tab {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    transition: var(--transition);
}
.tab.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.selector-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.form-group input,
.form-group select {
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: white;
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}
.form-group small { font-size: 12px; color: var(--text-light); }

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text);
}
.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.btn-primary {
    grid-column: 1 / -1;
    padding: 14px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    font-size: 15px;
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.3);
}
.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ===== BRANDS ===== */
.brands-section {
    background: var(--bg-alt);
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}
.brands-label {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    margin-bottom: 24px;
}
.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    align-items: center;
}
.brand-item {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
    padding: 16px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.brand-item:hover {
    background: white;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.brand-item sup { color: var(--accent); font-size: 12px; }
.brand-own { color: var(--accent); }

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}
.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}
.section-subtitle { font-size: 15px; color: var(--text-light); }

/* ===== SYSTEMS GRID ===== */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.system-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}
.system-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.system-icon {
    width: 44px;
    height: 44px;
    color: var(--accent);
    margin: 0 auto 12px;
    display: block;
}
.system-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

/* ===== B2B ===== */
.b2b-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 40px 0;
}
.b2b-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}
.b2b-tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.b2b-text h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.b2b-text > p { font-size: 16px; color: #c5d2e0; margin-bottom: 24px; }
.b2b-benefits {
    list-style: none;
    margin-bottom: 32px;
}
.b2b-benefits li {
    padding: 10px 0;
    font-size: 15px;
    color: #e0e8f0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.b2b-benefits li strong { color: white; }

.b2b-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 36px;
}
.stat-big {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 24px;
}
.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.stat-label {
    display: block;
    font-size: 14px;
    color: #c5d2e0;
    margin-top: 8px;
}
.stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.stat-row:last-child { margin-bottom: 0; }
.stat { text-align: center; }
.stat-num {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: white;
}
.stat-lbl {
    display: block;
    font-size: 12px;
    color: #c5d2e0;
    margin-top: 4px;
}

/* ===== FEATURES ===== */
.features-wrapper {
    background: var(--bg-alt);
    padding: 40px 0;
}
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.feature-icon-wrap {
    font-size: 32px;
    flex-shrink: 0;
}
.feature h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.feature p { font-size: 14px; color: var(--text-light); }

/* ===== CONTACT ===== */
.contact-section {
    background: white;
    padding: 60px 0;
    border-top: 1px solid var(--border);
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.contact-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-icon { font-size: 36px; margin-bottom: 12px; }
.contact-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.contact-card p { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.contact-card a {
    color: var(--accent);
    font-weight: 600;
    font-size: 15px;
}
.contact-card a:hover { text-decoration: underline; }
.contact-card span { color: var(--text); font-weight: 600; }

/* ===== FOOTER ===== */
footer {
    background: var(--primary-dark);
    color: #c5d2e0;
    padding: 60px 0 0;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-logo { height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: white;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 18px;
}
.social-links a:hover { background: var(--accent); transform: translateY(-2px); }

.footer-col h5 {
    color: white;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-col a {
    display: block;
    color: #c5d2e0;
    font-size: 14px;
    padding: 6px 0;
}
.footer-col a:hover { color: var(--accent-light); }

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
    color: #8a96aa;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 99;
    animation: pulse 2s infinite;
    transition: var(--transition);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    max-width: 90%;
    text-align: center;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast.success { background: var(--success); }
.toast.error { background: #e53e3e; }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .hide-mobile { display: none !important; }
    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 36px; }
    .b2b-content { grid-template-columns: 1fr; gap: 40px; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
    .features { grid-template-columns: 1fr 1fr; }
    .systems-grid { grid-template-columns: repeat(3, 1fr); }
    .brands-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .main-nav { display: none; }
}

@media (max-width: 640px) {
    .container { padding: 40px 16px; }
    .hero { padding: 50px 0; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 15px; }
    .selector-card { padding: 20px; }
    .selector-form { grid-template-columns: 1fr; }
    .systems-grid { grid-template-columns: repeat(2, 1fr); }
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
    .features { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 24px; }
    .b2b-text h2 { font-size: 26px; }
    .stat-number { font-size: 36px; }
    .top-bar-content { justify-content: center; }
    .header-content { gap: 12px; }
    .logo img { height: 40px; }
    .btn-whatsapp-header { padding: 8px 14px; font-size: 13px; }
    .promo-banner { font-size: 12px; padding: 8px 12px; }
    .whatsapp-float { width: 54px; height: 54px; bottom: 16px; right: 16px; }
}

