:root {
    --primary: #0a2540;
    --primary-light: rgba(10, 37, 64, 0.05);
    --accent: #84cc16; /* Lime Green industrial */
    --accent-hover: #65a30d;
    --dark: #0f172a;
    --light: #f8fafc;
    --border: #e2e8f0;
    --text: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.25s ease-in-out;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --font-title: 'Barlow', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--light);
    line-height: 1.6;
}

.container {
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.promo-bar {
    background: linear-gradient(90deg, #0f2e5c, #0a2540, #061528);
    color: #a3e635;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    width: 100%;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-title);
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(132, 204, 22, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-dark {
    background-color: var(--primary);
    color: var(--white);
}

.btn-dark:hover {
    background-color: #1e3a5f;
}

/* Hero Section */
.hero {
    background-color: var(--white);
    padding: 5rem 0;
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

.hero-tag {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    border-left: 3px solid var(--accent);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--accent);
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

@media (max-width: 900px) {
    .hero-buttons {
        justify-content: center;
    }
}

.hero-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Catalog / Product List */
.section {
    padding: 5rem 0;
}

.section-grey {
    background-color: #f1f5f9;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    border-color: var(--accent);
}

.product-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.product-name {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.product-specs {
    font-size: 0.8rem;
    border-collapse: collapse;
    width: 100%;
    margin-top: auto;
}

.product-specs td {
    padding: 0.4rem 0;
    border-bottom: 1px dashed var(--border);
}

.product-specs td:first-child {
    font-weight: 700;
    color: var(--primary);
}

.product-specs td:last-child {
    text-align: right;
    color: var(--text);
}

/* B2B Budget Calculator */
.calc-card {
    background-color: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .calc-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.form-group select, .form-group input, .form-group textarea {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group select:focus, .form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.08);
}

.calc-results {
    background-color: var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 2rem;
    border: 1px solid rgba(10, 37, 64, 0.06);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calc-title {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.calc-row.total {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.calc-badge {
    background-color: rgba(132, 204, 22, 0.15);
    border: 1px solid rgba(132, 204, 22, 0.3);
    color: #4d7c0f;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

/* RFQ Form & Layout */
.rfq-box {
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.rfq-box h3 {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.rfq-box p {
    color: #94a3b8;
    margin-bottom: 2.5rem;
}

.rfq-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .rfq-form {
        grid-template-columns: 1fr;
    }
}

.rfq-full {
    grid-column: 1 / -1;
}

.rfq-form label {
    color: #cbd5e1;
}

.rfq-form input, .rfq-form select, .rfq-form textarea {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.rfq-form input:focus, .rfq-form select:focus, .rfq-form textarea:focus {
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.08);
}

/* Chat bubble & widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(10, 37, 64, 0.3);
    transition: var(--transition);
}

.chat-btn:hover {
    transform: scale(1.05);
    background-color: #1e3a5f;
}

.chat-box {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 340px;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid var(--border);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    font-family: var(--font-title);
    font-size: 1rem;
}

.chat-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 1.25rem;
}

.chat-messages {
    padding: 1.25rem;
    height: 250px;
    overflow-y: auto;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.msg {
    max-width: 85%;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    line-height: 1.4;
}

.msg-bot {
    background-color: var(--white);
    color: var(--text);
    align-self: flex-start;
    border: 1px solid var(--border);
}

.msg-user {
    background-color: var(--primary);
    color: var(--white);
    align-self: flex-end;
}

.chat-options {
    padding: 0.75rem;
    background-color: var(--white);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.chat-opt {
    background-color: var(--light);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.chat-opt:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 3rem;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transform: scale(0.95);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(132, 204, 22, 0.1);
    color: #65a30d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.modal-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Footer styling */
footer {
    background-color: #051424;
    color: #94a3b8;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-title);
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent);
}

/* ==========================================
   NUEVAS CLASES B2B: METRIC STRIP, FLOWCHART Y DOWNLOADS
   ========================================== */

/* Metrics Strip Styles */
.metrics-strip {
    background-color: #061526;
    border-bottom: 2px solid #84cc16;
    padding: 2rem 0;
    box-shadow: 0 10px 30px rgba(10, 37, 64, 0.1);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (max-width: 900px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 500px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-num {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-metric {
    color: #84cc16;
    font-size: 1.6rem;
}

.metric-label {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Supply Flowchart B2B Styles */
.section-flowchart {
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.flowchart-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.flow-step {
    flex: 1;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.flow-step:hover {
    transform: translateY(-4px);
    border-color: #84cc16;
    box-shadow: 0 10px 15px -3px rgba(132,204,22,0.1);
}

.flow-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(10, 37, 64, 0.05);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.25rem auto;
    transition: var(--transition);
}

.flow-step:hover .flow-icon {
    background-color: rgba(132,204,22,0.1);
    color: #65a30d;
}

.flow-step h4 {
    font-family: var(--font-title);
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.flow-step p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.flow-line {
    color: #cbd5e1;
    font-size: 1.5rem;
}

@media (max-width: 1000px) {
    .flow-line {
        display: none;
    }
    .flowchart-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
    .flow-step {
        width: 100%;
    }
}

/* Downloads Table Section Styles */
.downloads-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(10, 37, 64, 0.05);
    padding: 1.5rem;
    margin-top: 2rem;
}

.downloads-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.downloads-table th {
    padding: 1rem;
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 2px solid var(--border);
    background-color: #f8fafc;
}

.downloads-table td {
    padding: 1.25rem 1rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.downloads-table tr:last-child td {
    border-bottom: none;
}

.file-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    font-family: monospace;
}

.file-badge.pdf {
    background-color: #fee2e2;
    color: #ef4444;
}

.file-badge.xls {
    background-color: #dcfce7;
    color: #16a34a;
}

.btn-download {
    background-color: #f1f5f9;
    color: var(--primary);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-download:hover {
    background-color: #84cc16;
    color: #fff;
    border-color: #84cc16;
    transform: translateY(-1px);
}
