/* Variables y Configuración */
:root {
    --primary-color: #0A3D80; /* Azul Corporativo */
    --primary-light: #1A5BB8;
    --primary-dark: #052451;
    --accent-color: #00B4D8; /* Cian / Neón ligero */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #F4F7FB;
    --bg-white: #FFFFFF;
    --bg-dark: #0A111A;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(10, 61, 128, 0.15);
    --transition: all 0.3s ease;
    
    --font-main: 'Inter', sans-serif;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilidades */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.light-text, .light-text h2, .light-text p { color: #FFFFFF; }
.bg-light { background-color: var(--bg-light); }
.bg-corporate { background-color: var(--primary-color); color: #FFF; }
.bg-dark { background-color: var(--bg-dark); color: #FFF; }

.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}
.light-text .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.title-underline {
    height: 4px;
    width: 60px;
    background-color: var(--accent-color);
    margin: 0 auto;
    border-radius: 2px;
}

.title-underline.light {
    background-color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #FFF;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

.btn-primary:hover {
    background-color: #0096B4;
    color: #FFF;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.5);
}

.mt-4 { margin-top: 2rem; }

/* Navegación */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    padding: 15px 0;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 45px;
    transition: var(--transition);
}

.logo-text {
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary-dark);
    text-transform: uppercase;
    line-height: 1.1;
    text-align: left;
    transition: var(--transition);
}

.header.scrolled .logo img {
    height: 35px;
}

.header.scrolled .logo-text {
    font-size: 0.9rem;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link.btn-contact {
    background-color: var(--primary-color);
    color: #FFF;
    padding: 10px 24px;
    border-radius: 50px;
}

.nav-link.btn-contact::after {
    display: none;
}

.nav-link.btn-contact:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(10, 61, 128, 0.3);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background-color: #0A111A;
    background-image: url('../img/hero.png');
    background-size: cover;
    background-position: center;
}

.hero-bg iframe, #youtube-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 36, 81, 0.9) 0%, rgba(10, 61, 128, 0.7) 100%);
    z-index: -1;
}

.hero-content {
    color: #FFF;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    color: #FFF;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

/* Quiénes Somos */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.lead {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
}

.image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.image-wrapper.shadow {
    box-shadow: var(--shadow);
}

.image-wrapper img {
    transition: var(--transition);
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

/* Nuestras Soluciones */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--accent-color);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-light);
}

/* Ventajas Competitivas */
.advantages-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.advantage-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.adv-icon {
    font-size: 2rem;
    color: var(--accent-color);
    background: rgba(0, 180, 216, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.adv-text h4 {
    color: #FFF;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.adv-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Equipo y Flota */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.align-center {
    align-items: center;
}

.col-text .section-header {
    text-align: left;
    margin-bottom: 30px;
}

.col-text .title-underline {
    margin: 0;
}

.col-text p {
    margin-bottom: 20px;
}

.corporate-quote {
    background: #FFF;
    padding: 30px;
    border-left: 4px solid var(--accent-color);
    border-radius: 0 12px 12px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 30px 0;
    position: relative;
}

.corporate-quote i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.corporate-quote p {
    margin-bottom: 0;
    font-style: italic;
    font-weight: 600;
    color: var(--primary-dark);
}

/* Clientes */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.client-box {
    background: #FFF;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: #333;
    transition: var(--transition);
    filter: grayscale(100%);
    padding: 15px 10px;
}

.client-box img {
    max-width: 90%;
    max-height: 60%;
    object-fit: contain;
}

.client-name {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.1;
    opacity: 0.8;
}

.client-box:hover {
    filter: grayscale(0%);
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Contacto */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.contact-card .icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(0, 180, 216, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-card i {
    font-size: 2rem;
    color: var(--accent-color);
}

.contact-card h4 {
    color: #FFF;
    margin-bottom: 15px;
}

.contact-card p, .contact-card a {
    color: rgba(255, 255, 255, 0.7);
    overflow-wrap: break-word;
    word-break: break-word;
}

.contact-card a:hover {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background-color: #05101A;
    padding: 50px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand {
    margin-bottom: 30px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo {
    height: 50px;
    opacity: 0.9;
}

.footer-logo-text {
    font-weight: 800;
    font-size: 1.3rem;
    color: #FFF;
    text-transform: uppercase;
    text-align: left;
    line-height: 1.1;
    opacity: 0.9;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Animations CSS */
.animate-on-scroll {
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.1, 0.8, 0.3, 1);
    will-change: transform, opacity;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.fade-in-up {
    transform: translateY(30px);
}

.slide-in-left {
    transform: translateX(-40px);
}

.slide-in-right {
    transform: translateX(40px);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 3rem; }
    .about-grid, .two-col-layout { grid-template-columns: 1fr; gap: 40px; }
    .about-image { grid-row: 1; }
    .col-image { grid-row: 1; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        transition: var(--transition);
        padding: 40px 20px;
        overflow-y: auto;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .nav-link { font-size: 1.2rem; }
    
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }
    .advantages-list { grid-template-columns: 1fr; }
}
