:root {
    --brand-purple: #6A3B8E;
    --brand-lavender: #E8DFF0;
    --brand-dark: #1A1A24;
    --white: #FFFFFF;
    --shadow-soft: 0 20px 30px -15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 30px 40px -20px rgba(106, 59, 142, 0.25);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --gradient-bg: linear-gradient(135deg, #f8f4fc 0%, #f0eaf5 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--brand-dark);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.bg-lavender {
    background-color: var(--brand-lavender);
}

.center-text {
    text-align: center;
}

.top-bar {
    background-color: var(--brand-purple);
    color: var(--white);
    padding: 12px 5%;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar .container-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.top-info {
    display: flex;
    gap: 30px;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.top-bar a:hover {
    color: var(--brand-lavender);
}

.top-bar i {
    margin-right: 8px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    max-height: 75px;
    width: auto;
    object-fit: contain;
    border-radius: 0;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brand-purple);
    letter-spacing: -0.5px;
}

.logo-text .highlight {
    font-weight: 300;
    color: #555;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--brand-dark);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--brand-purple);
}

.hero {
    position: relative;
    padding: 120px 5%;
    min-height: 85vh;
    background-repeat: no-repeat;
    background-position: center center;
    background-color: var(--brand-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.2);
    opacity: 0.95;
}

.btn-primary {
    display: inline-block;
    padding: 14px 40px;
    background-color: var(--white);
    color: var(--brand-purple);
    text-decoration: none;
    font-weight: 800;
    border-radius: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--white);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.section-title {
    font-size: 2.8rem;
    color: var(--brand-purple);
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--brand-purple);
    border-radius: 2px;
}

.subtitle {
    color: var(--brand-dark);
    font-weight: 600;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border-top: none;
    transition: var(--transition);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    backdrop-filter: blur(2px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--brand-purple);
    opacity: 0.7;
}

.card:hover,
.card.hover-effect {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.color-primary {
    color: var(--brand-purple);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
}

.shadow-img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 30px -15px rgba(0,0,0,0.15);
    object-fit: cover;
    transition: var(--transition);
}

.shadow-img:hover {
    transform: scale(1.02);
}

.value-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 50px;
}

.value-grid .card {
    flex: 1 1 300px;
    max-width: 380px;
}

.hashtag {
    display: inline-block;
    padding: 12px 30px;
    background: var(--brand-purple);
    color: var(--white);
    font-weight: 800;
    border-radius: 50px;
    letter-spacing: 1px;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(106, 59, 142, 0.2);
}

.fleet-gallery {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.fleet-main-wrapper {
    display: inline-block;
    max-width: 100%;
    background: transparent;
    margin-bottom: 25px;
}

.fleet-img-main {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    border: 4px solid var(--white);
    background-color: var(--white);
    transition: opacity 0.25s ease-in-out, transform 0.3s ease;
}

.fleet-thumbnails {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.thumb {
    width: 95px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 3px solid transparent;
    opacity: 0.6;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.thumb.active, .thumb:hover {
    opacity: 1;
    border-color: var(--brand-purple);
    transform: scale(1.05);
}

.fleet-caption {
    margin-top: 20px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--brand-purple);
}

.workshop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.workshop-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--brand-dark);
}

.workshop-img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    cursor: pointer;
}

.workshop-img:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-hover);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1 1 280px;
    max-width: 350px;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--white);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    background-color: var(--white);
}

.service-card img[src*="image_13"] {
    object-fit: contain;
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-info {
    padding: 24px 20px;
    border-top: 1px solid rgba(106, 59, 142, 0.08);
    background: var(--white);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-info h3 {
    color: var(--brand-purple);
    font-size: 1.2rem;
    font-weight: 700;
}

.service-info i {
    margin-right: 8px;
    color: var(--brand-purple);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 36, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 28px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 30px 50px rgba(0,0,0,0.3);
    text-align: center;
    border-top: 5px solid var(--brand-purple);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: var(--brand-purple);
}

#modal-title {
    color: var(--brand-purple);
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 800;
}

#modal-desc {
    color: var(--brand-dark);
    font-size: 1.1rem;
    line-height: 1.6;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
}

.client-logo {
    max-width: 140px;
    max-height: 80px;
    object-fit: contain;
    opacity: 0.85;
    transition: var(--transition);
    cursor: pointer;
    filter: grayscale(10%);
}

.client-logo:hover {
    transform: scale(1.05);
    opacity: 1;
    filter: grayscale(0%);
}

.client-logo[alt="BidFood"],
.client-logo[alt="Cerro Azul"],
.client-logo[alt="Huilco"] {
    transform: scale(1.2);
    margin: 0 10px;
}

.coverage-map {
    text-align: center;
    margin-top: 30px;
}

