/* ==================================================
   IT GIRL USA
   MAKEUP EDIT — HERO + CATÁLOGO
================================================== */


/* ==================================================
   1. HERO PRINCIPAL
================================================== */

.makeup-hero {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 12px;
    overflow: visible;
    background: #f7f3ef;
}


/* ==================================================
   2. TARJETA PRINCIPAL
================================================== */

.makeup-hero-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    overflow: hidden;
    background: #171717;
    border: 1px solid #303030;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}


/* ==================================================
   3. IMAGEN ANIMADA
================================================== */

.makeup-hero-animation {
    position: relative;
    flex: none;
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        #f9e8e5,
        #d9b7b0 55%,
        #b98e88
    );
    z-index: 1;
}


.makeup-hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: makeupCinematicZoom 3s ease-in-out infinite alternate;
    will-change: transform;
}


/* ==================================================
   4. REFLEJO DE LUZ
================================================== */

.makeup-light-sweep {
    position: absolute;
    inset: -40% -80%;
    background: linear-gradient(
        105deg,
        transparent 42%,
        rgba(255, 255, 255, 0.08) 47%,
        rgba(255, 244, 222, 0.55) 50%,
        rgba(255, 255, 255, 0.08) 53%,
        transparent 58%
    );
    mix-blend-mode: screen;
    animation: makeupLightSweep 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}


/* ==================================================
   5. DECORACIÓN DEL HERO
================================================== */

.makeup-petal {
    position: absolute;
    width: 22px;
    height: 34px;
    border-radius: 80% 20% 80% 20%;
    background: rgba(255, 235, 235, 0.72);
    animation: makeupFloatPetal 3s linear infinite;
    pointer-events: none;
    z-index: 3;
}


.petal-1 {
    left: 12%;
    top: 8%;
    animation-delay: -0.4s;
}


.petal-2 {
    left: 78%;
    top: 20%;
    animation-delay: -1.3s;
}


.petal-3 {
    left: 18%;
    top: 58%;
    animation-delay: -2.1s;
}


/* ==================================================
   6. ANIMACIONES
================================================== */

@keyframes makeupCinematicZoom {

    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.075) translateY(-1%);
    }

}


@keyframes makeupLightSweep {

    0%, 18% {
        transform: translateX(-35%) rotate(8deg);
        opacity: 0;
    }

    42% {
        opacity: 1;
    }

    78%, 100% {
        transform: translateX(35%) rotate(8deg);
        opacity: 0;
    }

}


@keyframes makeupFloatPetal {

    0% {
        transform: translate3d(0, -20px, 0) rotate(0deg);
        opacity: 0;
    }

    18% {
        opacity: 0.8;
    }

    100% {
        transform: translate3d(35px, 125px, 0) rotate(180deg);
        opacity: 0;
    }

}


/* ==================================================
   7. CONTENIDO DE LA FRANJA NEGRA
================================================== */

.makeup-hero-content {
    position: relative;
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 135px;
    padding: 14px 12px;
    background: #171717;
    color: #ffffff;
    text-align: center;
    z-index: 4;
}


/* TEXTO SUPERIOR */

