/* --- CSS Variables & Reset --- */
:root {
    --primary-color: #0A2540; /* Deep blue / Patagonia */
    --secondary-color: #00D4FF; /* Vibrant cyan */
    --accent-color: #ff3b68; /* Red/Pink for scarcity/urgency */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    
    --font-main: 'Inter', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.section {
    padding: 80px 0;
    position: relative;
}

.grid {
    display: grid;
    gap: 30px;
}

/* Typography & Utilities */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.dual-color {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-dark-xl {
    font-size: 2.5rem;
    color: #1f2937;
    font-weight: 800;
}
.text-gray-medium {
    color: #6b7280;
    font-size: 1.1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.separator-line {
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.bg-white {
    background: #fff;
}

.premium-shadow {
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
}

/* Animations Initialization */
.anim-elem {
    opacity: 0;
}

/* --- Header --- */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

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

.logo img {
    height: 50px;
    background-color: var(--primary-color);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
}

.nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    margin-left: 25px;
    transition: var(--transition);
}

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

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 80px 0 100px; /* Reduced from 150px 0 180px to show cars */
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-swiper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}
.hero-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.95) 0%, rgba(10, 37, 64, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    padding: 0 15px;
}

.badge {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
    white-space: normal;
    max-width: 100%;
    line-height: 1.4;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero h1 .dual-color {
    background: linear-gradient(90deg, #fff 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Shape Dividers */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 2;
}
.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}
.custom-shape-divider-bottom .shape-fill {
    fill: var(--bg-white);
}
.custom-shape-divider-bottom-white .shape-fill {
    fill: var(--bg-white);
}
.custom-shape-divider-bottom-light .shape-fill {
    fill: var(--bg-light);
}

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.6);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn i {
    margin-right: 8px;
}

/* --- Contadores Animados --- */
.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    text-align: center;
}

.stat-card {
    padding: 30px;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 900;
}

.stat-card p {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* --- Servicios --- */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.service-card .icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .icon-wrapper {
    background: var(--secondary-color);
    color: var(--bg-white);
}

/* --- Flota y Tabs --- */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 25px;
    background-color: var(--bg-white);
    border: 2px solid #E2E8F0;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.cars-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.car-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.car-image-container {
    width: 100%;
    height: 220px; 
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    align-items: center; 
    justify-content: center;
    padding: 0; 
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center; 
    transition: transform 0.5s;
}

.car-card:hover .car-image {
    transform: scale(1.1);
}

.car-info {
    padding: 20px;
    text-align: center;
}

.car-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.car-price {
    color: var(--secondary-color);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Scarcity Alert (Contador) */
.scarcity-alert {
    background-color: #fff0f3;
    border: 1px solid #ffccd5;
    color: var(--accent-color);
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 15px;
    margin-bottom: 10px;
}

.scarcity-alert i {
    margin-right: 5px;
}

/* --- Ventana Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideInDown 0.4s;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.close-modal:hover {
    color: var(--accent-color);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
}

.modal-img-wrapper {
    background-color: #f1f5f9;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-img-wrapper img {
    max-width: 100%;
    height: auto;
}

.badge-sm {
    background-color: #e2e8f0;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.car-price-large {
    font-size: 1.8rem;
    color: var(--secondary-color);
    font-weight: 900;
    margin-bottom: 20px;
}

.modal-specs {
    list-style: none;
    margin-bottom: 30px;
}

.modal-specs li {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-specs i {
    color: var(--primary-color);
    width: 25px;
}

@keyframes fadeIn {
    from {opacity: 0} to {opacity: 1}
}
@keyframes slideInDown {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}


/* --- Destinos Turísticos --- */
.places-grid-tailwind {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .places-grid-tailwind {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .places-grid-tailwind {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tailwind-card {
    background-color: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.tw-img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.hover-scale {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.tailwind-card:hover .hover-scale {
    transform: scale(1.05);
}

.tw-info {
    padding: 1.5rem;
}

.tw-info h3 {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.tw-info p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

.map-container {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    padding: 2rem;
}

.map-container h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.map-wrapper iframe {
    border-radius: 0.5rem;
}

/* --- Quiénes Somos --- */
.nosotros-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.nosotros-img {
    flex: 1;
}

.nosotros-img img {
    width: 100%;
    height: auto;
}

.nosotros-text {
    flex: 1;
}

.signature {
    margin-top: 30px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* --- Testimonios (Swiper) --- */
.testimonial-swiper {
    padding: 20px 10px 50px;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}

.stars {
    color: #FFC107;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.author strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.author span {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.swiper-pagination-bullet-active {
    background: var(--secondary-color) !important;
}

/* --- Acordeón Términos --- */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover {
    color: var(--secondary-color);
}

.accordion-header .icon {
    transition: transform 0.3s ease;
    color: var(--secondary-color);
}

.accordion-header.active .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    padding: 0 25px 20px;
    color: var(--text-muted);
}

/* --- Dónde Encontrarnos (Nueva Sección) --- */
.ubicacion-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.ubicacion-card {
    flex: 1;
    min-width: 250px;
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.ubicacion-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.ubicacion-card h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

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

/* --- Contacto --- */
.contacto-wrapper {
    display: flex;
    gap: 50px;
    align-items: center;
}

.contacto-info {
    flex: 1;
}

.contact-list {
    list-style: none;
    margin-top: 30px;
}

.contact-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-list i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.contacto-form {
    flex: 1;
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
}

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

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

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 60px;
    background: #fff;
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* --- Floating WhatsApp --- */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
    animation: bounce-wa 2s infinite;
}

.floating-wa img {
    width: 100%;
    height: 100%;
}

.floating-wa:hover {
    transform: scale(1.1);
    animation: none;
}

@keyframes bounce-wa {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* --- Toasts (Social Proof) --- */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-white);
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(-120%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid var(--secondary-color);
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.toast-text {
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }
    
    .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav a {
        margin: 0 5px;
    }
    
    .hero h1 {
        font-size: 1.8rem; /* Further reduced for mobile */
        line-height: 1.2;
        word-wrap: break-word;
        padding: 0 10px;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .nosotros-content, .contacto-wrapper {
        flex-direction: column;
    }

    .modal-body {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .floating-wa {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .toast-container {
        left: 20px;
        bottom: 90px;
        right: 20px; /* Constrain width */
    }
    
    .toast {
        max-width: calc(100vw - 40px);
    }

    /* Nuevos ajustes para móviles */
    .section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .nosotros-text h2, 
    .nosotros-text h3 {
        font-size: 1.6rem !important;
        text-align: center;
    }

    .nosotros-text p,
    .nosotros-text ul {
        text-align: center;
    }

    .nosotros-text ul li {
        justify-content: center;
        display: flex;
    }

    .nosotros-content {
        gap: 30px;
    }

    .btn {
        margin: 0 auto;
        display: block;
    }

    .car-image-container {
        height: 180px;
    }
}
