/* =====================================================
PASALAVENTA - OFERTAS
Diseño profesional / Marketplace
===================================================== */

/* =====================================================
VARIABLES
===================================================== */

.ofertas-page {


--ofertas-rojo: #8f1728;
--ofertas-rojo-hover: #74121f;
--ofertas-rojo-suave: #fdf0f2;
--ofertas-texto: #151515;
--ofertas-secundario: #6b6b6b;
--ofertas-borde: #e5e5e5;
--ofertas-fondo: #f7f7f8;
--ofertas-blanco: #ffffff;


}

/* =====================================================
HERO
===================================================== */

.ofertas-hero {


background:
    linear-gradient(
        135deg,
        #7f1425 0%,
        #9d1d32 55%,
        #6f1020 100%
    );

color: #ffffff;

padding: 52px 20px;

border-bottom:
    1px solid
    rgba(0, 0, 0, 0.08);


}

.ofertas-hero .market-container {


max-width: 1200px;

margin: 0 auto;


}

.ofertas-kicker {


display: inline-flex;

align-items: center;

margin-bottom: 10px;

font-size: 13px;

font-weight: 700;

letter-spacing: 0.5px;

text-transform: uppercase;

opacity: 0.9;


}

.ofertas-hero h1 {


margin: 0;

font-size: clamp(
    34px,
    5vw,
    48px
);

line-height: 1.05;

font-weight: 800;


}

.ofertas-hero p {


max-width: 650px;

margin:
    14px 0 0;

font-size: 17px;

line-height: 1.6;

color: rgba(
    255,
    255,
    255,
    0.9
);


}

/* =====================================================
SECCIÓN PRODUCTOS
===================================================== */

.ofertas-productos-section {


background: var(--ofertas-fondo);

padding:
    42px 20px
    70px;


}

.ofertas-productos-section
.market-container {


max-width: 1200px;

margin: 0 auto;


}

/* =====================================================
ENCABEZADO
===================================================== */

.ofertas-heading {


display: flex;

align-items: flex-end;

justify-content: space-between;

gap: 25px;

margin-bottom: 28px;


}

.section-kicker {


display: block;

margin-bottom: 5px;

color: var(--ofertas-rojo);

font-size: 12px;

font-weight: 800;

letter-spacing: 1px;

text-transform: uppercase;


}

.ofertas-heading h2 {


margin: 0;

color: var(--ofertas-texto);

font-size: 28px;

line-height: 1.2;

font-weight: 800;


}

.ofertas-ver-todos {


flex-shrink: 0;

color: var(--ofertas-rojo);

font-size: 14px;

font-weight: 700;

text-decoration: none;

transition:
    color 0.2s ease,
    transform 0.2s ease;


}

.ofertas-ver-todos:hover {


color: var(--ofertas-rojo-hover);

transform: translateX(3px);


}

/* =====================================================
GRID
===================================================== */

.ofertas-grid {


display: grid;

grid-template-columns:
    repeat(
        4,
        minmax(0, 1fr)
    );

gap: 20px;


}

/* =====================================================
CARD
===================================================== */

.oferta-card {


position: relative;

display: flex;

flex-direction: column;

min-width: 0;

overflow: hidden;

background: var(--ofertas-blanco);

border:
    1px solid
    var(--ofertas-borde);

border-radius: 12px;

cursor: pointer;

transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;


}

.oferta-card:hover {


transform: translateY(-4px);

border-color:
    #d8d8d8;

box-shadow:
    0 10px 28px
    rgba(
        0,
        0,
        0,
        0.10
    );


}

/* =====================================================
IMAGEN
===================================================== */

.oferta-imagen {


position: relative;

width: 100%;

aspect-ratio: 1 / 1;

overflow: hidden;

background: #f4f4f4;


}

.oferta-imagen img {


display: block;

width: 100%;

height: 100%;

object-fit: cover;

transition:
    transform 0.3s ease;


}

.oferta-card:hover
.oferta-imagen img {


transform: scale(1.035);


}

/* =====================================================
DESCUENTO
===================================================== */

