/* ==========================================
   VARIABLES & RESET
   ========================================== */
:root {
    /* Paleta de colores - Negro, Blanco, Gris y Cobre */
    --color-primary: #B87333;        /* Cobre principal */
    --color-primary-light: #CD853F;  /* Cobre claro */
    --color-primary-dark: #8B4513;   /* Cobre oscuro */
    --color-secondary: #000000;      /* Negro puro */
    --color-accent: #808080;         /* Gris medio */
    --color-white: #ffffff;          /* Blanco puro */
    --color-text: #E5E5E5;          /* Gris muy claro para texto */
    --color-text-dark: #1a1a1a;     /* Negro suave */
    --color-bg: #000000;            /* Fondo negro */
    --color-bg-light: #1a1a1a;      /* Fondo negro suave */
    --color-bg-gray: #2a2a2a;       /* Fondo gris oscuro */
    --color-gray-light: #d3d3d3;    /* Gris claro */
    --color-gray-dark: #404040;     /* Gris oscuro */
    
    /* Tipografía */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Syne', sans-serif;
    
    /* Espaciado */
    --padding-x-desktop: 60px;
    --padding-x-tablet: 40px;
    --padding-x-mobile: 20px;
    
    /* Transiciones */
    --transition-smooth: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ==========================================
   UTILITIES & PADDING CLASSES
   ========================================== */
.padding-x {
    padding-left: var(--padding-x-desktop);
    padding-right: var(--padding-x-desktop);
}

.padding-y-100100 {
    padding-top: 100px;
    padding-bottom: 100px;
}

.padding-y-10050 {
    padding-top: 100px;
    padding-bottom: 50px;
}

.padding-y-5050 {
    padding-top: 50px;
    padding-bottom: 50px;
}

.padding-y-50100 {
    padding-top: 50px;
    padding-bottom: 100px;
}

@media (max-width: 1024px) {
    .padding-x {
        padding-left: var(--padding-x-tablet);
        padding-right: var(--padding-x-tablet);
    }
    .padding-y-100100 { padding-top: 70px; padding-bottom: 70px; }
    .padding-y-10050 { padding-top: 70px; padding-bottom: 35px; }
    .padding-y-5050 { padding-top: 35px; padding-bottom: 35px; }
    .padding-y-50100 { padding-top: 35px; padding-bottom: 70px; }
}

@media (max-width: 767px) {
    .padding-x {
        padding-left: var(--padding-x-mobile);
        padding-right: var(--padding-x-mobile);
    }
    .padding-y-100100 { padding-top: 60px; padding-bottom: 60px; }
    .padding-y-10050 { padding-top: 60px; padding-bottom: 25px; }
    .padding-y-5050 { padding-top: 25px; padding-bottom: 25px; }
    .padding-y-50100 { padding-top: 25px; padding-bottom: 60px; }
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-bg);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn-service {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-service:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-social {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    border: 1px solid var(--color-accent);
    padding: 14px 28px;
    margin-bottom: 10px;
    width: 100%;
}

.btn-social:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(3, 3, 3, 0.3), rgba(3, 3, 3, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-link {
    display: block;
    cursor: pointer;
}

.lottie-arrow {
    width: 60px;
    height: 60px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-section {
    min-height: 100vh;
    background-color: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    min-height: 100vh;
}

.service-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 60px;
    min-height: 50vh;
}

.service-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.service-card:hover .service-background {
    transform: scale(1.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

.service-content {
    position: relative;
    z-index: 2;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
}

.service-arrow {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    color: var(--color-white);
    opacity: 0.6;
    transform: rotate(45deg);
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        padding: 40px;
    }
    .service-title {
        font-size: 36px;
    }
}

/* ==========================================
   TEXT PANEL (Cool Split Animation)
   ========================================== */
.text-panel {
    background-color: var(--color-bg-light);
}

.cool-split {
    font-family: var(--font-heading);
    font-size: clamp(28px, 5vw, 64px);
    font-weight: 600;
    color: var(--color-accent);
    line-height: 1.4;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-section {
    background-color: var(--color-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: 24px;
    overflow: hidden;
    height: 600px;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.slideshow-slide.active {
    opacity: 1;
}

.slideshow-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.section-label i {
    color: var(--color-primary);
    font-size: 12px;
}

.section-label h3 {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 30px;
}

.about-text p {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 20px;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image {
        height: 400px;
    }
}

/* ==========================================
   DETAILED SERVICES SECTION
   ========================================== */
.detailed-services {
    background-color: var(--color-bg-light);
}

.section-header {
    margin-bottom: 60px;
}

.services-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cardservicios {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #202020;
    border-radius: 24px;
    padding: 30px;
    transition: var(--transition-smooth);
}

.cardservicios:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-accent);
    transform: translateY(-5px);
}

.service-detailed-image {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    height: 250px;
}

.service-detailed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cardservicios:hover .service-detailed-image img {
    transform: scale(1.1);
}

.cardservicios h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 15px;
}

.cardservicios p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.7;
}

/* ==========================================
   FLEET SECTION
   ========================================== */
.fleet-section {
    background-color: var(--color-bg);
}

.fleet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.fleet-image {
    border-radius: 24px;
    overflow: hidden;
    height: 600px;
}

.fleet-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.fleet-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.fleet-slide.active {
    opacity: 1;
}

.fleet-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fleet-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 600;
    color: var(--color-accent);
    line-height: 1.4;
    margin-bottom: 40px;
}

.fleet-features {
    display: grid;
    gap: 30px;
}

.fleet-feature {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    filter: invert(1);
}

.fleet-feature h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-white);
}

.fleet-feature p {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .fleet-grid {
        grid-template-columns: 1fr;
    }
    .fleet-image {
        height: 400px;
    }
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.cajacontacto {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-accent);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.cta-logo {
    max-width: 300px;
    margin: 0 auto 30px;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* ==========================================
   VIDEO MODAL
   ========================================== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.video-modal-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    color: var(--color-white);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.video-modal-close:hover {
    color: var(--color-primary);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.animate-fade-up,
.animate-fade-in,
.animate-fade-down {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.26, -0.14, 0, 1.01);
}

.animate-fade-up {
    transform: translateY(50px);
}

.animate-fade-down {
    transform: translateX(50px);
}

.animate-fade-up.visible,
.animate-fade-in.visible,
.animate-fade-down.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Specific delays */
[data-delay="200"] {
    transition-delay: 0.2s;
}

[data-delay="400"] {
    transition-delay: 0.4s;
}

[data-delay="600"] {
    transition-delay: 0.6s;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 767px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .service-card {
        padding: 30px;
    }
    
    .service-title {
        font-size: 28px;
    }
    
    .cajacontacto {
        padding: 40px 30px;
    }
}