.makeup-hero-content .eyebrow {
    display: block;
    margin: 0;
    color: #aaaaaa;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* TÍTULO */

.makeup-hero-content h1 {
    display: block;
    margin: 0;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: clamp(18px, 2vw, 25px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
}


/* DESCRIPCIÓN */

.makeup-hero-content .hero-description {
    display: block;
    max-width: 450px;
    margin: 0;
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}


/* ==================================================
   8. BOTÓN VER PRODUCTOS
================================================== */

.btn-girl-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 3px 5px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #aaaaaa;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s ease;
}


.btn-girl-edit span {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    transition: transform 0.3s ease;
}


.btn-girl-edit:hover {
    color: #ffffff;
}


.btn-girl-edit:hover span {
    transform: translateY(3px);
}


/* ==================================================
   9. CATÁLOGO DE PRODUCTOS
================================================== */

.catalogo-productos {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 45px 20px 60px;
    background: #f7f3ef;
    scroll-margin-top: 90px;
}


/* ENCABEZADO DEL CATÁLOGO */

.catalogo-header {
    width: 100%;
    margin: 0 auto 28px;
    text-align: center;
}


.catalogo-header .eyebrow {
    margin: 0 0 10px;
    color: #9b7d68;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}


.catalogo-header h2 {
    margin: 0 0 10px;
    color: #171412;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 400;
    line-height: 1.2;
}


.catalogo-header > p:last-child {
    margin: 0;
    color: #77706b;
    font-size: 13px;
    line-height: 1.6;
}


/* ==================================================
   10. CUADRÍCULA DE PRODUCTOS
================================================== */

.productos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}


/* TARJETA */

.producto-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e7e0d9;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.producto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}


/* IMAGEN */
.producto-imagen {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3efeb;
}

.producto-imagen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
}

.producto-card:hover .producto-imagen img {
    transform: scale(1.04);
}


/* INFORMACIÓN */

.producto-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 12px;
}


/* MARCA */

.producto-marca {
    margin: 0 0 7px;
    color: #978779;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.4;
}


/* NOMBRE */

.producto-info h3 {
    margin: 0 0 5px;
    color: #1a1816;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.3;
}


/* DESCRIPCIÓN */

.producto-descripcion {
    margin: 0 0 12px;
    color: #827b75;
    font-size: 11px;
    line-height: 1.5;
      /* Máximo 2 líneas */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}


/* PRECIO Y BOTÓN */

.producto-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #eee8e2;
}


.producto-precio {
    color: #171412;
    font-size: 13px;
    font-weight: 700;
}

.producto-precios {
    display: flex;
    align-items: center;
    gap: 7px;
}

.producto-precio-anterior {
    color: #a49d97;
    font-size: 10px;
    text-decoration: line-through;
}

.producto-precio-actual {
    color: #4f4944;
    font-size: 13px;
    font-weight: 600;
}


/* BOTÓN DE PRODUCTO */

.producto-btn {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #171717;
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}


.producto-btn:hover {
    background: #94745f;
    transform: scale(1.05);
}

/* ==================================================
   POPUP PRODUCTO
================================================== */

.producto-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;

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

    padding: 20px;
}


/* FONDO OSCURO + DESENFOQUE */

.producto-modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(20, 17, 15, 0.58);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}



/* CONTENEDOR PRINCIPAL */


.producto-modal-contenido {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: row;
    align-items: center;

    width: min(900px, 100%);
    max-height: 88vh;

    overflow: hidden;

    background: #fdfaf7;
    border: 1px solid #e7dfd7;
    border-radius: 14px;

    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}




/* BOTÓN CERRAR */

.producto-modal-cerrar {
    position: absolute;
    top: 12px;
    right: 15px;

    z-index: 10;

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

    width: 36px;
    height: 36px;

    padding: 0;

    border: none;
    background: transparent;

    color: #292522;

    font-size: 30px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.producto-modal-cerrar:hover {
    transform: rotate(90deg);
    opacity: 0.65;
}


/* INFORMACIÓN DEL PRODUCTO */

.producto-modal-info {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 42px 40px 36px;
}


/* MARCA */

.producto-modal-marca {
    margin: 0 0 8px;

    color: #9b7d68;

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

    letter-spacing: 2px;
    text-transform: uppercase;
}


/* NOMBRE */

.producto-modal-nombre {
    margin: 0 0 18px;

    color: #171412;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(24px, 4vw, 34px);
    font-weight: 400;

    line-height: 1.2;
}


/* PRECIOS */

.producto-modal-precios {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 20px;
}

.producto-modal-precio-anterior {
    color: #a49d97;

    font-size: 13px;

    text-decoration: line-through;
}

.producto-modal-precio-actual {
    color: #4f4944;

    font-size: 18px;
    font-weight: 600;
}


/* DESCRIPCIÓN */

.producto-modal-descripcion {
    margin: 0 0 22px;

    color: #716b66;

    font-size: 13px;
    line-height: 1.7;
}


/* STOCK */

.producto-modal-stock {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin: 0;
    padding: 8px 13px;

    background: #f4e9e3;
    border: 1px solid #ead8ce;
    border-radius: 20px;

    color: #8b6655;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;

    line-height: 1;
}

/* ==================================================
   IMAGEN DEL POPUP
================================================== */

.producto-modal-media {
    flex: 0 0 42%;
    min-width: 0;
  
    display: flex;
    align-items: center;
    justify-content: center;

    background: #f3efeb;
    overflow: hidden;
}

.producto-modal-media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;
}

