:root {
    --primary: #1e3a5f;
    --primary-dark: #152a45;
    --primary-light: #2d5a87;
    --accent: #ffc107;
    --accent-hover: #ffca2c;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    max-width: 100vw;
}

/* Fallback global: ningún elemento puede exceder el ancho del viewport en mobile */
img,
iframe,
video {
    max-width: 100%;
    height: auto;
}

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

.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

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

.text-primary-custom {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

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

.navbar-landing {
    background: transparent;
    transition: var(--transition);
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0 !important;
    min-height: 0;
    border-bottom: orangered solid 4px;
}

.navbar-landing > .container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    background-color: white;
    justify-items: center !important;
}

.navbar-landing .navbar-brand-easypack {
    padding: 0;
    margin-left: 15px;
    height: 80px !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-landing .navbar-brand-easypack img {
    height: 75px !important;
    width: auto;
    max-height: none;
    object-fit: contain;
}

.navbar-landing.scrolled {
    background: var(--primary);
    padding-top: 0;
    padding-bottom: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: orangered solid 4px;
}

.navbar-landing.scrolled .navbar-brand-easypack {
    height: 56px;
}

.navbar-landing.scrolled .navbar-brand-easypack img {
    height: 40px;
}

.navbar-landing .navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand-easypack {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
}

.navbar-brand-easypack img {
    height: 40px;
    width: auto;
    max-height: none;
    object-fit: contain;
}

.nav-link-landing {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.nav-link-landing:hover {
    color: var(--accent) !important;
}

.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 95, 0.85);
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

/* Marco/recuadro para el texto del hero */
.hero-text-box {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 10px;
    padding: 0.2rem 1.5rem;
    display: inline-block;
    max-width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
    color: white !important;
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
    color: rgba(255, 255, 255, 0.95) !important;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-primary-landing {
    background: orange;
    color: var(--primary);
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 50px;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-landing:hover {
    background: var(--accent-hover);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.4);
}

.btn-outline-landing {
    background: white;
    border: 1px solid black;
    color: var(--primary);
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
 
.btn-outline-landing:hover {
    background: var(--accent-hover);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    color: var(--white);
    font-size: 2rem;
    opacity: 0.7;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #eee;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--accent);
}

.service-card:hover .service-icon {
    background: var(--accent);
    transform: scale(1.1);
}

.service-card:hover .service-icon i {
    color: var(--primary);
}

.service-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.route-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.route-map {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
}

.route-map:hover {
    transform: scale(1.30);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.route-map img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.route-map:hover img {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.route-point {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.route-point:last-child {
    margin-bottom: 0;
}

.route-marker {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.route-marker i {
    font-size: 1.5rem;
    color: var(--primary);
}

.route-info h5 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.route-info p {
    opacity: 0.8;
    margin: 0;
}

.route-connection {
    width: 2px;
    height: 30px;
    background: var(--accent);
    margin-left: 24px;
}

.about-section .about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content {
    padding: 2rem 0 2rem 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.value-item i {
    font-size: 2rem;
    color: var(--accent);
}

.contact-section {
    background-color: var(--light-gray);
}

.deposito-card {
    background: var(--white);
    border-radius: 12px;
    padding: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.deposito-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.deposito-card img {
    object-fit: cover;
    height: 180px;
    width: 100%;
}

.deposito-caption {
    font-size: 0.95rem;
    color: var(--primary);
}

.contact-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon i {
    font-size: 1.3rem;
    color: var(--accent);
}

.contact-item h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Hover para links de WhatsApp y Email en sección depósitos */
.contact-item a {
    transition: all 0.2s ease;
}

.contact-item a:hover {
    transform: scale(1.05);
    font-weight: 700;
    display: inline-block;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    height: 100%;
    min-height: 350px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-brand i {
    color: var(--accent);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 300px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.social-links {
    display: flex;
    gap: 1rem;
}

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

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        padding: 2rem 0 0 0;
    }
    .hero-text-box {
    border-radius: 8px;
    padding: 0.1rem 0.8rem;
    }
}

@media (max-width: 768px) {
    /* Compensar el navbar fixed-top que tapa el inicio del contenido */
    body {
        padding-top: 70px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .navbar-landing {
        background: var(--primary);
        padding: 0.5rem 0;
    }

    .navbar-landing .navbar-brand-easypack {
        height: 50px !important;
        margin-left: 8px;
    }

    .navbar-landing .navbar-brand-easypack img {
        height: 45px !important;
    }

    .navbar-landing .collapse.show,
    .navbar-landing .collapsing {
        background: var(--primary);
        padding: 0.5rem;
        border-radius: 0 0 12px 12px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary-landing,
    .btn-outline-landing {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    /* Excepción: botones de auth dentro del navbar mobile — compactos */
    .navbar-mobile-auth .btn-primary-landing,
    .navbar-mobile-auth .btn-outline-landing {
        width: auto;
        max-width: none;
        padding: 6px 12px;
        font-size: 0.78rem;
        gap: 2px;
        border-radius: 30px;
    }

    .hero-content {
        padding: 1rem 0.5rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-item-icon {
        width: 40px;
        height: 40px;
    }

    .contact-item-icon i {
        font-size: 1rem;
    }

    .deposito-row {
        flex-direction: column;
    }

    /* Todos los contenedores principales al 80% en mobile */
    .container {
        max-width: 95%;
    }

    /* Card de imagen ocupa el 100% del container reducido */
    .deposito-card {
        max-width: 100%;
        margin: 0 auto;
    }
    .deposito-card img {
        width: 100% !important;
        max-width: 100% !important;
        height: 160px !important;
        display: block;
    }

    /* Tipografía un poco más chica en mobile */
    .section-title {
        font-size: 1.6rem;
    }
    .section-subtitle {
        font-size: 0.9rem;
    }
    .contact-item h6 {
        font-size: 0.9rem;
    }
    .contact-item p,
    .contact-item a {
        font-size: 0.85rem;
    }
    .service-card h4 {
        font-size: 1.05rem;
    }
    .service-card p {
        font-size: 0.85rem;
    }
    .footer-title {
        font-size: 1rem;
    }
    .footer-links li,
    .footer-links a,
    .footer-description {
        font-size: 0.85rem;
    }

    .route-map:hover {
        transform: none;
    }

    .route-map:hover img {
        transform: none;
    }

    .footer {
        padding: 40px 0 20px;
        text-align: center;
    }

    .footer-description {
        max-width: 100%;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    /* En pantallas muy chicas, los botones del navbar mobile muestran solo el ícono */
    .navbar-mobile-auth .btn-primary-landing,
    .navbar-mobile-auth .btn-outline-landing {
        padding: 6px 9px;
        font-size: 0;
    }
    .navbar-mobile-auth .btn-primary-landing i,
    .navbar-mobile-auth .btn-outline-landing i {
        font-size: 0.95rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        font-size: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .contact-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 0.75rem;
    }
}