.oferta-descuento {


position: absolute;

top: 12px;

left: 12px;

z-index: 2;

display: inline-flex;

align-items: center;

justify-content: center;

min-height: 28px;

padding:
    5px 9px;

background:
    var(--ofertas-rojo);

color: #ffffff;

border-radius: 6px;

font-size: 12px;

line-height: 1;

font-weight: 800;

letter-spacing: 0.2px;

box-shadow:
    0 3px 8px
    rgba(
        0,
        0,
        0,
        0.14
    );


}

/* =====================================================
INFORMACIÓN
===================================================== */

.oferta-info {


display: flex;

flex-direction: column;

flex: 1;

padding: 16px;


}

.oferta-categoria {


display: block;

margin-bottom: 7px;

color: var(--ofertas-secundario);

font-size: 11px;

font-weight: 700;

letter-spacing: 0.5px;

text-transform: uppercase;

white-space: nowrap;

overflow: hidden;

text-overflow: ellipsis;


}

.oferta-info h2 {


display: -webkit-box;

margin:
    0 0 14px;

color: var(--ofertas-texto);

font-size: 16px;

line-height: 1.35;

font-weight: 700;

line-clamp: 2;

-webkit-line-clamp: 2;

-webkit-box-orient: vertical;

overflow: hidden;


}

/* =====================================================
PRECIOS
===================================================== */

.oferta-precios {


display: flex;

flex-direction: column;

gap: 2px;

margin-top: auto;


}

.oferta-precio-anterior {


color: #888888;

font-size: 13px;

line-height: 1.3;

text-decoration: line-through;


}

.oferta-precio-nuevo {


color: var(--ofertas-rojo);

font-size: 22px;

line-height: 1.2;

font-weight: 800;


}

/* =====================================================
BOTÓN
===================================================== */

.oferta-ver-producto {


width: 100%;

margin-top: 15px;

padding:
    10px 14px;

background:
    var(--ofertas-rojo);

color: #ffffff;

border: 0;

border-radius: 7px;

font-family: inherit;

font-size: 13px;

font-weight: 700;

cursor: pointer;

transition:
    background 0.2s ease,
    transform 0.15s ease;


}

.oferta-ver-producto:hover {


background:
    var(--ofertas-rojo-hover);


}

.oferta-ver-producto:active {


transform: scale(0.98);


}

/* =====================================================
VACÍO
===================================================== */

.ofertas-vacio {


grid-column:
    1 / -1;

padding:
    65px 25px;

background: #ffffff;

border:
    1px solid
    var(--ofertas-borde);

border-radius: 12px;

text-align: center;


}

.ofertas-vacio h2 {


margin:
    0 0 10px;

color: var(--ofertas-texto);

font-size: 23px;


}

.ofertas-vacio p {


max-width: 500px;

margin:
    0 auto 22px;

color: var(--ofertas-secundario);

font-size: 14px;

line-height: 1.6;


}

.ofertas-btn {


display: inline-flex;

align-items: center;

justify-content: center;

min-height: 42px;

padding:
    0 20px;

background:
    var(--ofertas-rojo);

color: #ffffff;

border-radius: 7px;

font-size: 14px;

font-weight: 700;

text-decoration: none;

transition:
    background 0.2s ease,
    transform 0.15s ease;


}

.ofertas-btn:hover {


background:
    var(--ofertas-rojo-hover);


}

.ofertas-btn:active {


transform: scale(0.98);


}

/* =====================================================
ERROR
===================================================== */

.ofertas-error {


grid-column:
    1 / -1;

padding:
    60px 25px;

background: #ffffff;

border:
    1px solid
    var(--ofertas-borde);

border-radius: 12px;

text-align: center;


}

.ofertas-error h2 {


margin:
    0 0 10px;

color: var(--ofertas-texto);

font-size: 22px;


}

.ofertas-error p {


margin:
    0 0 20px;

color: var(--ofertas-secundario);

font-size: 14px;


}

/* =====================================================
TABLET
===================================================== */

@media (max-width: 1050px) {


.ofertas-grid {

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

}


}

