/* CSS ORIGINAL CON PEQUEÑOS AJUSTES DE RESET PARA LOS NUEVOS H3/P */
.corporate-gifts-optimized {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.corporate-gifts-optimized::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #E8B923);
    opacity: .8;
}

.gifts-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gifts-header {
    text-align: center;
    margin-bottom: 50px;
}

.gifts-tag {
    display: inline-block;
    background: rgba(255, 215, 0, .1);
    border: 2px solid #FFD700;
    color: #E8B923;
    font-size: 11px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 25px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform .3s ease;
}

.gifts-tag:hover {
    transform: translateY(-2px);
}

.gifts-title {
    font-size: clamp(24px, 4vw, 32px);
    color: #1e293b;
    margin: 0 0 20px;
    font-weight: 700;
    line-height: 1.3;
}

.gifts-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    margin: 0 auto 25px;
    border-radius: 2px;
}

.gifts-header p {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.gifts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.gift-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    transition: all .3s ease;
    border: 1px solid rgba(255, 215, 0, .1);
    display: flex;
    flex-direction: column;
}

.gift-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
    border-color: rgba(255, 215, 0, .3);
}

.gift-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
}

.gift-link:hover,
.gift-link:focus,
.gift-link:active,
.gift-link:visited {
    text-decoration: none !important;
}

.gift-link:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

.gift-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.gift-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.gift-card:hover .gift-image img {
    transform: scale(1.05);
}

.gift-content {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* H3 OPTIMIZADO */
.gift-name {
    font-size: 19px; /* Un poco más grande para jerarquía */
    color: #1e293b;
    margin: 0 0 10px;
    font-weight: 700;
    line-height: 1.2;
}

/* P OPTIMIZADO */
.gift-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 20px;
    font-weight: 400;
    flex-grow: 1; /* Empuja el botón hacia abajo */
}

.gift-button {
    display: inline-block;
    background: transparent;
    color: #E8B923;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #FFD700;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
    margin-top: auto; /* Alinea botones al fondo */
}

.gift-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFD700, #E8B923);
    transition: left .3s ease;
    z-index: -1;
}

.gift-link:hover .gift-button::before {
    left: 0;
}

.gift-link:hover .gift-button {
    color: #fff;
    transform: translateY(-2px);
    border-color: transparent;
}

@media (max-width: 1024px) {
    .gifts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .corporate-gifts-optimized {
        padding: 40px 15px;
    }
    
    .gifts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gifts-title {
        font-size: clamp(22px, 5vw, 28px);
    }
    
    .gifts-header p {
        font-size: 15px;
    }
    
    .gift-image {
        height: 150px;
    }
    
    .gift-content {
        padding: 15px 12px;
    }
    
    .gift-name {
        font-size: 16px;
        margin: 0 0 8px;
    }
    
    .gift-desc {
        display: none; /* En móvil ocultamos descripción para limpiar vista */
    }
    
    .gift-button {
        padding: 8px 16px;
        font-size: 12px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .corporate-gifts-optimized {
        padding: 30px 10px;
    }
    
    .gifts-header {
        margin-bottom: 30px;
    }
    
    .gifts-title {
        font-size: clamp(20px, 6vw, 24px);
    }
    
    .gifts-grid {
        gap: 12px;
    }
    
    .gift-image {
        height: 140px;
    }
}