.section-white {
    background-color: white;
    padding: 70px 80px 120px;
}

.section-gray {
    background-color: #f8f9fa;
    padding: 70px 20px;
}

.section-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.tarj-container {
    display: flex;
    justify-content: center;
}

.tarj {
    background: white;
    padding: 30px;
    width: 100%;
    max-width: 380px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.tarj::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #80B8B1;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.tarj:hover::before {
    transform: scaleX(1);
}

@media (min-width: 768px) {
    .tarj {
        padding: 35px;
        max-width: 380px;
    }
}

.tarj:hover {
    transform: translateY(-5px);
    border-color: #80B8B1;
}

/* ===== TIPOGRAFÍA ===== */
.tit {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0a0a0a;
    font-family: 'Montserrat', sans-serif;
}

@media (min-width: 768px) {
    .tit {
        font-size: 25px;
    }
}

.txt {
    font-size: 15px;
    color: #7f8c8d;
    margin-bottom: 25px;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

@media (min-width: 768px) {
    .txt {
        font-size: 16px;
    }
}

.btn {
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    background: #f8f9fa;
    color: #80B8B1;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    border: 1px solid #80B8B1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #80B8B1;
    z-index: 0;
    transform: translateY(100%) translateX(-100%) rotate(45deg);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 6px;
}

.btn span {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:hover::before {
    transform: translateY(0) translateX(0) rotate(0deg);
}

.btn:hover span {
    color: white;
}

.btn:active {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .btn {
        padding: 16px 32px;
        font-size: 15px;
    }
}

/* ===== SECCIÓN DE PRODUCTOS ===== */
.productos-section h1 {
    font-family: 'Montserrat', sans-serif;
    text-align: left;
    margin-bottom: 50px;
    color: #000000;
    font-weight: 700;
    font-size: 40px;
    letter-spacing: -0.5px;
}

.categorias-grid {
    max-width: 1300px;
    margin: 0 auto;
}

.productos-fila {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    padding: 10px 0;
}

/* ===== TARJETAS DE PRODUCTO ===== */
.producto-card {
    width: 100%;
    /* height: 320px; */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* border: 1px solid #f0f0f0; */
    background: white;
}

.producto-card:hover {
    transform: translateY(-5px);
    /* border-color: #80B8B1; */
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-front {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
}

/* ===== CONTENEDOR DE IMAGEN ===== */
.img-container {
    width: 100%;
    height: 275px;
    background-size: 100%;
    filter: brightness(95%);
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
    border-radius: 4%;
}

.producto-card:hover .img-container {
    transform: scale(1.05);
}

/* ===== IMÁGENES ESPECÍFICAS ===== */
/* .campana {
    background-image: url('../../repos/images/p1_1.png');
    background-color: #f8f9fa;
}

.cocinas {
    background-image: url('../../repos/images/p2_1.png');
    background-color: #f8f9fa;
}

.anafe {
    background-image: url('../../repos/images/p3_1.png');
    background-color: #f8f9fa;
}

.parrilla {
    background-image: url('../../repos/images/p4_1.png');
    background-color: #f8f9fa;
} */

.card-title {
    padding: 20px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    align-items: center;
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    position: relative;
}

.producto-card:hover .card-title {
    color: #80B8B1;
}

.producto-seccion {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 50px 20px;
}

.producto-seccion.visible {
    display: block;
    opacity: 1;
}

.card-comp-container {
    flex-direction: row !important;
    align-items: center !important;
    display: flex !important;
    max-width: 1300px !important;
    margin: 0 auto;
    padding: 0 20px;
}


.cargando,
.error {
    text-align: center;
    padding: 60px 40px;
    font-size: 17px;
    color: #7f8c8d;
    width: 100%;
    font-family: 'Inter', sans-serif;
    background: #f8f9fa;
}

.cargando {
    background: #f8f9fa;
}

.sin-imagen {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    color: #39524F;
}

.sin-imagen i {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.producto-card:hover .sin-imagen i {
    transform: scale(1.15);
    color: #80B8B1;
}

@media (max-width: 1024px) {
    .section-white {
        padding: 60px 40px 100px;
    }

    .producto-card {
        height: 300px;
    }

    .img-container {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .section-white {
        padding: 40px 16px 70px;
    }

    .productos-section h1 {
        font-size: 25px;
        margin-bottom: 24px;
        text-align: center;
    }

    .producto-card {
        height: 260px;
        border-radius: 14px;
        /* box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06); */
    }

    .img-container {
        height: 170px;
        border-radius: 12px;
    }

    .productos-fila {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        padding: 10px 0;
    }

    .card-title {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {

    .section-white {
        padding: 35px 14px 60px;
    }

    .productos-section h1 {
        font-size: 25px;
        margin-bottom: 22px;
    }

    .productos-fila {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding-bottom: 6px;
    }

.producto-card {
    height: 190px;
}

    .img-container {
        height: 140px;
    }

    .card-title {
        padding: 10px;
        font-size: 13px;
    }
}


.producto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 184, 177, 0.03);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.producto-card:hover::before {
    opacity: 1;
}

@media (max-width: 678px) {
    .section-container {
        padding: 0px;
    }
}