/* =====================================================
TABLET PEQUEÑA
===================================================== */

@media (max-width: 780px) {


.ofertas-hero {

    padding:
        40px 18px;

}


.ofertas-productos-section {

    padding:
        34px 16px
        55px;

}


.ofertas-heading {

    align-items: flex-start;

    flex-direction: column;

    gap: 12px;

}


.ofertas-heading h2 {

    font-size: 25px;

}


.ofertas-grid {

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 15px;

}


.oferta-info {

    padding: 14px;

}


.oferta-info h2 {

    font-size: 15px;

}


.oferta-precio-nuevo {

    font-size: 20px;

}


}

/* =====================================================
CELULAR
===================================================== */

@media (max-width: 520px) {


.ofertas-hero {

    padding:
        34px 16px;

}


.ofertas-hero h1 {

    font-size: 34px;

}


.ofertas-hero p {

    margin-top: 10px;

    font-size: 15px;

}


.ofertas-productos-section {

    padding:
        28px 12px
        45px;

}


.ofertas-heading {

    margin-bottom: 20px;

}


.ofertas-heading h2 {

    font-size: 22px;

}


.ofertas-ver-todos {

    font-size: 13px;

}


.ofertas-grid {

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 10px;

}


.oferta-card {

    border-radius: 9px;

}


.oferta-descuento {

    top: 8px;

    left: 8px;

    min-height: 24px;

    padding:
        4px 7px;

    border-radius: 5px;

    font-size: 10px;

}


.oferta-info {

    padding: 11px;

}


.oferta-categoria {

    margin-bottom: 5px;

    font-size: 9px;

}


.oferta-info h2 {

    margin-bottom: 10px;

    font-size: 13px;

    line-height: 1.3;

}


.oferta-precio-anterior {

    font-size: 11px;

}


.oferta-precio-nuevo {

    font-size: 17px;

}


.oferta-ver-producto {

    margin-top: 11px;

    padding:
        8px 8px;

    border-radius: 6px;

    font-size: 11px;

}


}

/* =====================================================
CELULAR MUY PEQUEÑO
===================================================== */

@media (max-width: 360px) {


.ofertas-grid {

    grid-template-columns:
        1fr;

}


.oferta-imagen {

    aspect-ratio:
        4 / 3;

}


}

/* =====================================================
ACCESIBILIDAD
===================================================== */

.oferta-card:focus-within {


outline:
    2px solid
    var(--ofertas-rojo);

outline-offset: 2px;


}

.oferta-ver-producto:focus-visible,
.ofertas-btn:focus-visible,
.ofertas-ver-todos:focus-visible {


outline:
    2px solid
    var(--ofertas-rojo);

outline-offset: 3px;


}

/* =====================================================
REDUCIR ANIMACIONES
===================================================== */

@media (prefers-reduced-motion: reduce) {


.oferta-card,
.oferta-imagen img,
.oferta-ver-producto,
.ofertas-btn,
.ofertas-ver-todos {

    transition: none;

}


}


/* =====================================================
HERO MODERNO - OFERTAS
===================================================== */

.ofertas-hero {


position: relative;

overflow: hidden;

padding: 58px 20px;

background:
    linear-gradient(
        115deg,
        #6f1020 0%,
        #8f1728 48%,
        #a5223a 100%
    );

color: #ffffff;


}

/* -----------------------------------------------------
CONTENEDOR
----------------------------------------------------- */

.ofertas-hero-container {


position: relative;

z-index: 2;

display: flex;

align-items: center;

justify-content: space-between;

gap: 50px;

max-width: 1200px;

min-height: 270px;

margin: 0 auto;


}

/* -----------------------------------------------------
CONTENIDO
----------------------------------------------------- */

.ofertas-hero-content {


max-width: 680px;


}

.ofertas-kicker {


display: inline-flex;

align-items: center;

padding: 7px 12px;

margin-bottom: 15px;

background:
    rgba(
        255,
        255,
        255,
        0.13
    );

border:
    1px solid
    rgba(
        255,
        255,
        255,
        0.20
    );

border-radius: 999px;

color: #ffffff;

font-size: 11px;

font-weight: 800;

letter-spacing: 1.2px;


}

