/* =============================================
   HERRAMIENTAS MANICURÍA
============================================= */

.herramientas-manicuria-page{
    width: 100%;
    min-height: 100vh;
    padding: 18px 14px 60px;
    background: linear-gradient(180deg, #fff8fb 0%, #ffffff 38%, #fcfaf8 100%);
    color: #3f3a39;
}

/* =============================================
   HERO
============================================= */

.hm-hero{
    max-width: 760px;
    margin: 0 auto 26px;
    padding: 24px 18px;
    border-radius: 26px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 35px rgba(196, 157, 169, 0.10);
    border: 1px solid rgba(241, 223, 229, 0.95);
}

.hm-hero-etiqueta{
    display: inline-block;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fbe7ee;
    color: #c26484;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hm-hero-titulo{
    margin: 0 0 10px;
    color: #2f2a29;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
}

.hm-hero-texto{
    margin: 0;
    color: #736b69;
    font-size: 15px;
    line-height: 1.7;
}

/* =============================================
   CONTENEDOR GENERAL
============================================= */

#herramientasManicuriaContenedor{
    max-width: 760px;
    margin: 0 auto;
}

/* =============================================
   ESTADOS
============================================= */

.hm-vacio,
.hm-alerta-error{
    padding: 28px 20px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #f1e6ea;
    box-shadow: 0 8px 28px rgba(184, 155, 164, 0.08);
    text-align: center;
}

.hm-vacio h3,
.hm-alerta-error h3{
    margin: 0 0 8px;
    color: #312d2c;
    font-size: 22px;
    font-weight: 700;
}

.hm-vacio p,
.hm-alerta-error p{
    margin: 0;
    color: #7b7371;
    font-size: 14px;
    line-height: 1.7;
}

/* =============================================
   SECCIONES
============================================= */

.hm-seccion{
    margin-bottom: 28px;
}

.hm-seccion-head{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.hm-seccion-head-num{
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fbe8ef 0%, #f6dbe5 100%);
    color: #b95d7f;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(210, 152, 173, 0.18);
}

.hm-seccion-head-texto h2{
    margin: 0 0 2px;
    color: #2f2a29;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 800;
}

.hm-seccion-head-texto p{
    margin: 0;
    color: #8b8280;
    font-size: 13px;
    line-height: 1.5;
}

/* =============================================
   GRID
============================================= */

.hm-grid-cards{
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

/* =============================================
   CARD
============================================= */

.hm-card{
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255,255,255,0.96);
    border: 1px solid #f3e7eb;
    box-shadow: 0 10px 30px rgba(177, 152, 160, 0.10);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.55s ease, opacity 0.55s ease, box-shadow 0.35s ease;
}

.hm-card.hm-card-visible{
    transform: translateY(0);
    opacity: 1;
}

.hm-card:hover{
    box-shadow: 0 14px 34px rgba(177, 152, 160, 0.14);
}

/* =============================================
   IMAGEN
============================================= */

.hm-card-img-wrap{
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, #fff3f7 0%, #fdf7fa 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.hm-card-img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* =============================================
   BADGE RECOMENDADO
============================================= */

.hm-badge-recomendado{
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.hm-badge-recomendado span{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(185, 93, 127, 0.95);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 8px 18px rgba(185, 93, 127, 0.22);
}

/* =============================================
   BODY CARD
============================================= */

.hm-card-body{
    padding: 16px 15px 18px;
}

.hm-card-marca{
    display: inline-block;
    margin-bottom: 8px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #fdf0f4;
    color: #bb6986;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid #f5d9e3;
}

.hm-card-titulo{
    margin: 0 0 10px;
    color: #2e2928;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 800;
}

.hm-card-descripcion{
    color: #706866;
    font-size: 14px;
    line-height: 1.75;
}

.hm-card-descripcion-wrap{
    margin-top: 2px;
}

.hm-card-descripcion{
    color: #706866;
    font-size: 14px;
    line-height: 1.75;
    overflow: hidden;
    max-height: 118px;
    transition: max-height 0.35s ease;
    position: relative;
}

.hm-card-descripcion.hm-expandida{
    max-height: 1000px;
}

.hm-card-descripcion:not(.hm-expandida)::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.96));
    pointer-events: none;
}

