/* ==========================================================================
   CAPITAL ROAD ONLINE - LOGÍSTICA & TRANSPORTE (CABA, ARGENTINA)
   Design System: Industrial Highway Logistics & Fleet Operations
   ========================================================================== */

:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-alt: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-dark-card: #1e293b;
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #eff6ff;
    --accent-dark: #1e40af;
    --accent-road: #f59e0b;
    
    --border-light: #e2e8f0;
    --border-dark: #334155;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 14px;
    
    --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.top-bar {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-quick {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-quick a:hover {
    color: var(--accent-road);
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-arrepentimiento {
    color: #fde68a;
    border: 1px solid #fde68a;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.2s;
}

.top-arrepentimiento:hover {
    background-color: var(--accent-road);
    color: #0f172a;
}

.top-wa {
    color: #4ade80;
    font-weight: 500;
}

.top-cta {
    background-color: var(--accent);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.top-cta:hover {
    background-color: var(--accent-hover);
}

.main-nav-bar {
    padding: 16px 0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    background-color: var(--bg-dark);
    color: var(--accent-road);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 1px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid #334155;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text strong {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 0;
    position: relative;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--bg-dark);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    padding: 64px 0 80px;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-alt) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.section-tag {
    display: inline-block;
    color: var(--accent-dark);
    background-color: var(--accent-light);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.hero-text h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.18;
    color: var(--bg-dark);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-lead {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.hero-badge {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--bg-dark);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.hero-img-box {
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-dark);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--bg-alt);
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 54px;
}

.section-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--bg-dark);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.section-dark .section-title {
    color: #ffffff;
}

.section-sub {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 18px;
    color: var(--accent);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--bg-dark);
}

.card-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Interactive Freight Calculator Box */
.calc-box {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 36px;
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--bg-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--text-primary);
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.calc-result-box {
    margin-top: 28px;
    padding: 24px;
    background-color: var(--bg-alt);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent);
}

.calc-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent);
    margin: 10px 0;
}

/* Botón de Arrepentimiento Callout */
.arrepentimiento-box {
    background-color: #ffffff;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 36px;
    margin: 40px auto;
    max-width: 820px;
    text-align: center;
}

.arrepentimiento-box h3 {
    font-size: 24px;
    margin-bottom: 14px;
    color: var(--bg-dark);
}

.arrepentimiento-box p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Floating Arrepentimiento */
.floating-arrepentimiento {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background-color: var(--bg-dark);
    color: #fde68a;
    border: 1px solid #fde68a;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    z-index: 999;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-arrepentimiento:hover {
    background-color: var(--accent-road);
    color: #0f172a;
    border-color: var(--accent-road);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.site-footer {
    background-color: var(--bg-dark);
    color: #94a3b8;
    padding: 80px 0 0;
    border-top: 1px solid var(--border-dark);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo .logo-mark {
    background-color: #1e293b;
}

.footer-logo .logo-text {
    color: #ffffff;
}

.footer-desc {
    margin: 18px 0 24px;
    font-size: 14px;
    line-height: 1.7;
}

.legal-badge-box {
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    padding: 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.legal-badge-box p {
    margin-bottom: 4px;
}

.legal-badge-box strong {
    color: #ffffff;
}

.footer-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--accent-road);
    padding-left: 4px;
}

.footer-highlight-link {
    color: #fde68a !important;
    font-weight: 600;
}

.footer-contact-item {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.footer-contact-item strong {
    color: #ffffff;
    display: block;
    margin-bottom: 2px;
}

.footer-contact-item a:hover {
    color: var(--accent-road);
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding: 28px 0;
    font-size: 13px;
    background-color: #0b0f19;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.sub-legal {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
    max-width: 680px;
    line-height: 1.5;
}

.sub-legal strong {
    color: #94a3b8;
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #94a3b8;
    font-size: 12px;
}

.footer-bottom-links a:hover {
    color: var(--accent-road);
}

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

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

.modal-content {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 36px;
    max-width: 520px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    border-top: 6px solid var(--accent);
}

.modal-ticket {
    display: inline-block;
    background: var(--bg-alt);
    border: 1px dashed var(--accent);
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-dark);
    margin: 16px 0;
    font-family: monospace;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid, .grid-2 {
        grid-template-columns: 1fr;
    }
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    .nav-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        box-shadow: var(--shadow-md);
        padding: 20px 24px;
        border-top: 1px solid var(--border-light);
    }
    .nav-menu.active {
        display: block;
    }
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .hero-text h1 {
        font-size: 30px;
    }
    .section-title {
        font-size: 24px;
    }
    .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .top-bar-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .calc-box {
        padding: 20px;
    }
}