.producto-modal-sin-imagen {
    color: #9b928b;

    font-size: 12px;
}


/* ==================================================
   BOTÓN AÑADIR AL CARRITO
================================================== */

.producto-modal-carrito {
    width: 100%;

    margin-top: 22px;
    padding: 13px 20px;

    border: none;
    border-radius: 4px;

    background: #171412;
    color: #ffffff;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    letter-spacing: 1px;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background 0.3s ease,
        transform 0.2s ease;
}

.producto-modal-carrito:hover {
    background: #94745f;
    transform: translateY(-1px);
}


/* CANTIDAD — PC */

.producto-modal-cantidad {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-top: 20px;
}

.producto-modal-cantidad-label {
    color: #4f4944;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.producto-modal-contador {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #ded5ce;
    border-radius: 4px;
    background: #fff;
}

.producto-modal-contador-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 34px;
    margin: 0;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    border-radius: 0;
    background: #fff;
    color: #4f4944;
    font-family: inherit;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.producto-modal-contador-btn:hover {
    background: #f4e9e3;
    color: #8b6655;
}

.producto-modal-cantidad-valor {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 34px;
    border-left: 1px solid #ded5ce;
    border-right: 1px solid #ded5ce;
    color: #292522;
    font-size: 12px;
    font-weight: 600;
}



/* ==================================================
   POPUP — MÓVIL
================================================== */