.hm-btn-toggle-descripcion{
    margin-top: 10px;
    padding: 0;
    border: none;
    background: transparent;
    color: #b95d7f;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hm-btn-toggle-descripcion:hover{
    color: #9f4e6b;
}

.hm-btn-toggle-descripcion:focus{
    outline: none;
}

.hm-btn-toggle-descripcion .hm-toggle-icon{
    font-size: 14px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.hm-btn-toggle-descripcion.activo .hm-toggle-icon{
    transform: rotate(180deg);
}

.hm-card-descripcion p{
    margin: 0 0 8px;
}

.hm-card-descripcion br{
    content: "";
}

/* =============================================
   DETALLES
============================================= */

.hm-card-detalles{
    margin-top: 15px;
    display: grid;
    gap: 10px;
}

.hm-detalle-item{
    padding: 12px 12px 13px;
    border-radius: 18px;
    background: #fcfaf9;
    border: 1px solid #efe6e8;
}

.hm-detalle-titulo{
    margin-bottom: 5px;
    color: #4a4241;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hm-detalle-texto{
    color: #756d6b;
    font-size: 13px;
    line-height: 1.7;
}

/* =============================================
   RECOMENDACIÓN
============================================= */

.hm-card-recomendacion{
    margin-top: 14px;
    padding: 14px 14px 15px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff5f8 0%, #fffafb 100%);
    border: 1px solid #f4dde5;
}

.hm-card-recomendacion-autor{
    margin-bottom: 6px;
    color: #b35f7e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hm-card-recomendacion-texto{
    color: #6b6260;
    font-size: 13px;
    line-height: 1.7;
}

/* =============================================
   TRANSICIONES SUAVES EN TEXTOS
============================================= */

.hm-card-titulo,
.hm-card-marca,
.hm-card-descripcion,
.hm-detalle-texto,
.hm-card-recomendacion-texto{
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* =============================================
   TABLET / DESKTOP SUAVE
============================================= */

@media (min-width: 640px){

    .herramientas-manicuria-page{
        padding: 26px 18px 80px;
    }

    .hm-hero{
        padding: 30px 24px;
        margin-bottom: 32px;
    }

    .hm-hero-titulo{
        font-size: 38px;
    }

    .hm-hero-texto{
        font-size: 16px;
    }

    .hm-seccion{
        margin-bottom: 34px;
    }

    .hm-seccion-head{
        gap: 14px;
        margin-bottom: 16px;
    }

    .hm-seccion-head-num{
        width: 52px;
        height: 52px;
        border-radius: 18px;
        font-size: 15px;
    }

    .hm-seccion-head-texto h2{
        font-size: 28px;
    }

    .hm-seccion-head-texto p{
        font-size: 14px;
    }

    .hm-grid-cards{
        gap: 18px;
    }

    .hm-card-body{
        padding: 18px 18px 20px;
    }

    .hm-card-titulo{
        font-size: 23px;
    }

    .hm-card-descripcion{
        font-size: 14px;
    }

    .hm-card-detalles{
        grid-template-columns: 1fr 1fr;
    }
}

/* =============================================
   DESKTOP MÁS AIRE
============================================= */

@media (min-width: 992px){

    .hm-grid-cards{
        grid-template-columns: 1fr 1fr;
    }

    .hm-card{
        height: 100%;
    }
}

/* =============================================
   REDUCCIÓN DE MOVIMIENTO
============================================= */

@media (prefers-reduced-motion: reduce){

    .hm-card{
        transition: none;
        transform: none;
        opacity: 1;
    }
}