/* ============================================
   GenesisOwl - Premium Transport Service
   Design System & Core Styles
   ============================================ */

/* === CSS VARIABLES === */
:root {
    /* Colors - Luxury Transport Palette (Green Edition) */
    --primary: #1b4d3e;
    /* Verde bosque profundo premium */
    --primary-light: #2d6a56;
    --primary-dark: #0d2e24;
    --accent: #d4af37;
    /* Dorado elegante */
    --accent-light: #e5c76b;
    --accent-dark: #b59429;
    --success: #38a169;
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-gray: #edf2f7;
    --white: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Font Sizes */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */
    --text-5xl: 3rem;
    /* 48px */

    /* Spacing */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 2rem;
    /* 32px */
    --spacing-lg: 4rem;
    /* 64px */
    --spacing-xl: 6rem;
    /* 96px */

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, .1), 0 2px 4px rgba(0, 0, 0, .06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, .1), 0 4px 6px rgba(0, 0, 0, .05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, .15), 0 10px 10px rgba(0, 0, 0, .04);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;

    /* Border Radius */
    --radius-sm: 0.25rem;
    /* 4px */
    --radius-md: 0.5rem;
    /* 8px */
    --radius-lg: 1rem;
    /* 16px */
    --radius-full: 9999px;

    /* Container */
    --container-max-width: 1200px;
    --container-padding: 1.5rem;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

/* === LAYOUT === */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--spacing-lg) 0;
}

.section-lg {
    padding: var(--spacing-xl) 0;
}

/* === GRID SYSTEM === */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* === FLEXBOX UTILITIES === */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col {
    flex-direction: column;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: var(--text-lg);
}

.btn-sm {
    padding: 0.625rem 1.5rem;
    font-size: var(--text-sm);
}

/* === CARDS === */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.card-title {
    font-size: var(--text-xl);
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-medium);
    margin-bottom: 1rem;
}

/* === HEADER === */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

.header-scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--container-padding);
}

.logo {
    height: 50px;
    width: auto;
}

/* === NAVIGATION === */
.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: var(--font-weight-medium);
    color: var(--text-dark);
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-btn {
    padding: 0.25rem 0.75rem;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-medium);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    background: var(--bg-gray);
    color: var(--primary);
}

.lang-btn.active {
    background: var(--primary);
    color: var(--white);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-vehicle.webp') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: var(--text-xl);
    margin-bottom: 2rem;
    color: var(--accent-light);
    font-weight: var(--font-weight-medium);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* === WHATSAPP BUTTON === */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #25D366;
    color: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-base);
}

.whatsapp-btn:hover {
    background: #1ebe57;
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
}

/* === FEATURES SECTION === */
.features {
    background: var(--bg-light);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-md);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--white);
}

.feature-title {
    font-size: var(--text-xl);
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.feature-text {
    color: var(--text-medium);
    line-height: 1.7;
}

/* === UTILITIES === */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

.text-light {
    color: var(--text-light);
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-white {
    background-color: var(--white);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    h1 {
        font-size: var(--text-4xl);
    }

    h2 {
        font-size: var(--text-3xl);
    }

    h3 {
        font-size: var(--text-2xl);
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Mobile Navigation */
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }

    .nav.active {
        transform: translateX(0);
    }

    .hero {
        min-height: 500px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }

    .whatsapp-btn {
        padding: 0.875rem 1.25rem;
        font-size: var(--text-sm);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--text-3xl);
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }
}

/* === LOADING STATES === */
.loading-skeleton {
    background: linear-gradient(90deg, var(--bg-gray) 25%, var(--bg-light) 50%, var(--bg-gray) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* === PRINT STYLES === */
@media print {

    .header,
    .whatsapp-float,
    .btn {
        display: none;
    }
}

/* === FORMS === */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-dark);
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--bg-gray);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    font-family: inherit;
    transition: all var(--transition-fast);
    background-color: var(--white);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.1);
}

/* === CONTACT PAGE === */
.contact-methods {
    margin-bottom: 4rem;
}

.contact-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.contact-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* === FAQ === */
.faq {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.faq:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: var(--font-weight-semibold);
    color: var(--text-dark);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform var(--transition-base);
}

.faq.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    color: var(--text-medium);
    transition: all var(--transition-base);
}

.faq.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

/* === GALLERY SECTION === */
.collage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    gap: 15px;
    grid-auto-flow: dense;
}

.collage-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

/* Hover Effects */
.collage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.collage-item:hover img {
    transform: scale(1.1);
}

/* Masonry-style spans for visual interest */
@media (min-width: 768px) {
    .collage-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .collage-item:nth-child(4) {
        grid-column: span 2;
    }

    .collage-item:nth-child(5) {
        grid-row: span 2;
    }

    .collage-item:nth-child(9) {
        grid-column: span 2;
    }
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .collage {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .collage-item {
        height: 300px;
        /* Fixed height for mobile consistency */
    }
}