/*
Theme Name: Fusion Livan
Theme URI: https://livanauto.es/
Author: Antigravity AI
Description: Un tema premium para BERA LIVAN, la nueva era de movilidad en Venezuela.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fusion-livan
*/

:root {
    /* Color Palette - Fusión BERA & Livan */
    --primary: #e21f26;
    /* Rojo BERA */
    --secondary: #1a1a1a;
    /* Negro profundo */
    --accent: #007bff;
    /* Azul Livan para acentos sutiles */
    --bg-light: #ffffff;
    --bg-alt: #f8f9fa;
    --text-main: #333333;
    --text-muted: #666666;
    --white: #ffffff;

    /* Typography */
    --font-main: 'Montserrat', sans-serif;

    /* Spacing & Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Typography Helpers */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Global Image Fix */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    width: 100%;
    overflow: hidden;
}

/* Premium Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #c41a20;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(226, 31, 38, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Header & Navigation */
header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 900;
}

.logo span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    font-size: 0.95rem;
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://livanauto.es/wp-content/uploads/2025/02/Mesa-de-trabajo-2.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-top: 0;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s ease;
}

/* Models Grid */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.car-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.car-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.car-info {
    padding: 30px;
}

.car-info h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.specs-list {
    list-style: none;
    margin-bottom: 20px;
}

.specs-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    nav {
        display: none;
    }
}

.detalles-grid,
.alianza-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.detalles-content,
.detalles-visual {
    width: 100%;
}

/* Typo fixes */
.section-title {
    color: var(--primary);
    margin-bottom: 20px;
}

.section-subtitle {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.brand-color {
    color: var(--primary);
}

.text-white {
    color: white;
}

.bg-dark {
    background-color: var(--secondary);
}

/* Carousel */
.carousel-container {
    position: relative;
    max-width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #000;
    aspect-ratio: 16/9;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    animation: fade 0.5s;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--primary);
}

.carousel-btn.prev {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.carousel-btn.next {
    right: 0;
    border-radius: 4px 0 0 4px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background: var(--primary);
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

/* Specs Refinement */
.specs-box {
    background: var(--bg-alt);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--primary);
}

.specs-title {
    margin-bottom: 20px;
    color: var(--secondary);
}

/* Visual Column */
.side-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.brand-badge {
    margin-bottom: 30px;
    text-align: center;
}

.brand-badge img {
    height: 60px;
}

.visual-caption {
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    color: var(--text-muted);
}

/* Responsive Overrides */
@media (max-width: 992px) {

    .detalles-grid,
    .alianza-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }

    .gallery-main {
        aspect-ratio: 1/1;
    }

    .t-img {
        width: 70px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}