/*
  Intervan Professional Redesign
  ------------------------------
  Palette:
  - Dark Blue: #0D2C54
  - Accent Gold: #FFC107
  - Light Gray BG: #F8F9FA
  - Text Dark: #333333
  - Text Light: #6c757d
  - White: #FFFFFF
  Font: Poppins
*/

:root {
    --color-primary: #0D2C54; /* Azul oscuro corporativo */
    --color-secondary: #FFC107; /* Dorado para acentos y CTAs */
    --color-background: #FFFFFF;
    --color-background-light: #F8F9FA;
    --color-text-dark: #333333;
    --color-text-light: #6c757d;
    --color-white: #FFFFFF;
    --color-border: #dee2e6;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.08);
    --font-family: 'Poppins', sans-serif;
}

/* --- Base & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-background);
    overflow-x: hidden;
}

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

.section-padded {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--color-background-light);
}

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

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-white);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-dark);
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

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

.section-title span {
    display: block;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title .subtitle {
    max-width: 600px;
    margin: 1rem auto 0;
}

/* --- CTA Button --- */
.cta-button {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--color-secondary);
    cursor: pointer;
}

.cta-button:hover {
    background-color: #e6ac00; /* Darken gold on hover */
    border-color: #e6ac00;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* --- Header --- */
.main-header {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 0; /* Reduced padding */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.main-header.sticky {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

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

.main-header .logo img {
    height: 105px; /* Increased logo size */
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 35px;
}

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

.main-nav ul li a:not(.cta-button)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

.main-nav ul li a:not(.cta-button):hover::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--color-primary);
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(13, 44, 84, 0.8) 0%, rgba(13, 44, 84, 0.4) 100%);
    color: var(--color-white);
}

.slide-overlay p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-cta {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.hero-cta:hover {
     color: var(--color-white);
     border-color: var(--color-white);
     background: transparent;
}


/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Force 4 columns on desktop */
    gap: 30px;
}

.service-card {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.service-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border-radius: 50%;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 32px;
    height: 32px;
}


/* --- Clients Section --- */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 10))}
}

.client-slider {
    background: white;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, .125);
    height: 100px;
    margin: auto;
    overflow:hidden;
    position: relative;
    width: 100%;
}
.client-slider::before,
.client-slider::after {
    background: linear-gradient(to right,  rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
    content: "";
    height: 100px;
    position: absolute;
    width: 200px;
    z-index: 2;
}
.client-slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}
.client-slider::before {
    left: 0;
    top: 0;
}
.client-slider .slide-track {
    animation: scroll 40s linear infinite;
    display: flex;
    width: calc(250px * 20);
}
.client-slider:hover .slide-track {
    animation-play-state: paused;
}
.client-slider .slide {
    height: 100px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}
.client-slider .slide img {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all .4s ease;
}
.client-slider .slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}


/* --- Contact Section --- */
#contacto {
    background-color: var(--color-white);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background-color: var(--color-background-light);
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.contact-details {
    list-style: none;
    padding: 0;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-details svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-secondary);
    margin-top: 5px;
}

.contact-details div {
    display: flex;
    flex-direction: column;
}

.contact-details strong {
    font-weight: 600;
    color: var(--color-text-dark);
}
.contact-details span {
    color: var(--color-text-light);
}

.contact-form-block .form-group {
    margin-bottom: 20px;
}

.contact-form-block label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text-dark);
}

.contact-form-block input[type="text"],
.contact-form-block input[type="email"],
.contact-form-block input[type="tel"],
.contact-form-block textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid var(--color-border);
    background-color: #fff;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-block input:focus,
.contact-form-block textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
}

.contact-form-block textarea {
    resize: vertical;
}

.contact-form-block .cta-button {
    width: 100%;
    font-size: 1.1rem;
    padding: 15px 30px;
}

/* Form Status Messages */
#form-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}
#form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
#form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* --- Footer --- */
.main-footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-links h4, .footer-contact h4 {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}
.footer-links ul {
    list-style: none;
}
.footer-links ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    display: inline-block;
    transition: color 0.3s ease;
}
.footer-links ul li a:hover {
    color: var(--color-secondary);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Animations --- */
.reveal-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}
.fade-in-up { transform: translateY(30px); }
.fade-in-left { transform: translateX(-30px); }
.fade-in-right { transform: translateX(30px); }

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .about-content, .footer-content, .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-image {
        order: -1;
    }
    .contact-grid {
        gap: 40px;
        padding: 30px;
    }
    .contact-info-block {
        text-align: left;
    }
    .main-nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 75px; /* Adjusted for smaller header */
        left: 0;
        width: 100%;
        background: var(--color-white);
        padding: 20px;
        box-shadow: var(--shadow-md);
    }
    .main-nav.active ul {
        display: flex;
    }
    .main-nav ul li {
        margin: 10px 0;
    }
    .mobile-nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 30px;
    }
    .mobile-nav-toggle span {
        width: 100%;
        height: 3px;
        background: var(--color-primary);
        transition: all 0.3s ease;
    }
    .mobile-nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}

@media (max-width: 768px) {
    .section-padded {
        padding: 80px 0;
    }
    .hero-slider {
        height: 80vh;
    }
    .slide-overlay .container {
        text-align: center;
    }
    .slide-overlay p {
        margin-left: auto;
        margin-right: auto;
    }
    .services-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