@media (max-width: 600px) {

    .producto-modal {
        padding: 14px;
    }

    .producto-modal-contenido {
        width: 100%;
        max-width: 420px;

        max-height: 90vh;

        display: flex;
        flex-direction: column;

        border-radius: 12px;

        overflow-y: auto;
        overflow-x: hidden;
    }


    /* IMAGEN */

    .producto-modal-media {
        width: 100%;
        aspect-ratio: 1 / 1;

        min-height: 0;

        flex-shrink: 0;

        background: #f3efeb;

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

        overflow: hidden;
    }

    .producto-modal-media img {
        width: 100%;
        height: 100%;

        object-fit: contain;
        object-position: center;
    }


    /* INFORMACIÓN */

    .producto-modal-info {
        width: 100%;

        padding: 24px 22px 22px;

        box-sizing: border-box;
    }


    /* MARCA */

    .producto-modal-marca {
        margin-bottom: 7px;

        font-size: 9px;
        letter-spacing: 1.8px;
    }


    /* NOMBRE */

    .producto-modal-nombre {
        margin-bottom: 14px;

        font-size: 25px;
        line-height: 1.15;
    }


    /* PRECIO */

    .producto-modal-precios {
        margin-bottom: 17px;

        gap: 8px;
    }

    .producto-modal-precio-anterior {
        font-size: 12px;
    }

    .producto-modal-precio-actual {
        font-size: 17px;
    }


    /* DESCRIPCIÓN */

    .producto-modal-descripcion {
        margin-bottom: 18px;

        font-size: 12px;
        line-height: 1.65;
    }


    /* STOCK */

   .producto-modal-stock {
     display: inline-flex;
    align-items: center;
    align-self: flex-start;

    margin: 0;
    padding: 8px 13px;

    background: #f4e9e3;
    border: 1px solid #ead8ce;
    border-radius: 20px;

    color: #8b6655;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    line-height: 1;
    text-transform: uppercase;
    }

    /* CONTADOR DE CANTIDAD */

.producto-modal-cantidad {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-top: 20px;
}

.producto-modal-cantidad-label {
    color: #4f4944;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.producto-modal-contador {
      display: flex;
    align-items: center;
    flex-shrink: 0;

    overflow: hidden;
    border: 1px solid #ded5ce;
    border-radius: 4px;
    background: #fff;
}

.producto-modal-contador-btn {
     display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 34px;
    margin: 0;
    padding: 0;

    appearance: none;
    -webkit-appearance: none;

    border: none;
    border-radius: 0;
    background: #fff;
    color: #4f4944;

    font-family: inherit;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.producto-modal-contador-btn:hover {
    background: #f4e9e3;
    color: #8b6655;
}

.producto-modal-cantidad-valor {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 34px;

    border-left: 1px solid #ded5ce;
    border-right: 1px solid #ded5ce;

    color: #292522;
    font-size: 12px;
    font-weight: 600;
}


    /* CARRITO */

    .producto-modal-carrito {
        margin-top: 18px;

        padding: 13px 16px;

        font-size: 11px;
    }


    /* X */

    .producto-modal-cerrar {
        top: 10px;
        right: 10px;

        width: 34px;
        height: 34px;

        background: rgba(253, 250, 247, 0.85);

        border-radius: 50%;

        font-size: 25px;
    }
}

/* ==================================================
   11. TABLET
================================================== */

@media (min-width: 601px) and (max-width: 767px) {

    .makeup-hero {
        padding: 16px 20px;
    }

    .makeup-hero-animation {
        height: 350px;
    }

    .productos-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

}


/* ==================================================
   12. ESCRITORIO
================================================== */

@media (min-width: 768px) {

    .makeup-hero {
        padding: 24px;
    }

    .makeup-hero-animation {
        height: 420px;
    }

    .makeup-hero-content {
        min-height: 145px;
        padding: 15px 20px;
        gap: 8px;
    }

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

    .makeup-hero-content .hero-description {
        font-size: 13px;
    }

    .catalogo-productos {
        padding: 60px 30px 80px;
    }

    .catalogo-header {
        margin-bottom: 35px;
    }

    .productos-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 22px;
    }

    .producto-info {
        padding: 16px;
    }

    .producto-info h3 {
        font-size: 19px;
    }

    .producto-precio {
        font-size: 14px;
    }

}


/* ==================================================
   13. PANTALLAS GRANDES
================================================== */

@media (min-width: 1200px) {

    .makeup-hero-animation {
        height: 460px;
    }

    .catalogo-productos {
        padding-left: 20px;
        padding-right: 20px;
    }

}


/* ==================================================
   14. MOVIMIENTO REDUCIDO
================================================== */

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

    .makeup-hero-image,
    .makeup-light-sweep,
    .makeup-petal {
        animation: none;
    }

    .producto-card,
    .producto-imagen img,
    .btn-girl-edit,
    .producto-btn {
        transition: none;
    }

}

/*----css extra para el pop up---------*/

.producto-modal-media {
    position: relative;
}

.producto-modal-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #292421;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.producto-modal-anterior {
    left: 12px;
}

.producto-modal-siguiente {
    right: 12px;
}

.producto-modal-indicador {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #292421;
    font-size: 12px;
}

/*---pop uo video----*/

#producto-modal-visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#producto-modal-visual img,
#producto-modal-visual .producto-modal-video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

#producto-modal-visual img {
    object-fit: contain;
}

#producto-modal-visual .producto-modal-video {
    object-fit: contain;
}

.producto-modal-media {
    overflow: hidden;
}

@media (max-width: 600px) {
    #producto-modal-visual {
        min-height: 260px;
    }
}