.coverage-img {
    max-width: 550px;
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    cursor: pointer;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.coverage-img:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-hover);
}

.footer {
    background-color: var(--brand-purple);
    color: var(--white);
    padding: 70px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    gap: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 50px;
    margin-bottom: 30px;
}

.logo-footer {
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 20px;
}

.social-links {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--white);
    color: var(--brand-purple);
    transform: translateY(-3px);
}

.footer-contact h3 {
    color: var(--brand-lavender);
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-contact ul {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--white);
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--brand-lavender);
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1500;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.fade-in-up {
    opacity: 0;
}

.fade-in-up.visible {
    animation: fadeInUpAnim 0.8s ease-out forwards;
}

@keyframes fadeInUpAnim {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@media (min-width: 992px) {
    .hero {
        background-size: 102% auto;
        background-position: center center;
        padding: 120px 15%;
    }
    .hero-content {
        max-width: 700px;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .section-title {
        margin-bottom: 16px;
    }
    .section-title::after {
        bottom: -4px;
    }
    .about-text {
        text-align: center;
    }
    .mission-vision {
        justify-content: center;
    }
    .mission-vision .card {
        text-align: left;
        margin: 0 auto;
        width: 100%;
    }
    .workshop-text {
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 40px;
        text-align: center;
    }
    .footer-brand, .footer-contact {
        text-align: center;
    }
    .footer-contact ul {
        display: inline-block;
        text-align: left;
    }
    .footer-contact li {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .container {
        width: 92%;
    }
    .section {
        padding: 60px 0;
    }
    .top-bar .container-top {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 12px 0;
    }
    .top-info {
        flex-direction: column;
        gap: 5px;
    }
    .hero {
        padding: 40px 5% 30px 5%;
        min-height: 55vh;
        background-size: cover;
        background-position: center 20%;
    }
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    .btn-primary {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    .card {
        padding: 20px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .about-text {
        text-align: center;
    }
    .about-image {
        display: flex;
        justify-content: center;
    }
    .about-image img {
        max-width: 80%;
        margin: 0 auto;
    }
    .mission-vision {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: left;
    }
    .workshop-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }
    .workshop-text {
        order: 2;
        text-align: center;
    }
    .workshop-image {
        order: 1;
        display: flex;
        justify-content: center;
    }
    .workshop-img {
        max-width: 70%;
        margin: 0 auto;
    }
    .services-grid {
        gap: 20px;
        margin-top: 30px;
    }
    .service-card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
    .service-img-container {
        aspect-ratio: 1 / 1;
    }
    .service-info {
        padding: 12px 8px;
    }
    .service-info h3 {
        font-size: 1rem;
    }
    .value-grid {
        gap: 20px;
        margin-top: 30px;
        margin-bottom: 40px;
    }
    .value-grid .card {
        max-width: 100%;
    }
    .fleet-gallery {
        max-width: 100%;
    }
    .fleet-img-main {
        max-height: 320px;
    }
    .fleet-thumbnails {
        gap: 12px;
    }
    .thumb {
        width: 75px;
        height: 55px;
    }
    .clients-grid {
        gap: 30px;
        margin-top: 35px;
    }
    .client-logo {
        max-width: 100px;
        max-height: 60px;
    }
    .coverage-img {
        max-width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .footer-brand {
        text-align: center;
    }
    .footer-contact {
        text-align: center;
    }
    .footer-contact ul {
        padding-left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-contact li {
        justify-content: center;
    }
    .social-links {
        justify-content: center;
    }
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        background: var(--white);
        padding: 8px 0;
        margin-top: 5px;
    }
    .nav-links li {
        margin: 0;
    }
    .nav-links a {
        font-size: 0.95rem;
        padding: 6px 12px;
        display: inline-block;
    }
    .navbar {
        flex-direction: column;
        gap: 10px;
        padding: 12px 5%;
    }
    .logo {
        justify-content: center;
        gap: 12px;
    }
    .logo img {
        max-height: 65px;
    }
    .logo-text {
        font-size: 1.3rem;
    }
    .section-title {
        font-size: 2rem;
        display: block;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
    }
    .subtitle {
        font-size: 0.85rem;
        text-align: center;
    }
    .card h3 {
        font-size: 1.2rem;
    }
    .modal-content {
        padding: 25px 15px;
    }
}

.zoomable {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.3s ease;
}

.modal-img-content {
    margin: auto;
    display: block;
    max-width: 95vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

#image-modal.active .modal-img-content {
    transform: scale(1);
}

.close-image-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 40px;
    text-align: center;
    line-height: 44px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    color: white;
    z-index: 2010;
    cursor: pointer;
    transition: 0.3s ease;
}

.close-image-modal:hover,
.close-image-modal:active {
    background: var(--brand-purple);
    transform: scale(1.05);
}