/* Variables CSS para colores */
:root {
    --primary-blue: #003366;
    --secondary-blue: #0056b3;
    --accent-orange: #FF6600;
    --light-grey: #8d8585;
    --dark-grey: #333;
    --text-light: #fefefe;
    --border-color: #f60000;
}

/* Reset Básico y Tipografía */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: #fff;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-blue);
    margin-bottom: 0.8em;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; text-align: center; margin-bottom: 1.5em; }
h3 { font-size: 1.6em; }

p {
    margin-bottom: 1em;
}

a {
    text-decoration: none;
    color: var(--secondary-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-orange);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--accent-orange);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.9em;
    color: var(--dark-grey);
}

.breadcrumbs a {
    color: var(--secondary-blue);
}

.breadcrumbs span {
    color: var(--accent-orange);
    font-weight: 600;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--text-light);
    border: none;
}

.btn-primary:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-blue);
    color: var(--text-light);
    border: 2px solid var(--secondary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-text {
    color: var(--secondary-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.btn-text i {
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.btn-text:hover i {
    transform: translateX(3px);
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

.header .logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.header .logo img:hover {
    transform: scale(1.05);
}

.header .nav ul {
    display: flex;
}

.header .nav ul li {
    margin-left: 30px;
}

.header .nav ul li a {
    color: var(--primary-blue);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

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

.header .nav ul li a:hover::after,
.header .nav ul li a.active::after {
    width: 100%;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-video + img {
    display: none;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.hero-content h1 {
    color: var(--text-light);
    font-size: 3.5em;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.4em;
    margin-bottom: 1.5em;
    color: var(--text-light);
}

/* Secciones Generales */
section {
    padding: 80px 0;
    position: relative;
}

section:nth-child(even) {
    background-color: var(--light-grey);
}

/* Services Section */
.services-section h2 {
    margin-bottom: 2em;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, box-shadow;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-item i {
    font-size: 3.5em;
    color: var(--accent-orange);
    margin-bottom: 20px;
    display: block;
}

.service-item h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

/* About Section */
.about-section .container {
    padding: 0 40px;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 0.8em;
}

.about-text p {
    text-align: justify;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.mission-vision-values {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.mission-vision-values h3 {
    color: var(--secondary-blue);
    margin-bottom: 10px;
}

.mission-vision-values ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.mission-vision-values ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--dark-grey);
}

.mission-vision-values ul li i {
    color: var(--accent-orange);
    font-size: 1.2em;
}

/* Security Section */
.security-section {
    background-color: var(--primary-blue);
    color: var(--text-light);
    text-align: center;
}

.security-section h2 {
    color: var(--text-light);
}

.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.feature-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.feature-item i {
    font-size: 3.5em;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.feature-item h3 {
    color: var(--text-light);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
}

/* Fleet Section */
.fleet-section h2 {
    margin-bottom: 2em;
}

.fleet-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.fleet-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.fleet-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    will-change: transform;
}

.fleet-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 51, 102, 0.8);
    color: var(--text-light);
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    text-align: center;
}

.fleet-item:hover img {
    transform: scale(1.1);
}

.fleet-item:hover .overlay {
    transform: translateY(0);
}

.fleet-item .overlay h3 {
    color: var(--accent-orange);
    margin-bottom: 5px;
}

.fleet-item .overlay p {
    font-size: 0.9em;
    margin-bottom: 0;
}

/* Testimonials Section */
.clients-testimonials-section {
    background-color: var(--light-grey);
    text-align: center;
}

.testimonials-tabs {
    max-width: 800px;
    margin: 40px auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: rgba(0, 51, 102, 0.1);
}

.tab-btn.active {
    background-color: var(--primary-blue);
    color: white;
}

.tab-content {
    display: none;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-item p {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--dark-grey);
}

.testimonial-item h4 {
    color: var(--primary-blue);
    font-size: 1em;
    margin-bottom: 0;
}

.client-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.client-logos img {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.client-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Contact Section */
.contact-section .container {
    padding: 0 40px;
}

.contact-content {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-form {
    flex: 2;
    min-width: 300px;
}

.contact-form form {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--accent-orange);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

.contact-info {
    flex: 1;
    min-width: 280px;
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    color: var(--accent-orange);
    margin-bottom: 25px;
    text-align: center;
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    line-height: 1.4;
    font-size: 0.95em;
}

.contact-info p i {
    font-size: 1.2em;
    margin-right: 15px;
    color: var(--accent-orange);
    width: 20px;
    text-align: center;
}

.social-icons {
    margin-top: 30px;
    text-align: center;
}

.social-icons a {
    color: var(--text-light);
    font-size: 1.8em;
    margin: 0 10px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
    color: var(--accent-orange);
    transform: translateY(-3px);
}

.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background-color: var(--dark-grey);
    color: rgba(255, 255, 255, 0.7);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

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

.footer ul {
    display: flex;
}

.footer ul li {
    margin-left: 20px;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer ul li a:hover {
    color: var(--accent-orange);
}

/* Animaciones */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.appear {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.appear {
    opacity: 1;
    transform: translateX(0);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.zoom-in.appear {
    opacity: 1;
    transform: scale(1);
}

/* Media Queries para Responsividad */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8em;
    }
    .hero-content p {
        font-size: 1.2em;
    }
    .about-content, .contact-content {
        flex-direction: column;
        text-align: center;
    }
    .about-text, .about-image, .contact-form, .contact-info {
        min-width: unset;
        width: 100%;
    }
    .about-text h2 {
        text-align: center;
    }
    .menu-toggle {
        display: block;
    }
    .header .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .header .nav.active {
        max-height: 500px;
    }
    .header .nav ul {
        flex-direction: column;
        padding: 20px;
    }
    .header .nav ul li {
        margin: 10px 0;
    }
    .header .container {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 15px;
    }
    .header-buttons {
        display: none;
    }
    .footer .container {
        flex-direction: column;
        gap: 15px;
    }
    .footer ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }
    .footer ul li {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    .hero-section {
        height: 70vh;
    }
    .hero-content h1 {
        font-size: 2.2em;
    }
    .hero-content p {
        font-size: 1em;
    }
    section {
        padding: 60px 0;
    }
    .service-item, .feature-item, .fleet-item {
        margin-bottom: 20px;
    }
    .contact-info p {
        font-size: 0.9em;
    }
    .contact-form form {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .header .logo img {
        height: 40px;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .hero-content h1 {
        font-size: 1.8em;
    }
    .hero-content p {
        font-size: 0.9em;
    }
    .mission-vision-values ul {
        grid-template-columns: 1fr;
    }
    .contact-form form {
        padding: 30px 20px;
    }
    .contact-info {
        padding: 30px 20px;
    }
    .tab-buttons {
        flex-direction: column;
    }
    .tab-btn {
        width: 100%;
    }
}