/* =========================================================
   ENVIOS YA
   importacion.css
   Diseño corporativo - Importación
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;

    --secondary: #0f172a;

    --text: #334155;
    --text-light: #64748b;

    --background: #ffffff;
    --background-soft: #f8fafc;

    --border: #e2e8f0;

    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.12);

    --container: 1180px;
}


/* =========================================================
   RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);
    background: var(--background);

    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font-family: inherit;
}

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


/* =========================================================
   CONTENEDORES
========================================================= */

.section-container,
.header-container,
.footer-container,
.hero-container,
.cta-container {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin: 0 auto;
}


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

.site-header {
    position: sticky;
    top: 0;

    z-index: 1000;

    background: rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--border);
}

.header-container {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   LOGO
========================================================= */

.brand {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}

.brand-symbol {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    overflow: hidden;
}

.brand-symbol img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;
}

.brand-name {
    display: flex;
    align-items: baseline;

    gap: 2px;

    color: var(--secondary);

    font-size: 20px;
    font-weight: 700;
}

.brand-name strong {
    color: #dc2626;
}


/* =========================================================
   NAVEGACIÓN DESKTOP
========================================================= */

.main-nav {
    display: flex;
    align-items: center;

    gap: 30px;

    margin-left: auto;
    margin-right: 40px;
}

.nav-item {
    position: relative;

    padding: 26px 0;

    color: var(--text-light);

    font-size: 14px;
    font-weight: 600;

    transition:
        color 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary);
}

.nav-item.active::after {
    content: "";

    position: absolute;

    bottom: 17px;
    left: 0;

    width: 100%;
    height: 2px;

    background: var(--primary);

    border-radius: 10px;
}


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

.header-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 11px 17px;

    border: 1px solid var(--border);
    border-radius: 10px;

    color: var(--secondary);

    font-size: 13px;
    font-weight: 700;

    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.header-contact i {
    color: var(--primary);
}

.header-contact:hover {
    border-color: var(--primary);

    color: var(--primary);

    transform: translateY(-1px);
}


/* =========================================================
   MENÚ MÓVIL
========================================================= */

.mobile-menu {
    display: none;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: #ffffff;

    color: var(--secondary);

    font-size: 18px;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.mobile-menu:hover {
    border-color: var(--primary);

    color: var(--primary);

    background: var(--primary-light);
}

.mobile-menu:active {
    transform: scale(0.96);
}


/* =========================================================
   MENÚ MÓVIL ABIERTO
========================================================= */

/*
   Estas clases permiten que el mismo JS del menú
   pueda controlar la navegación.

   Se soportan tanto:
   .main-nav.active
   como:
   .main-nav.open
*/

@media (max-width: 750px) {

    .main-nav.active,
    .main-nav.open {
        display: flex;

        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        width: 100%;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        margin: 0;

        padding: 10px 20px 20px;

        background: rgba(255, 255, 255, 0.98);

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);

        border-bottom: 1px solid var(--border);

        box-shadow: var(--shadow-md);
    }

    .main-nav.active .nav-item,
    .main-nav.open .nav-item {
        width: 100%;

        padding: 14px 5px;

        border-bottom: 1px solid #f1f5f9;
    }

    .main-nav.active .nav-item:last-child,
    .main-nav.open .nav-item:last-child {
        border-bottom: none;
    }

    .main-nav.active .nav-item.active::after,
    .main-nav.open .nav-item.active::after {
        display: none;
    }
}


/* =========================================================
   GENERAL SECTION TAG
========================================================= */

.section-tag {
    display: inline-block;

    margin-bottom: 15px;

    padding: 7px 15px;

    border-radius: 30px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


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

.hero-importacion {
    position: relative;

    overflow: hidden;

    padding: 95px 0;

    background:
        linear-gradient(
            135deg,
            #eff6ff 0%,
            #ffffff 58%,
            #f8fafc 100%
        );
}

.hero-importacion::before {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    top: -220px;
    right: -120px;

    border-radius: 50%;

    background: rgba(37, 99, 235, 0.07);

    pointer-events: none;
}

.hero-container {
    position: relative;

    display: grid;

    grid-template-columns:
        1.05fr
        0.95fr;

    align-items: center;

    gap: 70px;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.hero-content {
    max-width: 680px;
}

.hero-content h1 {
    margin-bottom: 25px;

    color: var(--secondary);

    font-size: clamp(42px, 5vw, 64px);

    font-weight: 800;

    line-height: 1.08;

    letter-spacing: -2.5px;
}

.hero-content h1 span {
    display: block;

    color: var(--primary);
}

.hero-content > p {
    max-width: 620px;

    margin-bottom: 35px;

    color: var(--text-light);

    font-size: 18px;

    line-height: 1.8;
}


/* =========================================================
   HERO BUTTONS
========================================================= */

.hero-actions {
    display: flex;
    align-items: center;

    gap: 14px;

    flex-wrap: wrap;
}


/* =========================================================
   BUTTONS
========================================================= */

.primary-button,
.secondary-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 22px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.primary-button {
    background: var(--primary);

    color: #ffffff;
}

.primary-button:hover {
    background: var(--primary-dark);

    transform: translateY(-2px);
}

.secondary-button {
    background: #ffffff;

    color: var(--secondary);

    border: 1px solid var(--border);
}

.secondary-button:hover {
    color: var(--primary);

    border-color: var(--primary);

    transform: translateY(-2px);
}


/* =========================================================
   HERO IMAGE
========================================================= */

.hero-card {
    position: relative;

    overflow: hidden;

    min-height: 430px;

    border-radius: var(--radius-lg);

    background: #ffffff;

    border: 1px solid var(--border);

    box-shadow: var(--shadow-lg);
}

.hero-card::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(15, 23, 42, 0.20),
            transparent 45%
        );

    pointer-events: none;
}

