html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #F4F6F9;
    color: #1E293B;
    margin: 0;
    padding: 0;
}

main {
    padding-top: 40px;
}

/* NAVBAR */

.safecode-navbar {
    background: #006699;
    padding-top: 8px;
    padding-bottom: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.10);
}

.navbar-main-logo {
    height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.nav-link {
    color: white !important;
    margin-left: 10px;
    font-weight: 500;
    transition: .3s;
}

    .nav-link:hover {
        color: #FF6A00 !important;
    }

/* HERO */

.hero {
    padding-top: 100px;
    padding-bottom: 100px;
    background: linear-gradient(to right, #ffffff, #eef5fb);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #0069A8;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 30px;
}

/* BOTONES */

.btn-safecode {
    background: #FF6A00;
    border: none;
    color: white;
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 600;
    transition: .3s;
    text-decoration: none;
}

    .btn-safecode:hover {
        background: #e25d00;
        color: white;
    }

/* PRODUCTS */

.products-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #0069A8;
}

/* ===== CARRUSEL ===== */

.safecode-products-carousel {
    max-width: 720px;
    margin: 0 auto;
}

    /* Espaciado interno */
    .safecode-products-carousel .e-carousel-items,
    .safecode-products-carousel .e-carousel-item {
        min-height: 390px;
        padding: 20px 0;
    }

/* TARJETA */

.carousel-product-card {
    background: white;
    border-radius: 22px;
    padding: 42px 48px;
    min-height: 360px;
    box-shadow: 0 8px 28px rgba(0,0,0,.10);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: box-shadow .3s ease;
}

    .carousel-product-card:hover {
        box-shadow: 0 16px 40px rgba(0,0,0,.16);
    }

/* IMÁGENES (IMPORTANTE: tamaño fijo para evitar brincos) */

.carousel-product-image {
    width: 100%;
    height: 130px;
    max-width: 360px;
    object-fit: contain;
    margin: 0 auto 28px auto;
}

.carousel-product-image-small {
    height: 150px;
    max-width: 150px;
}

/* TEXTO */

.carousel-product-card h3 {
    color: #0069A8;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.carousel-product-card p {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

/* ICONO DESARROLLO MÓVIL */

.mobile-product-icon {
    width: 110px;
    height: 110px;
    border-radius: 28px;
    margin: 0 auto 28px auto;
    background: linear-gradient(135deg, #0069A8, #FF6A00);
    color: white;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CONTROLES (flechas) */

.safecode-products-carousel .e-carousel-navigators {
    opacity: 0;
    transition: .3s;
}

.safecode-products-carousel:hover .e-carousel-navigators {
    opacity: 1;
}

.safecode-products-carousel .e-carousel-navigators .e-previous,
.safecode-products-carousel .e-carousel-navigators .e-next {
    width: 46px;
    height: 46px;
    background: #0069A8 !important;
    color: white;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(0,105,168,.28);
    transition: transform .25s ease, background .25s ease;
}

    .safecode-products-carousel .e-carousel-navigators .e-previous:hover,
    .safecode-products-carousel .e-carousel-navigators .e-next:hover {
        background: #FF6A00 !important;
        transform: scale(1.08);
    }

/* INDICADORES */

.safecode-products-carousel .e-carousel-indicators .e-indicator-bars .e-indicator-bar .e-indicator {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #CBD5E1 !important;
}

.safecode-products-carousel .e-carousel-indicators .e-indicator-bars .e-indicator-bar.e-active .e-indicator {
    width: 26px;
    background: #FF6A00 !important;
}

/* FOOTER */

.safecode-footer {
    background: #0069A8;
    color: white;
    padding-top: 50px;
    padding-bottom: 30px;
}

    .safecode-footer h5 {
        margin-bottom: 20px;
        font-weight: 700;
    }

    .safecode-footer p {
        color: rgba(255,255,255,.85);
    }

    .safecode-footer hr {
        border-color: rgba(255,255,255,.20);
        margin-top: 30px;
        margin-bottom: 20px;
    }

/* MOBILE */

@media(max-width:768px) {

    .hero {
        text-align: center;
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .navbar-main-logo {
        height: 45px;
    }

    .carousel-product-card {
        padding: 32px 22px;
        min-height: 360px;
    }

    .carousel-product-image {
        max-width: 260px;
    }
}

/* PRODUCT DETAIL */

.product-detail-section {
    padding-top: 50px;
    padding-bottom: 80px;
}

.side-menu {
    position: sticky;
    top: 30px;
    background: white;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
}

    .side-menu h5 {
        color: #0069A8;
        font-weight: 800;
        margin-bottom: 18px;
    }

    .side-menu a {
        display: block;
        padding: 11px 0;
        color: #1E293B;
        text-decoration: none;
        font-weight: 600;
        border-bottom: 1px solid #E5E7EB;
    }

        .side-menu a:hover {
            color: #FF6A00;
        }

.product-detail-card {
    background: white;
    border-radius: 22px;
    padding: 42px;
    margin-bottom: 28px;
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
}

.product-detail-logo {
    max-width: 320px;
    width: 100%;
    margin-bottom: 28px;
}

.product-detail-card h1 {
    color: #0069A8;
    font-weight: 800;
    margin-bottom: 12px;
}

.product-detail-card h2 {
    color: #1E293B;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 22px;
}

.product-detail-card p {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.8;
}

.resource-list {
    padding-left: 18px;
}

    .resource-list li {
        margin-bottom: 12px;
    }

    .resource-list a {
        color: #0069A8;
        font-weight: 600;
        text-decoration: none;
    }

        .resource-list a:hover {
            color: #FF6A00;
        }

@media(max-width:768px) {
    .side-menu {
        position: relative;
        top: auto;
    }

    .product-detail-card {
        padding: 28px 22px;
    }
}

/* SASFI APP */

.app-feature-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 28px;
    margin-bottom: 28px;
}

.app-feature-card {
    background: #F8FAFC;
    border-radius: 18px;
    padding: 22px 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

    .app-feature-card .material-symbols-rounded {
        font-size: 42px;
        color: #0069A8;
        margin-bottom: 10px;
    }

    .app-feature-card p {
        font-size: .95rem;
        font-weight: 700;
        margin: 0;
        color: #1E293B;
    }

.qr-download-box {
    margin: 28px auto 0 auto;
    max-width: 280px;
    padding: 24px;
    border-radius: 22px;
    background: #F8FAFC;
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
}

.qr-download-image {
    width: 190px;
    height: 190px;
    object-fit: contain;
    background: white;
    padding: 10px;
    border-radius: 14px;
}

@media(max-width:768px) {
    .app-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.js-product-link {
    position: relative;
    z-index: 20;
    pointer-events: auto;
}
