/* ===== REWARDS PAGE CSS - KOPI (SOLO TARJETAS PROCESO) ===== */

/* Variables - Usando las mismas del tema */
:root {
    --primary-color: #160503;
    --primary-color-opacity: rgba(22, 5, 3, 0.76);
    --background-white: #FFF;
    --primary-brown: #9F5524;
    --background-gray: #F3F4F6;
    --light-gray: #E5E7EB;
    --success-green: #10B981;
    --error-red: #EF4444;
    --mostaza: #F59E0B;

    /* Variables para efectos */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 4px 20px rgba(22, 5, 3, 0.08);
    --shadow-hover: 0 8px 30px rgba(22, 5, 3, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-brown), #8B4513);
}

/* ===== SECCIÓN SECUNDARIA - PROCESO (SOLO ESTO) ===== */
.contenedor3 {
    background: linear-gradient(135deg, #FAFAFA, #F3F4F6);
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.contenedor3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* Contenedor de las 3 tarjetas - CENTRADO */
.proceso-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 60px;
}

.contComun3 {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.contComun3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.contComun3:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.contComun3:hover::before {
    transform: scaleX(1);
}

.im1 {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    transition: var(--transition-smooth);
}

.contComun3:hover .im1 {
    transform: scale(1.05) rotate(2deg);
}

.t1 {
    font-family: 'Amaranth', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
}

.t1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--mostaza);
    border-radius: 2px;
}

.t2 {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--primary-color-opacity);
}

.mostaza {
    color: var(--mostaza);
    font-weight: 700;
}

/* Sección de canjear - REGRESADA */
.canjear {
    width: 100%;
    margin-top: 0;
}

.contenedor4 {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.contenedor4::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

.centradoCupon {
    text-align: center;
    position: relative;
    z-index: 2;
}

.centradoCupon .t1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.centradoCupon .t1::after {
    background: var(--mostaza);
}

/* Input de código */
.cuadroInput {
    display: flex;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
    background: white;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#codigoCupon {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    border-radius: 50px;
    background: transparent;
    color: var(--primary-color);
    outline: none;
}

#codigoCupon::placeholder {
    color: var(--primary-color-opacity);
}

#botonCanjear {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

#botonCanjear:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

#botonCanjear:active {
    transform: translateY(0);
}

/* Mensaje de resultado */
#mensaje {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(10px);
}

#mensaje.show {
    opacity: 1;
    transform: translateY(0);
}

#mensaje.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-green);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

#mensaje.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-red);
    border: 2px solid rgba(239, 68, 68, 0.3);
}

/* Animación para el fondo rotativo */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .contenedor3 {
        padding: 40px 15px;
    }

    .proceso-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contComun3 {
        padding: 30px 20px;
    }

    .t1 {
        font-size: 1.5rem;
    }

    .im1 {
        width: 80px;
        height: 80px;
    }

    .contenedor4 {
        padding: 40px 20px;
    }

    .cuadroInput {
        flex-direction: column;
        padding: 15px;
    }

    #botonCanjear {
        width: 100%;
    }

    .centradoCupon .t1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .contenedor3 {
        padding: 30px 10px;
    }

    .t1 {
        font-size: 1.3rem;
    }

    .centradoCupon .t1 {
        font-size: 1.8rem;
    }
}

.contenedor2 {
    background-color: #160503;
    color: #FFF;
    font-family: 'Open Sans';
    display: flex;
    padding: 40px;
    margin: 30px;
    border-radius: 24px;
    align-content: center;
    justify-content: center;
}
.contenedor2 .imagen{
    align-content: center;
    justify-content: center;
    width: 800px;
    padding-right: 30px;
}
.contenedor2 .texto{
    margin-top: 20px;
    justify-content: center;
    align-content: start;
    width: 100%;
    padding-left: 60px;
}
.contenedor2 .texto h1{
    font-size: 85px;
}
.contenedor2 .texto p{
    margin-top: 40px;
    margin-left: 60px;
    font-weight: bold;
    font-size: 30px;
}
.contenedor2 img {
    width: 380px;
}