.hero-card img {
    width: 100%;
    height: 100%;

    min-height: 430px;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}

.hero-card:hover img {
    transform: scale(1.03);
}


/* =========================================================
   SERVICIOS
========================================================= */

.import-services {
    width: 100%;

    padding: 95px 0;

    background: var(--background-soft);
}

.services-header {
    max-width: 760px;

    margin: 0 auto 55px;

    text-align: center;
}

.services-header h2 {
    margin-bottom: 18px;

    color: var(--secondary);

    font-size: clamp(32px, 4vw, 48px);

    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -1.5px;
}

.services-header p {
    color: var(--text-light);

    font-size: 16px;

    line-height: 1.7;
}


/* =========================================================
   SERVICES GRID
========================================================= */

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 24px;
}


/* =========================================================
   SERVICE CARD
========================================================= */

.service-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 320px;

    padding: 30px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--border);

    border-radius: 20px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.service-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: var(--primary);

    transform: scaleX(0);

    transform-origin: left;

    transition:
        transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-7px);

    border-color: #cbd5e1;

    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}


/* =========================================================
   SERVICE ICON
========================================================= */

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

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border-radius: 16px;

    background: var(--secondary);

    color: #ffffff;

    font-size: 22px;
}

.service-card:nth-child(2) .service-icon {
    background: #1d4ed8;
}

.service-card:nth-child(3) .service-icon {
    background: #7c3aed;
}

.service-card:nth-child(4) .service-icon {
    background: #0891b2;
}

.service-card:nth-child(5) .service-icon {
    background: #059669;
}


/* =========================================================
   SERVICE CONTENT
========================================================= */

.service-content {
    display: flex;
    flex-direction: column;

    height: 100%;
}

.service-number {
    display: block;

    margin-bottom: 6px;

    color: #94a3b8;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1px;
}

.service-content h3 {
    margin-bottom: 12px;

    color: var(--secondary);

    font-size: 21px;

    font-weight: 750;
}

.service-content p {
    color: var(--text-light);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   ROUTE
========================================================= */

.service-route {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-top: auto;

    padding-top: 25px;

    color: #475569;

    font-size: 12px;
    font-weight: 700;
}

.service-route span {
    display: inline-flex;

    align-items: center;

    gap: 6px;
}

.service-route span i {
    color: #94a3b8;

    font-size: 11px;
}

.service-route > i {
    font-size: 11px;
}


/* =========================================================
   GALERÍA
========================================================= */

.import-gallery {
    padding: 100px 0;

    background: #ffffff;
}

.section-heading {
    max-width: 720px;

    margin-bottom: 55px;
}

.section-heading.centered {
    margin-left: auto;
    margin-right: auto;

    text-align: center;
}

.section-heading h2 {
    margin-bottom: 15px;

    color: var(--secondary);

    font-size: clamp(32px, 4vw, 46px);

    line-height: 1.15;

    letter-spacing: -1.5px;
}

.section-heading p {
    color: var(--text-light);

    font-size: 16px;
}


/* =========================================================
   GALERÍA GRID
========================================================= */

.gallery-grid {
    display: grid;

    grid-template-columns:
        1.4fr
        1fr
        1fr;

    grid-template-rows:
        260px
        260px;

    gap: 18px;
}

.gallery-item {
    position: relative;

    overflow: hidden;

    border-radius: var(--radius-lg);

    background: #e2e8f0;
}

.gallery-item::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(15, 23, 42, 0.20),
            transparent 50%
        );

    pointer-events: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-large {
    grid-row: span 2;
}


/* =========================================================
   PROCESO
========================================================= */

.process-section {
    padding: 100px 0;

    background: var(--background-soft);
}

.process-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 22px;
}

.process-card {
    position: relative;

    padding: 32px 28px;

    background: #ffffff;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.process-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow-md);
}

.process-number {
    position: absolute;

    top: 20px;
    right: 22px;

    color: #cbd5e1;

    font-size: 13px;
    font-weight: 800;
}

.process-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 24px;

    border-radius: 14px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 23px;
}

.process-card h3 {
    margin-bottom: 10px;

    color: var(--secondary);

    font-size: 19px;
}

