﻿/* ============================
   TOKENS Y TIPOGRAFÍA
============================ */
:root {
    --apymsa-blue: #002b7f;
    --apymsa-red: #e30613;
    --apymsa-gray: #999999;
}

body {
    font-family: 'Montserrat','Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
    color: #000;
    font-size: 16px;
}

/* ============================
   HEADER / NAV
============================ */
.header {
    background: #EBEBEB;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    padding: 5px 0
}

.navbar .nav-link {
    color: var(--apymsa-gray);
    display: flex;
    align-items: center;
    gap: .5rem;
    transition: color .2s ease;
}

    .navbar .nav-link:hover,
    .navbar .nav-link.active {
        color: var(--apymsa-red);
    }

    .navbar .nav-link svg path {
        transition: fill .2s ease;
    }

    .navbar .nav-link:hover svg path,
    .navbar .nav-link.active svg path {
        fill: var(--apymsa-red);
    }

/* ============================
   BOTONES
============================ */
.btn-secondary {
    background: #E6002B !important;
    border-color: #E6002B !important;
    min-height: 50px;
    border-radius: 6px;
    font: 600 16px/18px 'Inter',sans-serif;
}

.btn-outline-secondary {
    color: #E6002B !important;
    background: transparent !important;
    border-color: #E6002B !important;
    min-height: 50px;
    border-radius: 6px;
    font: 600 16px/18px 'Inter',sans-serif;
}

