/*
Theme Name: AutoElite V13
Theme URI: https://www.rentingautos.co
Author: AutoElite Group S.A.S
Author URI: https://www.rentingautos.co
Description: Tema oficial de AutoElite Group S.A.S para renting de vehículos en Colombia. Incluye portada, catálogo de vehículos, páginas de detalle y avisos legales.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: autoelite
Tags: business, one-column, custom-logo, custom-menu
*/

/* --- VARIABLES --- */
:root {
    --primary-color: #3164c4; /* Blue */
    --primary-hover: #224a96;
    --dark-bg: #0b1325; /* Footer and dark text */
    --light-bg: #f4f6f9; /* Catalog bg */
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --font-main: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

/* --- RESET & GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 3rem;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    color: var(--dark-bg);
    font-weight: 700;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: #e2e8f0;
    color: var(--dark-bg);
}

.btn-secondary:hover {
    background-color: #cbd5e1;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark-bg);
}

.btn-outline-full {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: transparent;
    border: 1px solid #d1d5db;
    color: var(--primary-color);
    text-align: center;
    border-radius: 5px;
    margin-top: 15px;
}

.btn-outline-full:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* --- HEADER (STICKY) --- */
.header {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    background-color: rgba(11, 19, 37, 0.95);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    font-weight: 400;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.main-nav a {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0px;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.btn-nav {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    padding: 150px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: var(--dark-bg); /* Fallback */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/img/au-web-1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3; /* Darken bg image */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-text {
    flex: 1;
    color: var(--white);
    padding-right: 50px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 10px;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #e2e8f0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.hero-features {
    display: flex;
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    line-height: 1.3;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.car-img {
    max-width: 120%;
    transform: translateX(10%);
    display: block;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

/* --- BENEFICIOS SECTION --- */
.beneficios-section {
    padding: 60px 0;
    background-color: var(--white);
    border-bottom: 1px solid #e2e8f0;
}

.beneficios-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.beneficio-card {
    flex: 1;
    text-align: center;
    min-width: 200px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.beneficio-card:hover {
    transform: translateY(-10px);
}

.beneficio-card .icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(49, 100, 196, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin: 0 auto 15px;
}

.beneficio-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.beneficio-card p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* --- CATALOGO SECTION --- */
.catalogo-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.section-header {
    margin-bottom: 50px;
}

.badge {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ── Car Card ── */
.car-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.13);
}

/* Image wrapper */
.car-img-wrap {
    background-color: #ffffff;
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.car-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: 30% center;
    display: block;
    mix-blend-mode: multiply;
}

/* Mazda CX-5: voltear horizontalmente para que mire hacia la derecha y centrar un poco */
.catalogo-grid .car-card:nth-child(2) .car-img-wrap img {
    object-position: 70% center;
    transform: scaleX(-1);
}

/* Kia Sportage: voltear horizontalmente para que mire hacia la derecha y centrar un poco */
.catalogo-grid .car-card:nth-child(3) .car-img-wrap img {
    object-position: 70% center;
    transform: scaleX(-1);
}

/* Info block */
.car-info {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.car-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 4px;
}

.specs {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 14px;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 2px;
}

.price-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--dark-bg);
    margin-bottom: 16px;
    line-height: 1.1;
}

.price-value span {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-light);
}

/* Cotizar button - matches image 2 style */
.btn-cotizar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 16px;
    background-color: var(--white);
    border: 1.5px solid #d1d5db;
    color: var(--dark-bg);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 7px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
    text-decoration: none;
}

.btn-cotizar i {
    font-size: 0.75rem;
    color: var(--text-light);
    transition: transform 0.2s;
}

.btn-cotizar:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-cotizar:hover i {
    color: var(--white);
    transform: translateX(4px);
}

/* --- SOLUCIONES SECTION --- */
.soluciones-section {
    padding: 80px 0;
    background-color: var(--white);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 40px;
    position: relative;
}

.step {
    text-align: center;
    flex: 1;
    position: relative;
    padding: 0 10px;
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--light-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--dark-bg);
    margin: 0 auto 15px;
    position: relative;
    z-index: 2;
}

.step-number {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(20px);
    background-color: var(--primary-color);
    color: var(--white);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    z-index: 3;
}

.step h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.step p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.step-line {
    flex: 0 0 50px;
    height: 2px;
    background-color: #e2e8f0;
    margin-top: 30px;
}

/* Soluciones Cards */
.soluciones-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.solucion-card {
    background-color: var(--light-bg);
    border-radius: 15px;
    display: flex;
    overflow: hidden;
    transition: var(--transition);
}

.solucion-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.solucion-content {
    padding: 30px;
    flex: 1;
}

.solucion-content h3 {
    margin-bottom: 15px;
}

.solucion-content ul {
    margin-bottom: 20px;
}

.solucion-content li {
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.solucion-content li i {
    color: var(--primary-color);
}

.link-blue {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.link-blue i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.link-blue:hover i {
    transform: translateX(5px);
}

.solucion-img {
    flex: 1;
}

.solucion-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- FAQ SECTION --- */
.faq-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item[open] {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.faq-item summary {
    padding: 20px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark-bg);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 20px 20px 20px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding-top: 0;
}

.footer-form-section {
    background-color: #1a2942;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-form-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.form-text {
    flex: 1;
}

.form-text h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.form-text p {
    font-size: 0.9rem;
    color: #cbd5e1;
}

.footer-form {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
}

.inputs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.inputs-row .input-group {
    min-width: 200px;
    flex: 1;
}

.terms-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
}

.terms-row .input-group {
    margin-bottom: 0 !important;
    min-width: 300px;
    flex: 1;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.75rem;
    margin-bottom: 5px;
    color: #cbd5e1;
}

.input-group input,
.input-group select {
    padding: 10px;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    color: var(--white);
    font-size: 0.85rem;
}

.input-group input::placeholder {
    color: rgba(255,255,255,0.5);
}

.input-group select option {
    color: var(--dark-bg);
}

.footer-bottom {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1.5fr;
    gap: 20px;
}

.footer-logo h2 {
    color: var(--white);
    margin-bottom: 5px;
}

.footer-logo .subtitle {
    font-size: 0.8rem;
    color: #cbd5e1;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact i {
    width: 20px;
    color: var(--primary-color);
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20b858;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .catalogo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .soluciones-grid {
        grid-template-columns: 1fr;
    }
    .footer-form {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .header-container {
        gap: 0;
    }
    .hero-title {
        font-size: 2rem;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--dark-bg);
        padding: 20px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .main-nav.active {
        display: flex;
        flex-direction: column;
    }
    .main-nav .nav-links {
        flex-direction: column;
        gap: 15px;
    }
    .btn-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
        flex-shrink: 0;
    }
    .logo {
        max-width: 75%;
    }
    .logo img {
        max-width: 100%;
        height: auto !important;
        max-height: 40px;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        padding-right: 0;
    }
    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero-image {
        margin-top: 50px;
    }
    .car-img {
        max-width: 100%;
        transform: none;
    }
    .steps-container {
        flex-direction: column;
        gap: 30px;
    }
    .step-line {
        display: none;
    }
    .footer-form-wrapper {
        flex-direction: column;
    }
    .footer-form {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .catalogo-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}


/* --- PAGE HEADER (Catálogo / Legales) --- */
.page-header {
    background-color: #ffffff;
    padding: 120px 0 60px 0;
    text-align: center;
    color: #333333;
}
.page-header p {
    color: #666666;
    font-size: 1.2rem;
    margin-top: 15px;
}

/* --- VEHICLE DETAIL --- */
.vehicle-detail-section {
    padding: 120px 0 80px 0;
    background-color: #f9f9f9;
}
.vehicle-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
@media(max-width: 991px) {
    .vehicle-layout {
        grid-template-columns: 1fr;
    }
}
.vehicle-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.main-img {
    width: 100%;
    border-radius: 8px;
    object-fit: contain;
    background: #f1f1f1;
    padding: 20px;
    height: 350px;
}
.thumbnails {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.thumb-img {
    width: 100%;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s ease;
}
.thumb-img:hover {
    border-color: var(--primary-color);
}
.vehicle-info h1 {
    color: #1a2b4c;
    font-size: 2.2rem;
    margin-bottom: 10px;
}
.v-specs {
    color: #666;
    font-weight: 500;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.v-badge {
    background: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: inline-block;
}
.pricing-table-container {
    margin-top: 25px;
}
.pricing-table-container h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}
.pricing-table th, .pricing-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.pricing-table th {
    background-color: #f5f5f5;
    color: #333;
    font-weight: 600;
}
.pricing-table tr:hover {
    background-color: #f9f9f9;
}
.price-highlight {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}
.v-description {
    margin-top: 25px;
    line-height: 1.7;
    color: #555;
}
.target-list {
    margin-top: 15px;
    padding-left: 20px;
    color: #555;
}
.target-list li {
    margin-bottom: 5px;
}
.vehicle-detail-section .btn-large {
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    padding: 15px;
    margin-top: 20px;
}
.back-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

/* --- LEGAL CONTENT --- */
.legal-content {
    padding: 80px 0;
    background-color: #f9f9f9;
}
.legal-content .container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.legal-content h2 {
    color: #1a2b4c;
    margin-top: 40px;
    margin-bottom: 20px;
}
.legal-content h3 {
    color: #2b457a;
    margin-top: 25px;
    margin-bottom: 15px;
}
.legal-content p, .legal-content li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}
.legal-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}
.legal-content hr {
    margin: 40px 0;
    border: none;
    border-top: 1px solid #eee;
}

/* --- BLOG / GENERIC PAGES --- */
.blog-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    min-height: 50vh;
}
.blog-section article {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.blog-section article h2 a {
    color: #1a2b4c;
    text-decoration: none;
}
.blog-section .entry-content {
    margin-top: 15px;
    color: #555;
    line-height: 1.8;
}

/* --- WORDPRESS CORE / CUSTOM LOGO --- */
.custom-logo-link img,
.logo img {
    max-height: 46px;
    width: auto;
}
.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 10px;
}
.terms-label {
    font-size: 0.75rem;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.terms-label input[type="checkbox"] {
    margin-top: 4px;
}
.terms-label a {
    color: var(--primary-color);
}

/* Custom Logo Fix */
.custom-logo-link img { max-height: 40px; width: auto; object-fit: contain; }

