/* style.css */
:root {
    --primary-color: #3A3A8A; /* Azul oscuro/Índigo */
    --primary-light: #5252b8;
    --secondary-color: #009B4D; /* Verde vibrante */
    --secondary-dark: #007a3c;
    --bg-light: #F4F7F6;
    --text-main: #333333;
    --text-muted: #666666;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 22px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

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

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

.section {
    padding: 80px 0;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 35px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 155, 77, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 155, 77, 0.4);
}

/* Typography elements */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--secondary-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.divider.align-left {
    margin-left: 0;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 1);
    backdrop-filter: blur(15px);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.navbar.scrolled {
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.logo-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

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

.nav-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.contact-info-header {
    display: flex;
    gap: 25px;
    font-size: 1rem;
    font-weight: 500;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item .material-symbols-outlined {
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.contact-item:hover {
    color: var(--secondary-color);
}

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

.nav-links a {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .btn-nav {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 30px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-links .btn-nav::after {
    display: none;
}

.nav-links .btn-nav:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Hero Slider */
.hero-slider {
    position: relative;
    height: calc(100vh - 125px);
    min-height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-logo {
    height: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.5));
}

.slide.active .hero-content h1,
.slide.active .hero-content p,
.slide.active .hero-content .btn,
.slide.active .hero-content .slider-logo {
    animation: fadeInUp 1s forwards;
}

.slide.active .hero-content .slider-logo { animation-delay: 0.1s; opacity: 0; }
.slide.active .hero-content h1 { animation-delay: 0.3s; opacity: 0; }
.slide.active .hero-content p { animation-delay: 0.5s; opacity: 0; }
.slide.active .hero-content .btn { animation-delay: 0.7s; opacity: 0; }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(58, 58, 138, 0.85) 0%, rgba(0, 155, 77, 0.45) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.slider-btn {
    pointer-events: auto;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.25);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: var(--secondary-color);
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active, .dot:hover {
color: var(--secondary-color);
    transform: scale(1.3);
}

/* Nosotros Section */
#nosotros {
    min-height: calc(100vh - 125px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.about-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 4px solid transparent;
}

.about-card:hover {
    transform: translateY(-15px);
    border-bottom-color: var(--secondary-color);
    box-shadow: 0 15px 35px rgba(58, 58, 138, 0.15);
}

.card-icon {
    width: 70px;
    height: 70px;
    background-color: var(--bg-light);
    color: var(--primary-color);
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.about-card:hover .card-icon {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.about-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.values-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px;
    border-radius: 15px;
    margin-top: 50px;
    margin-bottom: 50px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.values-section:hover {
    box-shadow: 0 15px 40px rgba(58, 58, 138, 0.3);
}

.values-section h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

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

.value-item {
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.value-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-8px);
}

.value-item i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: block;
    transition: transform 0.3s ease;
}

.value-item:hover i {
    transform: scale(1.2);
}

.value-item h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.value-item p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.human-capital {
    background-color: rgba(0, 155, 77, 0.1);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--secondary-color);
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.human-capital:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 155, 77, 0.2);
    background-color: rgba(0, 155, 77, 0.15);
}

.human-capital h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Servicios Section */
.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.services-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-item {
    display: flex;
    margin-bottom: 30px;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.service-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.fleet-list {
    list-style: none;
    margin-top: 15px;
}

.fleet-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.fleet-list i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* Experiencia Section */
.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.experience-card, .clients-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.experience-card h3, .clients-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.channels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.channel-tag {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid rgba(58, 58, 138, 0.1);
}

.clients-logos {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.client-logo {
    background-color: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-muted);
    border-left: 4px solid var(--secondary-color);
}

/* Contacto Section */
.contact-section {
    background: url('images/hero_truck.png') center/cover no-repeat;
    position: relative;
    color: var(--white);
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(58, 58, 138, 0.9);
}

.contact-card {
    position: relative;
    z-index: 2;
    background: var(--white);
    color: var(--text-main);
    border-radius: 15px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.contact-info {
    padding: 50px;
    background-color: var(--primary-color);
    color: var(--white);
}

.contact-info h2 {
    color: var(--white);
}

.contact-details {
    list-style: none;
    margin-top: 30px;
}

.contact-details li {
    display: flex;
    margin-bottom: 25px;
}

.contact-details i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.contact-details a {
    color: var(--secondary-color);
}

.contact-form-container {
    padding: 50px;
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 155, 77, 0.1);
}

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

/* Footer */
footer {
    background-color: #1a1a3a;
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0;
    text-align: center;
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    margin-bottom: 20px;
}

.footer-logo .logo-name {
    font-size: 1.8rem;
}

.footer-logo .logo-desc {
    color: var(--white);
}

/* Animations & Responsive */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Button pulse animation in Hero */
.hero-content .btn-primary {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 155, 77, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(0, 155, 77, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 155, 77, 0); }
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

.fade-in-up {
    animation: fadeInUp 1s forwards;
    opacity: 0;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .services-content { grid-template-columns: 1fr; }
    .contact-card { grid-template-columns: 1fr; }
    .experience-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    
    .nav-right {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
        gap: 20px;
    }
    
    .nav-right.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .contact-info-header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding-bottom: 20px;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 20px;
    }
    
    .slider-logo { height: 80px; }
    .hero-content h1 { font-size: 2.5rem; }
    .slider-controls { padding: 0 10px; }
    .slider-btn { width: 40px; height: 40px; font-size: 1rem; }
    
    .section { padding: 60px 0; }
}