.ofertas-hero h1 {


margin: 0;

color: #ffffff;

font-size: clamp(
    38px,
    5vw,
    58px
);

line-height: 1.03;

font-weight: 850;

letter-spacing: -1.5px;


}

.ofertas-hero p {


max-width: 620px;

margin:
    18px 0 0;

color:
    rgba(
        255,
        255,
        255,
        0.88
    );

font-size: 17px;

line-height: 1.6;


}

/* -----------------------------------------------------
BADGES
----------------------------------------------------- */

.ofertas-hero-badges {


display: flex;

flex-wrap: wrap;

gap: 10px;

margin-top: 23px;


}

.ofertas-hero-badges span {


padding:
    8px 12px;

background:
    rgba(
        255,
        255,
        255,
        0.10
    );

border:
    1px solid
    rgba(
        255,
        255,
        255,
        0.18
    );

border-radius: 7px;

color: #ffffff;

font-size: 12px;

font-weight: 650;


}

/* -----------------------------------------------------
VISUAL
----------------------------------------------------- */

.ofertas-hero-visual {


position: relative;

display: flex;

align-items: center;

justify-content: center;

flex-shrink: 0;

width: 300px;

height: 240px;


}

/* -----------------------------------------------------
CÍRCULO DECORATIVO
----------------------------------------------------- */

.ofertas-hero-circle {


position: absolute;

width: 260px;

height: 260px;

border-radius: 50%;

background:
    rgba(
        255,
        255,
        255,
        0.08
    );

box-shadow:
    0 0 0 30px
    rgba(
        255,
        255,
        255,
        0.025
    );


}

/* -----------------------------------------------------
TARJETA DESCUENTO
----------------------------------------------------- */

.ofertas-hero-discount {


position: relative;

z-index: 2;

display: flex;

flex-direction: column;

align-items: center;

justify-content: center;

width: 190px;

height: 190px;

background: #ffffff;

border-radius: 50%;

color: #74121f;

box-shadow:
    0 18px 45px
    rgba(
        0,
        0,
        0,
        0.20
    );

transform:
    rotate(4deg);


}

.ofertas-hero-discount strong {


margin-bottom: 3px;

font-size: 13px;

font-weight: 900;

letter-spacing: 1.5px;


}

.ofertas-hero-discount span {


color: #777777;

font-size: 13px;

font-weight: 600;


}

.ofertas-hero-discount b {


margin-top: 2px;

font-size: 32px;

line-height: 1;

font-weight: 900;


}

/* -----------------------------------------------------
DECORACIÓN DEL HERO
----------------------------------------------------- */

.ofertas-hero::before {


content: "";

position: absolute;

top: -120px;

right: -80px;

width: 350px;

height: 350px;

border:
    1px solid
    rgba(
        255,
        255,
        255,
        0.08
    );

border-radius: 50%;


}

.ofertas-hero::after {


content: "";

position: absolute;

bottom: -180px;

left: 35%;

width: 400px;

height: 400px;

border-radius: 50%;

background:
    rgba(
        255,
        255,
        255,
        0.035
    );


}

/* =====================================================
TABLET
===================================================== */

@media (max-width: 800px) {


.ofertas-hero {

    padding:
        48px 20px;

}


.ofertas-hero-container {

    min-height: 0;

    gap: 25px;

}


.ofertas-hero-visual {

    width: 220px;

    height: 210px;

}


.ofertas-hero-circle {

    width: 210px;

    height: 210px;

}


.ofertas-hero-discount {

    width: 155px;

    height: 155px;

}


.ofertas-hero-discount b {

    font-size: 27px;

}


}

/* =====================================================
CELULAR
===================================================== */

