:root {
    --color-acento: #2185F5;
    --color-petroleo: #004364;
    --color-negro-azulado: #1B1B24;
    --color-gris-claro: #BFBFBF;
    --color-blanco: #FFFFFF;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    color: var(--color-negro-azulado);
    line-height: 1.6;
    background-color: var(--color-negro-azulado);    
    position: relative;
    z-index: 1; 
}

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

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

h1, h2, h3 {
    font-family: var(--font-primary);
    line-height: 1.4;
    margin-bottom: 15px;
}

h1 {
    font-size: 3em;
    font-weight: 900;
}

h2 {
    font-size: 2.3em; 
    font-weight: 750;
    color: var(--color-petroleo);
}

.main-header {
    min-height: 600px;
    background-image: url('imagenes/imagenes-index/header-h.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 968px) {
    .main-header {
        min-height: 400px;
        background-image: url('imagenes/imagenes-index/header-v.webp');
    }
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 67, 100, 0.548);
    z-index: 1;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    position: relative;
    z-index: 20;
}

.logo-img {
    height: 40px;
}

.nav-links {
    list-style: none;
    display: flex;
    z-index: 99;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 400;
    color: var(--color-blanco);
    text-transform: uppercase;
    margin-left: 30px;
    padding: 5px 0;
}

.nav-link:hover {
    color: var(--color-acento);
}

.hamburger-menu {
    display: none; 
    position: relative;
    top: auto; 
    right: auto;
    z-index: 101; 
    border: none;
    background: none;
    padding: 10px;
}

.hero-content {
    text-align: center;
    padding: 150px 0;
    position: relative;
    z-index: 2;
    color: var(--color-blanco);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 80px
}

h1 {
    font-size: em; 
    font-weight: 700; 
    line-height: 1.5;
}

.hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 40px; 
}

.nav-link.active-link {
    color: var(--color-acento) !important; 
    font-weight: 700;
}

.btn {
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 25px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.btn-primary {
    background-color: var(--color-acento);
    color: var(--color-blanco);
    border: 2px solid var(--color-petroleo);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn-primary:hover {
    background-color: var(--color-petroleo);
    border-color: var(--color-acento);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: var(--color-acento);
    color: var(--color-blanco);
    border: 2px solid var(--color-petroleo);
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn-secondary:hover {
    background-color: var(--color-petroleo);
    color: var(--color-blanco);
    border-color: var(--color-acento);
    transform: translateY(-2px); 
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.85em;
}

.section-quienes-somos {
    background-color: #ecebeb;
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.quienes-somos-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
    color: var(--color-negro-azulado);
    text-align: center;
}

.section-subtitle {
    max-width: 800px;        
    font-size: 1.1em;        
    color: var(--color-negro-azulado);
    margin: 0 auto 40px auto; 
    text-align: center;
}

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

.section-servicios {
    background-color: #f7f7f7;
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-top: 50px;
}

.servicio-card {
    background-color: var(--color-blanco);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.servicio-icon {
    font-size: 3.5em;
    color: var(--color-petroleo);
    margin-bottom: 20px;
    display: block;
}

.card-title {
    font-size: 1.25em;
    color: var(--color-negro-azulado);
    margin-bottom: 15px;
}

.servicio-card p {
    color: #555;
    margin-bottom: 25px;
    min-height: 100px;
    line-height: 1.5;
}

.section-flota {
    background-color: #ecebeb;
    padding: 40px 0;
    text-align: center;
}

.flota-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    grid-gap: 15px;
    margin-top: 0px;
}

.flota-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.flota-item.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.flota-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease-out;
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: rgba(0, 67, 100, 0); 
    color: var(--color-blanco);
    font-family: var(--font-primary);
    font-weight: 600;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.flota-item:hover img {
    transform: scale(1.05);
}

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

#flota .section-title {
    margin-top: 0; 
}

@media (max-width: 968px) {
    .flota-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
    .flota-item.featured {
        grid-column: span 2;
        grid-row: span 1;
    }
    .item-overlay {
        transform: translateY(0);
        font-size: 0.9em;
    }
    .flota-item:hover img {
        transform: none;
    }
}

@media (max-width: 968px) {
    .flota-grid {
        grid-template-columns: 1fr;
    }
    .flota-item.featured {
        grid-column: span 1; 
        grid-row: span 1; 
    }
}

.main-footer {
    position: relative;
    padding: 60px 0 0 0;
    color: var(--color-gris-claro);
    overflow: hidden; 
}

.footer-overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('imagenes/imagenes-index/footer.webp');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.footer-overlay-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 67, 100, 0.548); 
    z-index: 2; 
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 3;
    padding-bottom: 40px;
}

