/* Frontend Styles - NartAutos2 */
/* Zoom Blue Color Scheme */

:root {
    --primary-green: #2D8CFF;
    --light-green: #E5F1FF;
    --dark-green: #004B8D;
    --gradient-green: linear-gradient(135deg, #2D8CFF 0%, #004B8D 100%);
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --border-radius: 15px;
}

/* Global Styles */
body {
    background: linear-gradient(135deg, #F5F8FF 0%, #E3EEFF 100%);
    font-family: 'Poppins', sans-serif;
    color: #333;
    padding-top: 90px;
}

/* Navigation */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    z-index: 999;
}

.navbar-custom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.navbar-custom .navbar-brand {
    color: var(--primary-green) !important;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.navbar-custom .nav-link {
    color: #34423d !important;
    font-weight: 500;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    background: var(--primary-green);
    color: white !important;
}

/* About Page Specific Styles */
.hero-section {
    background: var(--gradient-green);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease-out;
}

.about-section {
    padding: 60px 0;
}

.feature-card {
    background: white;
    border: none;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.feature-card i {
    font-size: 40px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

/* Car Detail Page Specific Styles */
.btn-modern {
    background: var(--gradient-green);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(126, 139, 151, 0.3);
    color: #fff;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(126, 139, 151, 0.4);
}

.card-modern {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    background: #fff;
}

.card-modern:hover {
    transform: translateY(-4px);
}

.listing-header {
    padding: 30px 25px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.listing-headline {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: 10px 16px;
    border-radius: 999px;
    background: #ecf8f1;
    color: #2D8CFF;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
}

.listing-meta {
    color: #6c757d;
    margin-bottom: 20px;
}

.price-card {
    border-radius: var(--border-radius);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 25px;
    height: 100%;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2D8CFF;
}

.price-note {
    color: #6c757d;
    margin-top: 6px;
}

.section-card {
    border-radius: var(--border-radius);
    background: #fff;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    overflow: hidden;
}

.section-body {
    padding: 25px;
}

.section-title {
    font-weight: 700;
    margin-bottom: 18px;
    font-size: 1.1rem;
}

.spec-list,
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-list li,
.feature-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
}

.spec-list li:last-child,
.feature-list li:last-child {
    border-bottom: none;
}

.carousel-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.similar-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
    transition: transform 0.2s ease;
}

.similar-card:hover {
    transform: translateY(-5px);
}

.similar-card .card-body {
    padding: 18px;
}

.similar-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.btn-primary {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.btn-primary:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
}

/* Cards */
.card-modern {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-header-modern {
    background: var(--gradient-green);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    border: none;
}

.car-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.car-card:hover {
    transform: translateY(-5px);
}

.car-card .card-body {
    padding: 20px;
}

.car-image {
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.car-card:hover .car-image {
    transform: scale(1.05);
}

/* Car Card Button Styling */
.car-card .btn-modern,
.car-card .btn-primary {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Search Form Button Styling */
.search-form .btn-modern,
.search-form .btn-primary {
    font-size: 0.875rem;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-form .btn-secondary {
    font-size: 0.875rem;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Smaller Card Titles */
.car-card .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* Forms */
.search-form .form-control {
    border-radius: 25px;
    border: 2px solid #d7d4cf;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.search-form .form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(45, 140, 255, 0.25);
}

.search-form .form-select {
    border-radius: 10px;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Badges */
.badge-discount {
    background-color: #2D8CFF;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

/* Footer */
.footer-modern {
    background: var(--gradient-green);
    color: white;
    padding: 40px 0 20px;
    margin-top: 80px;
    position: relative;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--gradient-green);
    clip-path: polygon(0 0, 100% 100%, 100% 0);
}

footer {
    background-color: #333;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 1s ease-out;
}

/* Latest Listings Section */
.latest-listings {
    background: linear-gradient(135deg, #F8FAFF 0%, #E8F1FF 100%);
    position: relative;
}

.latest-listings::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    z-index: 1;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 1rem;
    position: relative;
    z-index: 3;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -0.02em;
    line-height: 1.2;
    transition: all 0.3s ease;
    cursor: default;
    margin-top: 2rem;
}

.section-title:hover {
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.section-title:hover::after {
    transform: scaleX(1.1);
    box-shadow: 0 4px 12px rgba(45, 140, 255, 0.4);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    margin: 1rem auto 0;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(45, 140, 255, 0.3);
    transition: all 0.3s ease;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0;
    position: relative;
    z-index: 3;
    text-align: center;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    opacity: 0.8;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Title Section Animation */
.latest-listings .col-12 {
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Responsive Title Styling */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        letter-spacing: -0.01em;
    }
    
    .section-title::after {
        width: 60px;
        height: 3px;
        margin: 0.8rem auto 0;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Contact Page Specific Styles */
.contact-section {
    padding: 60px 0;
}

.contact-card {
    background: white;
    border: none;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 30px;
}

.contact-card i {
    font-size: 40px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.btn-send {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.btn-send:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
}

.btn-whatsapp {
    background-color: #2D8CFF;
    border-color: #2D8CFF;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn-whatsapp:hover {
    background-color: #004B8D;
    border-color: #004B8D;
    color: white;
    text-decoration: none;
}
.car-selector {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.comparison-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comparison-table th {
    background-color: var(--primary-green);
    color: white;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.car-image {
    max-width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}
.calculator-section {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 30px;
    margin-bottom: 30px;
}

.btn-calculate {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
    padding: 12px 30px;
    font-weight: bold;
}

.btn-calculate:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
}

.result-box {
    background-color: var(--light-green);
    border: 2px solid var(--primary-green);
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.result-row strong {
    color: var(--dark-green);
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 2px solid var(--primary-green);
    font-size: 1.3em;
    font-weight: bold;
    color: var(--dark-green);
}

.info-card {
    background: #e7f3ff;
    border-left: 4px solid var(--primary-green);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}