/* ========================================
   AM LOGÍSTICA - ESTILOS PRINCIPALES
   ======================================== */

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --azul-oscuro: #30324c;
    --azul: #2984bf;
    --gris-claro: #c3c3c3;
    --gris: #595959;
    --negro: #1b1b1a;
    --blanco: #ffffff;
}

body {
    font-family: 'Raleway', 'Tahoma', sans-serif;
    font-weight: 300;
    color: var(--negro);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   HEADER
   ======================================== */

header {
    background: var(--blanco);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 60px;
}

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

.nav-menu li a {
    color: var(--azul-oscuro);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}

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

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

.language-selector {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 20px;
}

.language-selector button {
    background: transparent;
    border: 1px solid var(--azul);
    color: var(--azul);
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-selector button.active,
.language-selector button:hover {
    background: var(--azul);
    color: var(--blanco);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--azul-oscuro);
    transition: all 0.3s ease;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../img/hero-background.jpg') center/cover no-repeat;
    margin-top: 90px;
    color: var(--blanco);
    overflow: hidden;
}

.hero-content {
    max-width: 1000px;
    padding: 0 30px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 52px;
    margin-bottom: 20px;
    text-shadow: 3px 3px 15px rgba(0,0,0,0.8), 
                 0px 0px 30px rgba(0,0,0,0.6);
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 50px;
    font-weight: 400;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8),
                 0px 0px 20px rgba(0,0,0,0.6);
    animation: fadeInUp 1s ease 0.3s both;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1300px;
    margin: -80px auto 0;
    padding: 0 30px;
    position: relative;
    z-index: 3;
}

.service-card {
    background: var(--blanco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.service-card-img {
    height: 200px;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
    transform: scale(1.1);
}

.service-card-content {
    padding: 20px;
}

.service-card-content h3 {
    color: var(--azul-oscuro);
    font-size: 18px;
    margin-bottom: 10px;
}

.service-card-content .ver-mas {
    color: var(--azul);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-card-content .ver-mas::after {
    content: '→';
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-content .ver-mas::after {
    transform: translateX(5px);
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
    padding: 120px 0 80px;
    background: var(--blanco);
}

.about-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    color: var(--azul-oscuro);
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-text p {
    color: var(--gris);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


/* ========================================
   TEAM BANNER
   ======================================== */

.team-banner {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: url('../img/team-banner.jpg') center top/cover no-repeat;
    padding: 0 60px;
    margin: 80px 0;
}

.team-banner-content {
    max-width: 600px;
    text-align: right;
}

.team-banner-content h2 {
    color: var(--blanco);
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.team-banner-content .btn {
    display: inline-block;
    background: var(--azul);
    color: var(--blanco);
    padding: 14px 35px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}

.team-banner-content .btn:hover {
    background: var(--blanco);
    color: var(--azul);
    transform: translateX(-5px);
}

/* ========================================
   SECTORS SECTION
   ======================================== */

.sectors-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.sectors-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
}

.sectors-container h2 {
    color: var(--azul-oscuro);
    font-size: 40px;
    margin-bottom: 15px;
}

.sectors-container .subtitle {
    color: var(--gris);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}

.sectors-container .description {
    color: var(--gris);
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.sectors-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.sector-btn {
    background: var(--blanco);
    color: var(--azul-oscuro);
    border: 2px solid var(--azul);
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sector-btn:hover,
.sector-btn.active {
    background: var(--azul);
    color: var(--blanco);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(41, 132, 191, 0.3);
}

/* ========================================
   RENTAL SECTION
   ======================================== */

.rental-section {
    background: var(--azul);
    color: var(--blanco);
    padding: 60px 0;
    text-align: center;
}

.rental-section h2 {
    font-size: 38px;
    margin-bottom: 10px;
}

.rental-section p {
    font-size: 18px;
    font-weight: 400;
}

/* ========================================
   CLIENTS SECTION
   ======================================== */

.clients-section {
    padding: 80px 0;
    background: var(--blanco);
}

.clients-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
}

.clients-container h2 {
    color: var(--azul-oscuro);
    font-size: 38px;
    margin-bottom: 15px;
}

.clients-container h2 span {
    color: var(--azul);
}

.clients-container p {
    color: var(--gris);
    font-size: 16px;
    max-width: 900px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.client-logo {
    padding: 20px;
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.7;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.client-logo img {
    max-height: 60px;
    width: auto;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: var(--azul-oscuro);
    color: var(--blanco);
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 2fr 2fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 70px;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--azul);
    transform: translateY(-3px);
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 300;
    color: var(--gris-claro);
}

.footer-section ul li::before {
    content: '• ';
    color: var(--azul);
    font-weight: bold;
    margin-right: 8px;
}

.footer-section ul li a:hover {
    color: var(--azul);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gris-claro);
    font-size: 14px;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

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

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 15px 20px;
    }
    
    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: var(--blanco);
        flex-direction: column;
        padding: 30px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
        margin-top: -50px;
        gap: 20px;
    }
    
    .team-banner {
        height: 300px;
        padding: 0 30px;
        justify-content: center;
    }
    
    .team-banner-content {
        text-align: center;
    }
    
    .team-banner-content h2 {
        font-size: 32px;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .sectors-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
    }
}