.footer-col {
    flex: 1;
}

.footer-title {
    font-size: 1.1em;
    color: var(--color-blanco);
    margin-bottom: 20px;
    text-transform: uppercase;
    text-align: center;
}

.footer-col p {
    margin-bottom: 10px;
    text-align: center; 
}

.footer-link {
    color: var(--color-gris-claro);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-acento);
}

.footer-link i {
    margin-right: 8px;
    color: var(--color-acento);
}

.social-links a {
    color: var(--color-gris-claro);
    font-size: 2em;
    margin: 0;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--color-acento);
}

.social-links {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 5px;
    margin-top: 10px;
}

.copyright-bar {
    font-size: 0.8em;
    padding: 15px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center; 
    align-items: center;
}

.copyright-bar p {
    text-align: center;
    color: rgba(255, 255, 255, 0.773);
    margin: 0 auto; 
    padding-left: 10px;
}

.designer-signature {
    margin-right: auto;
    color: rgba(255, 255, 255, 0.773);
    font-size: 1em; 
    flex-shrink: 0; 
}

@media (max-width: 968px) {
    .copyright-bar {
        flex-direction: column;
        gap: 5px;
    }
    .copyright-bar p {
        margin: 0;
        padding-left: 0;
    }
    .designer-signature {
        margin: 0;
    }
}

.whatsapp-float {
    position: fixed;
    width: 80px;
    height: 80px;
    bottom: 50px;
    right: 20px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    line-height: 80px;
    z-index: 1000;
    box-shadow: 2px 2px 3px #999;
    animation: heartbeat 1.5s infinite;
}

.whatsapp-message {
    visibility: hidden;
    width: 180px;
    background-color: #0b1c2b;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px 15px;
    position: absolute;
    z-index: 1001;
    bottom: 25px;
    right: 80px;
    opacity: 0;
    transition: opacity 0.5s, visibility 0s;
    font-size: 0.9em;
    line-height: 1.2;
}

@keyframes heartbeat {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    40% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.call-float {
    position: fixed;
    bottom: 100px; 
    right: 20px;
    width: 70px;
    height: 70px;
    background-color: #2185F5; 
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 70px; 
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    z-index: 10000; 
    transition: all 1.5s ease;
    animation: call-pulse 1.5s ease-in-out infinite;
}

.call-float i {
    transform: scaleX(-1); 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.call-message {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #004364;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 30px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: visibility 0s, opacity 0.3s ease;
}

@keyframes call-pulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.7); }
    40% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.call-float:hover .call-message {
    opacity: 1;
    visibility: visible;
}

.navbar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-negro-azulado); 
    padding: 10px 5%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.navbar.sticky .nav-link.active-link {
    color: var(--color-acento) !important;
}

@media (max-width: 968px) {
    .container { width: 95%; }
    .navbar { flex-direction: row; justify-content: space-between; align-items: center; }
    .hamburger-menu { display: block; position: relative; top: auto; right: auto; z-index: 101; border: none; background: none; padding: 15px; }
    .hamburger-menu i { font-size: 2.5em; color: var(--color-blanco); }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100px; left: auto; right: 0; width: 80%; height: auto; padding-top: 0; background-color: var(--color-negro-azulado); box-shadow: 0 4px 5px rgba(0, 0, 0, 0.4); z-index: 99; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1); }
    .nav-links.active { display: flex; transform: translateX(0); }
    .nav-link { display: block; padding: 10px 0; width: 80%; text-align: center; padding-left: 0; font-size: 1.5em; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .hero-content { padding: 100px 0 50px 0; }
    .hero-title { font-size: 3.2em; font-weight: 600; line-height: 1.2; color: var(--color-blanco); margin-bottom: 40px; }
    .hero-buttons { flex-direction: column; gap: 15px; }
    .btn { width: 80%; margin: 0 auto; padding: 15px 20px; font-size: 1em; }
    .section-quienes-somos { background-color: var(--color-blanco); padding: 80px 0; position: relative; z-index: 1; }
    .section-title { font-size: 1.5em; }
    .servicios-grid { grid-template-columns: 1fr; }
    .servicio-card p { min-height: auto; }
    .footer-content { flex-direction: column; gap: 40px; padding-bottom: 20px; text-align: center; }
    .footer-col { flex: none; width: 100%; }
    .copyright-bar { text-align: center; }
    .whatsapp-float { width: 70px; height: 70px; font-size: 28px; line-height: 65px; bottom: 20px; right: 20px; }
    .whatsapp-message { width: 150px; padding: 8px 10px; font-size: 0.8em; bottom: 15px; right: 70px; }
    .form-group { width: 100%; margin-bottom: 15px; }
}