/* ============================
   HERO (fondo y medidas)
============================ */
.hero-landing {
    background-image: url('/img/Container_img.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    min-height: 400px;
    padding: 80px 0 100px;
}

.hero-title {
    font-family: 'Montserrat',sans-serif;
    font-weight: 400;
    letter-spacing: 8px;
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
}

.hero-subtitle {
    padding: 15px;
    font-size: 18px;
    line-height: 1.6;
    max-width: 600px;
    color: #fff;
}

.hero-logo {
    display: block;
    height: auto;
    max-width: 260px; /* móviles */
}

@media (min-width:768px) {
    .hero-logo {
        max-width: 320px;
    }
}

@media (min-width:992px) {
    .hero-logo {
        max-width: 380px;
    }

    .hero-title {
        font-size: 50px;
    }
}
/* Blindaje de color dentro del hero */

.hero-landing .hero-title, .hero-landing .hero-subtitle {
    color: #fff !important;
}

/* ============================
   INTRO
============================ */
.intro-section {
    padding: 60px 0;
    text-align: center;
}

.intro-title {
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
    font-size: 16px;
}

.intro-text {
    color: #666;
    font-size: 16px;
}

/* ============================
   ¿CÓMO FUNCIONA?
============================ */
.como-funciona-section {
    padding: 60px 0;
    background: #f5f5f5;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 300;
    color: var(--apymsa-blue);
    margin-bottom: 60px;
    letter-spacing: 2px;
}

.funciona-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.funciona-image {
    flex: 1;
    max-width: 480px;
}

    .funciona-image img {
        width: 100%;
        border-radius: 8px;
    }

.funciona-steps {
    flex: 1;
    max-width: 80%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.step-number {
    font-size: 42px;
    font-weight: 300;
    color: var(--apymsa-blue);
    min-width: 30px;
    text-align: center;
}

.step-content p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* ============================
   BENEFICIOS
============================ */
.beneficios-section {
    padding: 50px 0;
    background: #fff;
}

.beneficio-card {
    background: var(--apymsa-blue);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    height: 100%;
    position: relative;
    transition: transform .3s;
    font-size: 16px;
    box-shadow: -3px 4px 4px 0px #00000033;
    border: 0;
}

    .beneficio-card:hover {
        transform: translateY(-5px);
    }

.beneficio-icon {
    width: 80px;
    height: 80px;
    background: #081440;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -60px auto 20px;
    box-shadow: -2px 4px 4px 0px #0000004D;
}

.beneficio-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.beneficio-card p {
    font-size: 16px;
    line-height: 1.5;
}

/* ============================
   CTA
============================ */
.cta-section {
    padding: 0 0 60px;
    text-align: center;
}

.cta-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
    color: #000;
}

.cta-text {
    color: #666;
    font-size: 16px;
}

/* ============================
   FOOTER (azul exacto)
============================ */
.bg-dark-blue {
    background: #081440 !important;
    color: #fff !important;
}

.footer {
    background: #081440;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 60px;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links a {
        color: #fff;
        text-decoration: none;
        font-size: 12px;
        border-bottom: 1px solid #fff;
        padding-bottom: 2px;
    }

        .footer-links a:hover {
            opacity: .8;
        }

/* ============================
   PERFIL (sección “datos”)
============================ */

.perfil-hero {
    background: linear-gradient(180deg,#1B3892 0%, rgba(27,56,146,0) 74.52%), #081440;
    color: #fff;
    padding-top: 40px; /* espacio arriba para que el nombre no quede pegado */
    padding-bottom: 40px;
}

/* Panel azul translúcido */
.perfil-hero__panel {
    background: #1D65A54D;
    box-shadow: -3px 4px 4px 0px #00000033;
    border-radius: 10px;
    border: 0;
    padding: .75rem 1rem;
    height: 226px; /* maquetado desktop */
    opacity: 1;
    display: flex; /* NUEVO */
    flex-direction: column; /* NUEVO */
}

.perfil-hero__title {
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 39px; /* maquetado */
    line-height: 100%;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 .25rem 0;
}

/* Texto dentro del panel */
.perfil-hero__stat {
    font-family: Montserrat, sans-serif;
    font-weight: 400;
    font-size: 39px; /* maquetado */
    line-height: 100%;
    letter-spacing: .1em; /* similar a “10%” del figma */
    text-transform: uppercase;
    margin-bottom: 15px; /* maquetado */
}

.perfil-hero__label {
    font-family: Montserrat, sans-serif;
    font-weight: 400;
    font-size: 16px; /* maquetado */
    line-height: 100%;
    opacity: 1;
}

.perfil-hero__mail {
    font-family: Montserrat, sans-serif;
    font-weight: 400;
    font-size: 12px; /* maquetado */
    line-height: 100%;
    margin-bottom: 50px; /* maquetado */
    opacity: 1;
}

.perfil-hero__exp {
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
}

/* Nota = .verifica del maquetado */
.perfil-hero__note {
    color: #1D65A5;
    font-family: Montserrat, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    text-align: center;
    margin-top: 50px; /* maquetado */
    margin-bottom: 0;
}

/* Divisor vertical del panel */
.perfil-hero__divider {
    width: 1px;
    height: 90px; /* visual similar a h-50 del mock */
    background-color: #1D65A5;
    opacity: 1;
}

/* Sección de CTAs (si llegas a usarla después) */
.perfil-actions {
    padding: 80px 0;
}

/* ===== Responsivo PERFIL ===== */
@media (max-width: 768px) {
    .perfil-hero {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .perfil-hero__title {
        font-size: 24px;
    }

    .perfil-hero__mail {
        margin-bottom: 30px;
        font-size: 12px;
    }

    .perfil-hero__panel {
        height: auto; /* que se adapte al contenido en móvil */
        max-width: 100%;
        padding: 1.5rem 1rem; /* un poco más de aire */
    }

    .perfil-hero__stat {
        font-size: 29px;
        margin-bottom: 10px;
    }

    .perfil-hero__label {
        font-size: 12px;
    }

    .perfil-hero__exp {
        font-size: 9px;
    }

    .perfil-hero__note {
        margin-top: 30px;
    }
}


/* ===== Responsivo ===== */
@media (max-width: 768px) {
    .perfil-hero {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .perfil-hero__title {
        font-size: 24px;
    }

    .perfil-hero__mail {
        margin-bottom: 30px;
        font-size: 12px;
    }

    .perfil-hero__panel {
        height: 140px; /* maquetado */
        max-width: 100%;
        padding: 0 1rem;
    }

    .perfil-hero__stat {
        font-size: 29px;
        margin-bottom: 10px;
    }

    .perfil-hero__label {
        font-size: 12px;
    }

    .perfil-hero__divider {
        display: none;
    }
    /* en mock no aparece */
    .perfil-hero__exp {
        font-size: 9px;
    }

    .perfil-hero__note {
        margin-top: 30px;
    }
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width:768px) {
    .header {
        padding-bottom: 0;
        padding-top: 0;
        background: #fff;
    }

    .hero-title {
        font-size: 32px;
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: 16px;
        text-align: center;
    }

    .funciona-container {
        flex-direction: column;
        gap: 30px;
    }

    .section-title {
        font-size: 28px;
    }

    .beneficio-card {
        padding: 15px;
    }

    .beneficio-icon {
        width: 40px;
        height: 40px;
        margin: -40px auto 10px;
    }

        .beneficio-icon img {
            width: 20px;
            height: 20px;
        }

    .beneficio-card h3 {
        font-size: 12px;
        font-weight: 700;
    }

    .beneficio-card p {
        font-size: 12px;
    }
}

/* ============================
   BOTONES
============================ */
.btn-secondary, .btn-outline-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    font-weight: 600;
}


/* ============================
   TERMINOS Y CONDICIONES
============================ */
.terminos-section {
    padding: 60px 0;
    text-align: center;
}

.terminos-title {
    font-weight: bold;
    margin-bottom: 12px;
    color: #081440;
    font-size: 16px;
}

.terminos-text {
    color: #000000;
    font-size: 12px;
    text-align: justify;
}

/* ============================
   PERFIL – PROGRESO AL SIGUIENTE NIVEL
============================ */
.perfil-progress {
    color: #fff;
}

.perfil-progress__title {
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 16px;
}

.perfil-progress__next-level {
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
}

/* Barra */
.perfil-progress__bar {
    margin-top: 25px;
    height: 34px;
    background-color: #f1f1f1;
    border-radius: 20px;
    overflow: hidden;
}

    .perfil-progress__bar .progress-bar {
        background-color: #e54e50;
    }

/* Montos */
.perfil-progress__amount {
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 14px;
}

.perfil-progress__amount--min,
.perfil-progress__amount--max {
    color: #ffffff;
}

.perfil-progress__amount--current {
    color: #e30613;
}

/* Porcentaje */
.perfil-progress__percent {
    font-size: 14px;
    top: -20px; /* desktop: un poco arriba de la barra */
}

/* ============================
   RESPONSIVO (MÓVIL)
============================ */
@media (max-width: 768px) {

    /* Separar toda la sección del progreso hacia abajo */
    .perfil-progress {
        margin-top: 30px; /* Ajusta a 40px si quieres aún más aire */
    }

    .perfil-progress__bar {
        height: 28px;
    }

    .perfil-progress__amount {
        font-size: 12px;
    }

    .perfil-progress__percent {
        top: -20px; /* móvil: más pegado a la barra, más lejos del texto */
    }
}

/* Sección de requisitos */
.canjear {
    padding: 80px 0;
}

/* Líneas azules de la tabla (solo en las 3 columnas derechas) */
.table-borderless > tbody > tr:nth-of-type(odd) > * {
    --bs-table-bg-type: transparent; /* Sin fondo alternado */
}

.table-borderless > tbody > tr > td {
    border-bottom: 1px solid #5d8ed5; /* línea azul */
}

    /* No dibujar línea debajo de la primera columna (NIVEL) */
    .table-borderless > tbody > tr > td:first-of-type {
        border-bottom: none;
    }

/* Quitar línea después de la última fila */
.table-borderless > tbody > tr:last-of-type {
    border-bottom: none;
}

/* Recuadros del encabezado */
.gradient-border-box {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    position: relative;
    isolation: isolate;
    background-color: white;
    white-space: nowrap;
}

    .gradient-border-box::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 0.5rem;
        padding: 1px;
        background: linear-gradient( to bottom, #4686E8 0%, #ffffff 75%, #ffffff 100% );
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        z-index: -1;
    }

    .gradient-border-box.primary::before {
        background: linear-gradient( to bottom, #E6002B 0%, #ffffff 75%, #ffffff 100% );
    }

    .gradient-border-box.primary h5 {
        color: #E6002B;
        font-weight: bold;
    }

/* Colores de textos para título y cabeceras de la tabla */
.text-primary {
    color: #1B3892 !important; /* Azul del título "REQUISITOS..." y de MÁXIMO */
}

.text-danger {
    color: #E6002B !important; /* Rojo de MÍNIMO */
}

/* ============================
   MIS BENEFICIOS
============================ */
.misbeneficios {
    padding: 30px 0 80px;
    text-align: center;
}

    .misbeneficios p {
        margin-bottom: 20px;
        font-size: 16px;
    }

/* Tabla */
.contenedor-beneficios {
    width: 100%;
}

    /* Línea azul bajo encabezados (menos BENEFICIO) */
    .contenedor-beneficios thead th {
        border-bottom: 1px solid #5d8ed5 !important;
    }

        .contenedor-beneficios thead th:first-of-type {
            border-bottom: none !important;
        }

/* ============================
   MIS BENEFICIOS – AJUSTE DE ESTILO
============================ */

/* Botón azul del beneficio: desktop por defecto
   → icono a la IZQUIERDA y texto a la DERECHA */
.beneficio {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: none;
    color: #fff;
    display: flex; /* clave */
    flex-direction: row; /* icono + texto en línea */
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
}

    .beneficio i,
    .beneficio svg {
        width: 20px;
        font-size: 20px;
        margin-top: 0;
        flex-shrink: 0;
    }

    .beneficio h5 {
        margin: 0;
        padding: 0;
        font-size: 1.2rem;
    }

/* Altura de filas */
.contenedor-beneficios tbody td {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

/* Check rojo */
.custom-checkbox-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 0 0 2px #ffffff;
}

    .custom-checkbox-icon svg {
        width: 22px;
        height: 22px;
    }

/* Colores por nivel */
.beneficio.nivel-1 {
    background-color: #081440;
}

.beneficio.nivel-2 {
    background-color: #152463;
}

.beneficio.nivel-3 {
    background-color: #1A3E9A;
}

.beneficio.nivel-4 {
    background-color: #2656D3;
}

.beneficio.nivel-5 {
    background-color: #4A7DEB;
}

.beneficio.nivel-6 {
    background-color: #6AA1F2;
}

.beneficio.nivel-7 {
    background-color: #86B8F5;
}

/* ===== Versión móvil ===== */
@media (max-width: 768px) {

    .misbeneficios {
        padding: 24px 0 60px;
    }

        .misbeneficios .container {
            max-width: 100%;
            padding-left: 12px;
            padding-right: 12px;
        }

    .contenedor-beneficios {
        font-size: 14px;
    }

        .contenedor-beneficios thead th {
            padding-top: 0.5rem;
            padding-bottom: 0.5rem;
        }

        .contenedor-beneficios thead h6 {
            font-size: 13px;
            white-space: nowrap;
        }

    /* En móvil: icono ARRIBA y texto ABAJO, pero más juntos
       y con el mismo tamaño de icono que en desktop */
    .beneficio {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 0.35rem; /* <-- menos espacio entre icono y texto */
    }

        .beneficio i,
        .beneficio svg {
            width: 26px; /* <-- mismo tamaño que desktop */
            font-size: 26px;
        }

        .beneficio h5 {
            margin: 0;
            padding: 0;
            font-size: 12px; /* si lo quieres un poquito más grande, sube a 13-14px */
        }
}


/* Ajuste fino para DESKTOP (icono más grande + texto más centrado) */
@media (min-width: 769px) {
    .beneficio {
        flex-direction: row; /* icono izquierda, texto derecha */
        justify-content: flex-start;
        text-align: left;
        gap: 3rem; /* aire entre icono y texto */
    }

        .beneficio i,
        .beneficio svg {
            width: 26px;
        }
}


/* ============================
   MOVIMIENTOS – TÍTULO
============================ */
.movimientos-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400; /* ligero */
    font-size: 40px;
    letter-spacing: 0.25em; /* bien espaciado */
    text-transform: uppercase;
    text-align: center;
    color: var(--apymsa-blue);
    margin-bottom: 40px;
}

.movimientos-header-pill span {
    font-size: 1.25rem !important;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}


@media (max-width: 768px) {
    .movimientos-title {
        font-size: 26px;
        letter-spacing: 0.15em;
        margin-bottom: 24px;
    }

    .movimientos-header-pill span {
        font-size: 12px !important;
        font-weight: 700;
        font-family: 'Montserrat', sans-serif;
    }
}

/* ============================
   MOVIMIENTOS – TABLA
============================ */

/* Encabezado con un solo marco rojo y esquinas suaves */
.tabla-movimientos thead th {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--apymsa-red);
    border: none;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}
/* Líneas azules que van de FECHA a CANTIDAD DE PUNTOS */
.tabla-movimientos table.table-borderless > tbody > tr > td {
    border-bottom: 1px solid #5d8ed5;
}

    /* Sobreescribe la regla global que quitaba la línea en la primera columna */
    .tabla-movimientos table.table-borderless > tbody > tr > td:first-of-type {
        border-bottom: 1px solid #5d8ed5 !important;
    }

/* Celdas cuerpo */
.tabla-movimientos tbody td {
    font-size: 1.05rem;
}

    /* Columna de puntos más marcada */
    .tabla-movimientos tbody td.fw-bold,
    .tabla-movimientos tbody td b {
        font-weight: 700;
    }

.cart-container {
    position: relative; /* Permite que el número flote dentro de esta área */
    display: inline-block;
    text-decoration: none; /* Quita el subrayado del enlace */
}

.cart-counter {
    position: absolute; /* Flota sobre el ícono */
    top: -2px; /* Sube el círculo (ajusta según gusto) */
    right: -5px; /* Mueve a la derecha (ajusta según gusto) */
    background-color: #dc3545; /* Color rojo (Danger de Bootstrap) */
    color: white;
    font-size: 7px; /* Tamaño del número */
    font-weight: bold; /* Relleno para dar forma al círculo */
    border-radius: 50%; /* Hace que sea perfectamente redondo */
    border: 1px solid white; /* Opcional: borde blanco para separar del ícono */
    min-width: 14px; /* Asegura que no se deforme con números pequeños */
    min-height: 14px; /* Asegura que no se deforme con números pequeños */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
