/* =========================================================
   HEALINK — Estilos acotados
   Este archivo SOLO contiene estilos para dos elementos:
   1) Los 4 pasos del proceso de compra (título + descripción +
      insignia numerada oscura flotando sobre el ícono)
   2) El banner "Profesionales de la salud y aseguradoras"
      (texto a la izquierda, botón blanco a la derecha, blob lima)

   No modifica el header, footer, hero, tarjetas de producto,
   ni ningún otro estilo existente en la página.
   ========================================================= */

:root {
    --healink-turquesa: #2FA9C1;
    --healink-lima: #C0DB00;
    --healink-tinta: #1f2d3d;
}

/* ---------------------------------------------------------
   1) Pasos del proceso de compra
   --------------------------------------------------------- */
.proceso-pasos-nuevo {
    margin-top: 10px;
}

.paso-nuevo {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 8px;
}

.paso-nuevo-icono {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(20, 45, 60, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .paso-nuevo-icono i {
        font-size: 24px;
        color: var(--healink-turquesa);
    }

.paso-nuevo-icono-verde i {
    color: var(--healink-lima);
    filter: brightness(0.85);
}

.paso-nuevo-badge {
    position: absolute;
    top: -6px;
    right: -4px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    border-radius: 50%;
    background: var(--healink-tinta);
    color: #ffffff;
    font-family: 'Poppins', 'Helvetica', sans-serif;
    font-weight: 700;
    font-size: 11px;
    text-align: center;
}

.paso-nuevo-titulo {
    font-family: 'Poppins', 'Helvetica', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--healink-tinta);
    margin: 0 0 4px !important;
}

.paso-nuevo-desc {
    font-size: 13px;
    color: #6b7785;
    margin: 0 !important;
}

@media (max-width: 850px) {
    .paso-nuevo-icono {
        width: 54px;
        height: 54px;
    }

        .paso-nuevo-icono i {
            font-size: 20px;
        }

    .paso-nuevo-titulo {
        font-size: 13.5px;
    }

    .paso-nuevo-desc {
        font-size: 12px;
    }
}

/* ---------------------------------------------------------
   2) Banner de profesionales
   --------------------------------------------------------- */
.pro-banner-nuevo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(120deg, #37b9d1 0%, #2FA9C1 45%, #1a7385 100%);
    border-radius: 16px;
    padding: 30px 28px;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

    .pro-banner-nuevo::after {
        content: "";
        position: absolute;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: var(--healink-lima);
        opacity: 0.22;
        right: -50px;
        top: -70px;
    }

.pro-banner-nuevo-texto {
    position: relative;
    z-index: 1;
}

.pro-banner-nuevo h3 {
    color: #ffffff;
    font-family: 'Poppins', 'Helvetica', sans-serif;
    font-size: 19px;
    margin: 0;
}

.pro-banner-nuevo-btn {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    background: #ffffff !important;
    color: var(--healink-turquesa) !important;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    text-transform: none;
    white-space: nowrap;
    transition: background-color 200ms ease, color 200ms ease;
}

    .pro-banner-nuevo-btn:hover {
        background: var(--healink-lima) !important;
        color: var(--healink-tinta) !important;
    }

@media (max-width: 850px) {
    .pro-banner-nuevo {
        flex-direction: column;
        text-align: center;
        padding: 26px 20px;
    }
}

/* ---------------------------------------------------------
   3) Botón "Comprar ahora" — píldora con degradado
   --------------------------------------------------------- */
.cboton {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    background: linear-gradient(100deg, var(--healink-lima) 0%, var(--healink-turquesa) 100%) !important;
    border-radius: 999px !important;
    color: var(--healink-tinta) !important;
    box-shadow: 0 4px 14px rgba(20, 45, 60, 0.18) !important;
    transition: filter 200ms ease, transform 200ms ease, box-shadow 200ms ease !important;
}

    .cboton:hover {
        filter: brightness(1.06);
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(20, 45, 60, 0.24) !important;
        color: var(--healink-tinta) !important;
        background: linear-gradient(100deg, var(--healink-lima) 0%, var(--healink-turquesa) 100%) !important;
    }

    .cboton i {
        font-size: 13px;
    }

/* ---------------------------------------------------------
   4) Botones del carrusel de productos destacados
   (.botonproducto / .nbotonproducto, generados por JS)
   --------------------------------------------------------- */
.botonproducto,
.nbotonproducto {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(100deg, var(--healink-lima) 0%, var(--healink-turquesa) 100%) !important;
    color: var(--healink-tinta) !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 14px rgba(20, 45, 60, 0.18);
    transition: filter 200ms ease, transform 200ms ease, box-shadow 200ms ease !important;
}

    .botonproducto:hover,
    .nbotonproducto:hover {
        background: linear-gradient(100deg, var(--healink-lima) 0%, var(--healink-turquesa) 100%) !important;
        filter: brightness(1.06);
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(20, 45, 60, 0.24);
    }

    .botonproducto::before,
    .nbotonproducto::before {
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        content: "\f217";
        font-size: 12px;
    }

/* ---------------------------------------------------------
   5) Botón flotante de WhatsApp (#myButton, plugin venomButton)
   --------------------------------------------------------- */
#myButton {
    filter: drop-shadow(0 4px 14px rgba(20, 45, 60, 0.35));
    animation: healink-pulso 2.6s ease-in-out infinite;
}

@keyframes healink-pulso {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    #myButton {
        animation: none;
    }
}

/* ---------------------------------------------------------
   6) Barra de búsqueda del header (.hcentro)
   --------------------------------------------------------- */
.hcentro .input-group {
    background: #e9f7fa;
    border-radius: 999px;
    padding: 4px 4px 4px 20px;
    display: flex;
    align-items: center;
}