@media (max-width: 600px) {


.ofertas-hero {

    padding:
        38px 16px
        42px;

}


.ofertas-hero-container {

    flex-direction: column;

    align-items: flex-start;

    gap: 25px;

}


.ofertas-hero-content {

    max-width: none;

}


.ofertas-hero h1 {

    font-size: 38px;

    letter-spacing: -1px;

}


.ofertas-hero p {

    margin-top: 14px;

    font-size: 15px;

    line-height: 1.55;

}


.ofertas-hero-badges {

    margin-top: 18px;

}


.ofertas-hero-visual {

    align-self: center;

    width: 190px;

    height: 155px;

}


.ofertas-hero-circle {

    width: 170px;

    height: 170px;

    box-shadow:
        0 0 0 18px
        rgba(
            255,
            255,
            255,
            0.025
        );

}


.ofertas-hero-discount {

    width: 135px;

    height: 135px;

}


.ofertas-hero-discount strong {

    font-size: 10px;

}


.ofertas-hero-discount span {

    font-size: 11px;

}


.ofertas-hero-discount b {

    font-size: 23px;

}


}


/* =====================================================
OFERTAS HERO - RESPONSIVE CELULAR
===================================================== */

@media (max-width: 600px) {


.ofertas-hero {

    padding:
        30px 15px
        32px;

}


.ofertas-hero-container {

    display: flex;

    flex-direction: column;

    align-items: stretch;

    justify-content: center;

    gap: 18px;

    min-height: auto;

}


/* -------------------------------------------------
   CONTENIDO
------------------------------------------------- */

.ofertas-hero-content {

    width: 100%;

    max-width: none;

    text-align: center;

}


.ofertas-kicker {

    margin-bottom: 11px;

    padding:
        6px 10px;

    font-size: 9px;

    letter-spacing: 1px;

}


.ofertas-hero h1 {

    font-size: 34px;

    line-height: 1.08;

    letter-spacing: -0.8px;

}


.ofertas-hero p {

    max-width: 430px;

    margin:
        11px auto 0;

    font-size: 14px;

    line-height: 1.5;

}


/* -------------------------------------------------
   BADGES
------------------------------------------------- */

.ofertas-hero-badges {

    justify-content: center;

    gap: 7px;

    margin-top: 15px;

}


.ofertas-hero-badges span {

    padding:
        6px 9px;

    border-radius: 6px;

    font-size: 10px;

}


/* -------------------------------------------------
   VISUAL
------------------------------------------------- */

.ofertas-hero-visual {

    align-self: center;

    width: 150px;

    height: 120px;

}


.ofertas-hero-circle {

    width: 125px;

    height: 125px;

    box-shadow:
        0 0 0 14px
        rgba(
            255,
            255,
            255,
            0.025
        );

}


.ofertas-hero-discount {

    width: 105px;

    height: 105px;

    transform:
        rotate(3deg);

    box-shadow:
        0 10px 25px
        rgba(
            0,
            0,
            0,
            0.18
        );

}


.ofertas-hero-discount strong {

    margin-bottom: 2px;

    font-size: 8px;

    letter-spacing: 1px;

}


.ofertas-hero-discount span {

    font-size: 9px;

}


.ofertas-hero-discount b {

    margin-top: 2px;

    font-size: 19px;

}


/* -------------------------------------------------
   DECORACIÓN
------------------------------------------------- */

.ofertas-hero::before {

    top: -100px;

    right: -100px;

    width: 230px;

    height: 230px;

}


.ofertas-hero::after {

    bottom: -150px;

    left: -80px;

    width: 280px;

    height: 280px;

}


}

/* =====================================================
CELULARES MUY PEQUEÑOS
===================================================== */

@media (max-width: 380px) {


.ofertas-hero {

    padding:
        26px 12px
        28px;

}


.ofertas-hero h1 {

    font-size: 30px;

}


.ofertas-hero p {

    font-size: 13px;

}


.ofertas-hero-badges {

    flex-direction: column;

    align-items: center;

}


.ofertas-hero-badges span {

    width: fit-content;

}


.ofertas-hero-visual {

    width: 135px;

    height: 105px;

}


.ofertas-hero-circle {

    width: 110px;

    height: 110px;

}


.ofertas-hero-discount {

    width: 92px;

    height: 92px;

}


.ofertas-hero-discount b {

    font-size: 17px;

}


}