.servicios-cta-buttons { text-align: center; margin-top: 50px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.btn-whatsapp-lg, .btn-call-outline-lg { padding: 18px 40px; font-size: 1.3em; min-width: 250px; display: inline-flex; align-items: center; justify-content: center; }
.btn-whatsapp-lg { background-color: #25D366 !important; border-color: #128C7E !important; color: #ffffff !important; }
.btn-whatsapp-lg:hover { background-color: #128C7E !important; border-color: #25D366 !important; }
.btn-whatsapp-lg i { color: #ffffff !important; }
.btn-sm { padding: 15px 20px; font-size: 1em; min-width: auto; display: inline-flex; justify-content: center; align-items: center; }
.btn-sm i { font-size: 1.4em; margin-right: 8px; }
.btn-whatsapp { background-color: #25D366 !important; border-color: #128C7E !important; color: #ffffff !important; border-style: solid !important; border-width: 2px !important; }
.btn-whatsapp:hover { background-color: #128C7E !important; border-color: #00ff5e !important; }
.btn-whatsapp i { color: #ffffff !important; }

.back-to-top {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 20px;
    background-color: var(--color-petroleo);
    color: var(--color-blanco);
    border-radius: 50px;
    text-align: center;
    font-size: 20px;
    line-height: 50px;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background-color: var(--color-acento); }

#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--color-negro-azulado);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: opacity 2s ease-out, visibility 2s ease-out; 
}

.v-res {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#preloader-video-v { display: none; }

@media (max-width: 968px) {
    #preloader-video-h { display: none; }
    #preloader-video-v { display: block; }
    .v-res { object-fit: contain; }
}

.preloader-logo { width: 1700px !important; height: auto !important; animation: pulse 4s infinite; }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#preloader.loaded { opacity: 0; visibility: hidden; }

.logo, .logo-img { -webkit-user-drag: none; user-drag: none; user-select: none; }

.hero-title { opacity: 0; transform: scale(0.7); pointer-events: none; }
.hero-buttons .btn-whatsapp { opacity: 0; pointer-events: none; }
.hero-buttons .btn-secondary { opacity: 0; pointer-events: none; }

@keyframes title-scale-in {
    0% { opacity: 0; transform: scale(0.7); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes slide-in-left {
    0% { opacity: 0; transform: translateX(-50px); }
    100% { opacity: 1; transform: translateX(0); pointer-events: auto; }
}

@keyframes slide-in-right {
    0% { opacity: 0; transform: translateX(50px); }
    100% { opacity: 1; transform: translateX(0); pointer-events: auto; }
}

.animate-in { animation: title-scale-in 1s ease-out forwards; }
.animate-slide-left { animation: slide-in-left 0.8s ease-out forwards; }
.animate-slide-right { animation: slide-in-right 0.8s ease-out forwards; }

@keyframes title-scale-out {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-50px) scale(0.9); }
}

.hero-title.animate-out { animation: title-scale-out 1s ease-in forwards; pointer-events: none; }

@media (min-width: 968px) {
    .call-float { bottom: 150px; right: 25px; }
}

.section-carousel-flota { padding: 0; margin-bottom: 0px; background-color: #ecebeb; }
.main-slider { width: 100%; min-height: 250px; }
.main-slider img { width: 100%; height: 100%; object-fit: cover; display: block; }

.swiper-pagination-bullet { background: var(--color-petroleo); opacity: 0.6; }
.swiper-pagination-bullet-active { background: #007bff; opacity: 1; }
.swiper-button-next, .swiper-button-prev { color: var(--color-petroleo); text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); }

.swiper-slide { position: relative; }
.slide-caption { position: absolute; bottom: 0; left: 0; width: 100%; background-color: #ecebeb00; color: #ffffff; padding: 10px 20px; box-sizing: border-box; z-index: 10; }
.slide-caption p { margin: 0; font-size: 1.1em; text-align: center; }

@media screen and (min-width: 1025px) {
    .main-slider img { max-width: 600px; height: auto; margin-left: auto; margin-right: auto; display: block; }
}