/* 
   Auto Deluxe Ocasión - Stylesheet
   Luxury & Professional (Navy Blue / White)
*/

:root {
    --primary: #0A192F;
    /* Navy Blue */
    --secondary: #112240;
    /* Lighter Navy */
    --accent: #64FFDA;
    /* Teal Accent for trust and tech */
    --blue-bright: #3A86FF;
    --text-light: #CCD6F6;
    --text-white: #FFFFFF;
    --text-muted: #8892B0;
    --white: #FFFFFF;
    --gray-bg: #F8F9FA;
    --radius: 4px;
    /* More angular, serious feel */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --banner-height: 40px;
    --nav-height: 90px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

.narrow {
    max-width: 800px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

h1,
h2,
h3 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

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

.btn-primary:hover {
    background: #1b6bff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.4);
}

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

.btn-outline-white {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-blue {
    background: transparent;
    border: 2px solid var(--blue-bright);
    color: var(--blue-bright);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 22px 44px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* Navigation */
.top-banner {
    background: var(--primary);
    color: white;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    font-size: 0.85rem;
    transition: 0.3s;
}

.container-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timer {
    font-family: monospace;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.navbar {
    height: 90px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
    font-weight: 900;
    line-height: 0.8;
}

.logo-main {
    font-size: 1.8rem;
    color: var(--primary);
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--blue-bright);
    letter-spacing: 4px;
    margin-top: 5px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-phone {
    font-weight: 800;
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    padding-top: calc(var(--banner-height) + var(--nav-height));
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-img-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 25, 47, 0.96) 0%, rgba(10, 25, 47, 0.7) 100%);
}

.hero-content {
    max-width: 650px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.highlight {
    color: var(--blue-bright);
}

.hero-text {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    gap: 30px;
}

.trust-item {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Trust Bar */
.trust-bar {
    background: var(--gray-bg);
    padding: 50px 0;
    border-bottom: 1px solid #eee;
}

.trust-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.trust-card {
    flex: 1;
    display: flex;
    items-center;
    gap: 15px;
}

.t-icon {
    font-size: 2rem;
}

.trust-card h3 {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.trust-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Comparison Section */
.comparison {
    padding: 120px 0;
    background: white;
}

.section-tag {
    color: var(--blue-bright);
    font-weight: 800;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 15px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 40px;
}

.comp-list {
    list-style: none;
    margin: 40px 0;
}

.comp-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
}

.comp-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 900;
}

.table-card {
    background: var(--primary);
    border-radius: var(--radius);
    padding: 50px;
    color: white;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.table-header {
    font-weight: 800;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.table-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table-row.highlight {
    color: var(--accent);
    font-size: 1.2rem;
}

.table-footer {
    text-align: right;
    padding-top: 20px;
    font-weight: 800;
    color: var(--accent);
    font-size: 1.4rem;
}

/* Stock Section */
.stock {
    padding: 100px 0;
    background: var(--gray-bg);
}

.stock-header {
    text-align: center;
    margin-bottom: 60px;
}

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

.car-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.car-card:hover {
    transform: translateY(-5px);
}

.car-img {
    position: relative;
    height: 250px;
}

.car-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--primary);
    padding: 5px 12px;
    font-weight: 800;
    font-size: 0.75rem;
    border-radius: 20px;
}

.car-info {
    padding: 25px;
}

.car-info h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.car-specs {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.car-price {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.current-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.stock-footer {
    text-align: center;
    margin-top: 60px;
}

/* Reliability */
.reliability {
    padding: 80px 0;
}

.reliability-card {
    background: var(--primary);
    border-radius: var(--radius);
    padding: 80px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.points-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.p-item {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-light);
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background: white;
}

.test-card {
    max-width: 700px;
    margin: 40px auto 0;
    text-align: center;
}

.test-card p {
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    margin-bottom: 40px;
    line-height: 1.4;
    color: var(--secondary);
}

.t-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid var(--gray-bg);
}

.t-info strong {
    display: block;
    font-size: 1rem;
}

.t-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--gray-bg);
}

.contact-details {
    margin-top: 40px;
}

.c-item {
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary);
}

.contact-form {
    background: white;
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    height: 120px;
    resize: none;
}

/* Footer */
.footer {
    background: #050E1A;
    color: white;
    padding: 100px 0 0;
}

.footer-wrapper {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    padding-bottom: 100px;
}

.footer-brand .logo {
    margin-bottom: 30px;
}

.footer-brand p {
    opacity: 0.6;
    font-size: 0.9rem;
}

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

.f-col h4 {
    font-size: 0.75rem;
    color: var(--blue-bright);
    margin-bottom: 30px;
}

.f-col a {
    display: block;
    color: white;
    opacity: 0.7;
    margin-bottom: 15px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.f-col a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    font-size: 0.75rem;
    color: #555;
}

.container-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons span {
    margin-left: 15px;
    font-weight: 800;
    cursor: pointer;
    color: white;
}

/* Popups */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
}

.popup {
    background: white;
    padding: 60px 40px;
    border-radius: var(--radius);
    max-width: 450px;
    width: 90%;
    position: relative;
    text-align: center;
}

.close-p {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #ccc;
}

.p-visual {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
}

.popup h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.popup p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
}

#leadCapture input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    margin-bottom: 15px;
    text-align: center;
}

/* Scroll Promo */
.scroll-promo {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1500;
    display: none;
    max-width: 350px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.s-content {
    display: flex;
    gap: 15px;
    align-items: center;
}

.s-icon {
    font-size: 2.5rem;
}

.s-text strong {
    display: block;
    font-size: 0.9rem;
}

.s-text p {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.s-text a {
    font-weight: 800;
    color: var(--blue-bright);
    font-size: 0.8rem;
}

.close-s {
    position: absolute;
    top: 5px;
    right: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #ccc;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-container {
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .trust-wrapper {
        flex-wrap: wrap;
    }

    .trust-card {
        min-width: 200px;
    }

    .stock-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        top: 30px;
        height: 70px;
    }

    :root {
        --banner-height: 30px;
        --nav-height: 70px;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .stock-grid {
        grid-template-columns: 1fr;
    }

    .points-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}