.process-card p {
    color: var(--text-light);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   CTA
========================================================= */

.cta-section {
    padding: 85px 0;

    background: var(--secondary);
}

.cta-container {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 50px;
}

.cta-content {
    max-width: 700px;
}

.cta-content .section-tag {
    background: rgba(147, 197, 253, 0.12);

    color: #93c5fd;
}

.cta-content h2 {
    margin-bottom: 15px;

    color: #ffffff;

    font-size: clamp(32px, 4vw, 46px);

    line-height: 1.15;

    letter-spacing: -1.5px;
}

.cta-content p {
    color: #cbd5e1;

    font-size: 16px;
}

.cta-actions {
    display: flex;
    align-items: center;

    gap: 12px;

    flex-shrink: 0;
}

.cta-section .secondary-button {
    background: transparent;

    border-color: #475569;

    color: #ffffff;
}

.cta-section .secondary-button:hover {
    border-color: #ffffff;
}


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

.main-footer {
    background: #020617;

    color: #ffffff;
}

.footer-container {
    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1fr
        1fr;

    gap: 50px;

    padding: 70px 0;
}

.footer-brand .logo {
    display: inline-flex;

    margin-bottom: 18px;
}

.footer-brand .logo img {
    height: 42px;
}

.footer-brand p {
    max-width: 300px;

    color: #94a3b8;

    font-size: 14px;

    line-height: 1.7;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;

    align-items: flex-start;
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 18px;

    font-size: 15px;
}

.footer-links a,
.footer-contact a {
    margin-bottom: 10px;

    color: #94a3b8;

    font-size: 14px;

    transition:
        color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #ffffff;
}

.footer-contact p {
    margin-bottom: 8px;

    color: #94a3b8;

    font-size: 14px;
}


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

.footer-bottom {
    padding: 22px 20px;

    border-top: 1px solid #1e293b;

    text-align: center;
}

.footer-bottom p {
    color: #64748b;

    font-size: 12px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .main-nav {
        gap: 20px;

        margin-right: 20px;
    }

    .hero-container {
        grid-template-columns:
            1fr
            0.8fr;

        gap: 45px;
    }

    .services-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* =========================================================
   TABLET PEQUEÑA
========================================================= */

@media (max-width: 900px) {

    .hero-container {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .hero-content {
        max-width: 750px;
    }

    .hero-card {
        max-width: 700px;

        width: 100%;
    }

    .gallery-grid {
        grid-template-columns:
            1fr
            1fr;

        grid-template-rows:
            300px
            220px
            220px;
    }

    .gallery-large {
        grid-row: span 1;

        grid-column: span 2;
    }

    .footer-container {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .cta-container {
        flex-direction: column;

        align-items: flex-start;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 750px) {

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

    .site-header {
        position: sticky;
    }

    .header-container {
        min-height: 68px;

        position: relative;
    }

    .main-nav,
    .header-contact {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .section-container,
    .header-container,
    .footer-container,
    .hero-container,
    .cta-container {
        width: min(
            calc(100% - 30px),
            var(--container)
        );
    }


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

    .hero-importacion {
        padding: 70px 0;
    }

    .hero-content h1 {
        font-size: 40px;

        letter-spacing: -1.8px;
    }

    .hero-content > p {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .hero-actions a {
        width: 100%;
    }

    .hero-card {
        min-height: 300px;
    }

    .hero-card img {
        min-height: 300px;
    }


    /* =====================================================
       SERVICIOS
    ===================================================== */

    .import-services {
        padding: 70px 0;
    }

    .services-header {
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .service-card {
        min-height: auto;

        padding: 27px;
    }


    /* =====================================================
       GALERÍA
    ===================================================== */

    .import-gallery {
        padding: 70px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;

        grid-template-rows:
            repeat(5, 230px);

        gap: 14px;
    }

    .gallery-large {
        grid-column: auto;

        grid-row: auto;
    }


    /* =====================================================
       PROCESO
    ===================================================== */

    .process-section {
        padding: 70px 0;
    }

    .process-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .process-card {
        padding: 28px;
    }


    /* =====================================================
       CTA
    ===================================================== */

    .cta-section {
        padding: 65px 0;
    }

    .cta-actions {
        width: 100%;

        flex-direction: column;

        align-items: stretch;
    }

    .cta-actions a {
        width: 100%;
    }


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

    .footer-container {
        grid-template-columns: 1fr;

        gap: 35px;

        padding: 55px 0;
    }
}


/* =========================================================
   MOBILE PEQUEÑO
========================================================= */

@media (max-width: 480px) {

    .header-container {
        min-height: 64px;
    }

    .brand {
        gap: 8px;
    }

    .brand-symbol {
        width: 33px;
        height: 33px;
    }

    .brand-name {
        font-size: 17px;
    }

    .mobile-menu {
        width: 40px;
        height: 40px;

        font-size: 17px;
    }

    .hero-content h1 {
        font-size: 35px;
    }

    .hero-card {
        min-height: 260px;
    }

    .hero-card img {
        min-height: 260px;
    }

    .services-header h2,
    .section-heading h2 {
        font-size: 31px;
    }

    .service-card {
        padding: 25px;
    }

    .gallery-grid {
        grid-template-rows:
            repeat(5, 200px);
    }
}


/* =========================================================
   ACCESIBILIDAD / REDUCIR ANIMACIONES
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}