.hcentro .input-group-prepend {
    order: 2;
    margin-left: 8px;
}

.hcentro .input-group-text {
    background: linear-gradient(100deg, var(--healink-lima) 0%, var(--healink-turquesa) 100%) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

    .hcentro .input-group-text i {
        font-size: 16px !important;
        color: var(--healink-tinta);
    }

.hcentro input.form-control {
    order: 1;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px 6px;
    color: var(--healink-tinta);
}

    .hcentro input.form-control::placeholder {
        color: #7c8a92;
        opacity: 1;
    }

/* ---------------------------------------------------------
   7) Botones de producto en pantallas muy chicas
   (ver también sección 10 para el grid completo)
   --------------------------------------------------------- */
@media (max-width: 575px) {
    #tproductosdestacados .botonproducto,
    #tproductosdestacados .nbotonproducto {
        font-size: 9px !important;
        padding: 8px 10px !important;
        gap: 4px;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }
}

/* ---------------------------------------------------------
   8) Botón "Aceptar" del aviso de cookies (#footer)
   --------------------------------------------------------- */
.btnaceptar {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: linear-gradient(100deg, #C0DB00 0%, #2FA9C1 100%) !important;
    color: #1f2d3d !important;
    border: none !important;
    border-radius: 999px !important;
    font-weight: 600;
    padding: 9px 22px !important;
    box-shadow: 0 4px 14px rgba(20, 45, 60, 0.2);
    transition: filter 200ms ease, transform 200ms ease !important;
}

    .btnaceptar:hover {
        background: linear-gradient(100deg, #C0DB00 0%, #2FA9C1 100%) !important;
        filter: brightness(1.06);
        transform: translateY(-2px);
        color: #1f2d3d !important;
        border: none !important;
    }

/* ---------------------------------------------------------
   9) Ícono del carrito (.icarrito) + insignia de cantidad (.badge1)
   --------------------------------------------------------- */
.icarrito {
    display: inline-block !important;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    line-height: 40px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 2px solid rgba(255, 255, 255, 0.55) !important;
    color: #ffffff !important;
    font-size: 18px !important;
    text-shadow: none !important;
    text-align: center;
    vertical-align: middle;
    transition: background-color 200ms ease, border-color 200ms ease;
}

    .icarrito i {
        line-height: inherit;
        vertical-align: middle;
    }

    .icarrito:hover {
        background: rgba(255, 255, 255, 0.32) !important;
        border-color: rgba(255, 255, 255, 0.8) !important;
        color: #ffffff !important;
    }

.badge1[data-badge]:after {
    top: -6px !important;
    right: -8px !important;
    background: linear-gradient(100deg, #C0DB00 0%, #2FA9C1 100%) !important;
    color: #1f2d3d !important;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(20, 45, 60, 0.35);
}

/* ---------------------------------------------------------
   10) Responsividad del carrusel de productos destacados
   --------------------------------------------------------- */

/* El contenedor tenía altura FIJA (490px) con overflow oculto
   (típico de Bootstrap carousel). En 2 columnas, el contenido
   de cada slide necesita más alto que eso y se recortaba.
   Se libera la altura y se deja que el contenido la defina. */
#tproductosdestacados .carsel {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 10px;
}

/* La tarjeta de producto (.thumb-wrapper) seguía comentada/
   deshabilitada en el CSS original: sin fondo, sin sombra,
   sin separación. Se restaura con una apariencia de tarjeta real. */
#tproductosdestacados .thumb-wrapper {
    margin: 8px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(20, 45, 60, 0.1);
    padding: 16px 12px 20px;
    text-align: center;
    height: calc(100% - 16px);
    transition: box-shadow 200ms ease, transform 200ms ease;
}

    #tproductosdestacados .thumb-wrapper:hover {
        box-shadow: 0 8px 22px rgba(20, 45, 60, 0.16);
        transform: translateY(-3px);
    }

/* Imagen del producto: tamaño consistente en cualquier pantalla,
   en vez de solo estar definida dentro de un media query móvil */
#tproductosdestacados .img-box {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto 12px;
}

    #tproductosdestacados .img-box img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

/* Columnas: 2 por fila hasta tablet, 4 por fila desde 768px.
   Antes saltaba directo a 4 por fila desde 576px, dejando
   las tarjetas muy apretadas en tablets/teléfonos grandes. */
@media (max-width: 767px) {
    #tproductosdestacados .col-sm-3 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 12px;
    }
}

@media (min-width: 768px) {
    #tproductosdestacados .col-sm-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Flechas de navegación: tamaño más cómodo para dedo en móvil */
@media (max-width: 575px) {
    #tproductosdestacados .carousel-control-prev,
    #tproductosdestacados .carousel-control-next {
        width: 36px;
        height: 36px;
    }

        #tproductosdestacados .carousel-control-prev i,
        #tproductosdestacados .carousel-control-next i {
            font-size: 26px;
        }
}

/* ---------------------------------------------------------
   11) Footer responsivo
   (usa una <table> con 3 celdas fijas que no se acomodan
   en móvil; se convierte a bloques apilados solo con CSS,
   sin tocar el HTML de la tabla)
   --------------------------------------------------------- */
@media (max-width: 767px) {
    .footer table,
    .footer table tbody,
    .footer table tr {
        display: block;
        width: 100% !important;
    }

        .footer table td {
            display: block;
            width: 100% !important;
            padding: 14px 10px;
        }

        .footer table tr td:not(:last-child) {
            border-bottom: 1px solid rgba(255, 255, 255, 0.18);
        }

    .ifooter {
        font-size: 24px !important;
    }

    .tfooter1 {
        font-size: 16px !important;
    }

    .tfooter2 {
        font-size: 12px !important;
    }
}
